Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New no-dec styles, for selectively clearing default styles for key semantic HTML tags. - gutter.styl has a comment about upcoming CSS gap property. - Removed tabs in display.styl because tabs are very inconsistent!
- Loading branch information
1 parent
2a133d2
commit 9555053
Showing
8 changed files
with
483 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# No Decoration | ||
|
||
These are a series of classes to extend when you want to clear default styles for various semantic HTML tags that have very specific/strong default style behaviour. | ||
--- | ||
|
||
## `a.no-dec` | ||
Removes default link colours and underlines. | ||
|
||
``` | ||
menu | ||
a.home | ||
@extends a.no-dec | ||
// applies no-dec to a.home. | ||
``` | ||
|
||
## `ul.no-dec` | ||
Removes default spacing and list decoration for unordered lists and their direct `li` children. | ||
|
||
``` | ||
menu | ||
ul.sections | ||
@extends ul.no-dec | ||
// applies to ul.sections itself and it's direct li children. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
no-dec | ||
Some quick and dirty styles that you can incorporate to | ||
clear default stylings for key semantic HTML tags, giving you a blank | ||
slate to write new styles. | ||
*/ | ||
|
||
// clears default link styling | ||
a.no-dec | ||
color: inherit | ||
text-decoration: none | ||
|
||
// clears default list styling | ||
ul.no-dec | ||
list-style: none | ||
margin-top: 0 | ||
margin-bottom: 0 | ||
padding-left: 0 | ||
padding-right: 0 | ||
|
||
> li | ||
margin-bottom: 0 |
Oops, something went wrong.