Skip to content

Commit

Permalink
Contextual CSS reset
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jun 23, 2017
1 parent 81b6324 commit 7335a0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.styl
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@import "reset-context";

.switch {
reset-context();

position: relative;
display: inline-block;
width: 48px;
Expand Down
9 changes: 9 additions & 0 deletions src/reset-context.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
reset-context() {
// https://www.paulirish.com/2012/box-sizing-border-box-ftw/
box-sizing: border-box;
*, *:before, *:after {
box-sizing: inherit;
}

line-height: 20px;
}

0 comments on commit 7335a0d

Please # to comment.