Converting from sass to nested vanilla css with layers (#147)
This commit is contained in:
parent
8e611f3a64
commit
57244c3f33
1 changed files with 2687 additions and 2751 deletions
19
assets/css/components/_clearfix.css
Normal file
19
assets/css/components/_clearfix.css
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* Clearfix
|
||||
|
||||
Allows the bottom of an element to extend to the bottom of all floated child
|
||||
elements. See http://nicolasgallagher.com/micro-clearfix-hack/ */
|
||||
|
||||
@layer components {
|
||||
.clearfix {
|
||||
&::before {
|
||||
content: '';
|
||||
display: table;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue