/
How SASS CSS preprocessors can make for complex CSS
How SASS CSS preprocessors can make for complex CSS
The CSS processor SASS allows one to write CSS rules in a nested format. It looks reasonable….
.primary_logs {
position: absolute;
top: 7em;
left: 2em;
right: 2em;
bottom: 2em;
h2 {
padding: 1.2em;
color: $body-copy;
margin: 0;
font-weight: 400;
font-size: 1.2em;
}
#entries, #controls {
position: relative;
height: 100%;
background: $body-bg-plain;
box-shadow: 1px 2px 4px 2px $body-shadow;
font-family: "Open Sans";
}
#controls {
margin-left: 2em;
}
}
…but results in fragile hard to maintain CSS rules - see use a flat hierarchy.
, multiple selections available,
Related content
Describe categories with classes rather styling specific elements
Describe categories with classes rather styling specific elements
Read with this
Flat CSS hierarchy
Flat CSS hierarchy
More like this
CSS supports variables
CSS supports variables
Read with this
Problems that CSS preprocessors tried to solve that can be done using plain CSS
Problems that CSS preprocessors tried to solve that can be done using plain CSS
More like this
CSS Order Dependent Selectors
CSS Order Dependent Selectors
Read with this
CSS Preprocessor - Don't use them
CSS Preprocessor - Don't use them
More like this