sass-site/old_source/code-snippets/_example-nesting.html.erb

32 lines
430 B
Plaintext
Raw Normal View History

2018-09-01 22:35:20 +02:00
<% example do %>
nav {
ul {
margin: 0;
padding: 0;
list-style: none;
}
2018-09-01 22:35:20 +02:00
li { display: inline-block; }
2018-09-01 22:35:20 +02:00
a {
display: block;
padding: 6px 12px;
text-decoration: none;
}
2018-09-01 22:35:20 +02:00
}
===
nav
ul
margin: 0
padding: 0
list-style: none
2018-09-01 22:35:20 +02:00
li
display: inline-block
2018-09-01 22:35:20 +02:00
a
display: block
padding: 6px 12px
text-decoration: none
2018-09-01 22:35:20 +02:00
<% end %>