css/README.md
overflow: auto to overflow: scroll, because scroll will always
display scrollbars outside of macOS, even when content fits in the container.em units instead of px for breakpoint valuesmin-width/min-heighth1.page-title.h1.page-title carries a specificity of 2, but can be reduced to 1 by removing
the h1 type selector:
-h1.page-title
+.page-title {
// …
}
Using an ID in a selector increases its specificity, making it more difficult to work with alongside class selectors. Furthermore, because IDs must be unique within an HTML document, using them as CSS selectors limits reusability.
&) to concatenate selector names.Use lowercase characters and hyphens in selector names:
.class-name {
// …
}
Don't concatenate selector names:
.class {
&__child-class {
// …
}
}
Concatenating selector names makes it more difficult to search and find selectors in the codebase.
</details>