mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
reword nesting section
This commit is contained in:
parent
63ca14c977
commit
5b24a77ef1
@ -60,7 +60,12 @@ title: Sass Basics
|
||||
:markdown
|
||||
## Nesting
|
||||
|
||||
When writing HTML you've probably noticed that it has a clear nested and visual hierarchy. CSS, on the other hand, doesn't. Sass will let you nest your CSS selectors in a way that follows the same visual hierarchy of your HTML. Here's an example of some typical styles for a site's navigation:
|
||||
When writing HTML you've probably noticed that it has a clear nested and visual hierarchy. CSS, on the other hand, doesn't.
|
||||
|
||||
Sass will let you nest your CSS selectors in a way that follows the same visual hierarchy of your HTML. Be aware that overly nested rules will result in
|
||||
over-qualified CSS that could prove hard to maintain and is generally considered bad practice.
|
||||
|
||||
With that in mind, here's an example of some typical styles for a site's navigation:
|
||||
|
||||
%ul
|
||||
%li= link_to "SCSS", "#topic-3-SCSS"
|
||||
|
Loading…
Reference in New Issue
Block a user