MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/a6rkoa/the_pains_of_css/eby3zso
r/ProgrammerHumor • u/splatterghost Spanish is turing complete • Dec 16 '18
582 comments sorted by
View all comments
Show parent comments
15
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
if we're gonna go there
13 u/RYJASM Dec 17 '18 edited Dec 17 '18 %border_box { box-sizing: border-box; } %inherit__border_box { box-sizing: inherit; } html { @extend %border_box; } * { @extend %inherit__border_box; &:before, &:after { @extend %inherit__border_box; } }We can go deeper. 10 u/googleypoodle Dec 17 '18 Don't forget your !important annotation
13
%border_box { box-sizing: border-box; } %inherit__border_box { box-sizing: inherit; } html { @extend %border_box; } * { @extend %inherit__border_box; &:before, &:after { @extend %inherit__border_box; } }
We can go deeper.
10 u/googleypoodle Dec 17 '18 Don't forget your !important annotation
10
Don't forget your !important annotation
15
u/Peechez Dec 17 '18
html { box-sizing: border-box; }*, *::before, *::after { box-sizing: inherit; }if we're gonna go there