before / after with box-sizing

This commit is contained in:
Raphael Goetter 2017-12-06 09:32:12 +01:00
parent a481f65367
commit e2fde95ba5
3 changed files with 9 additions and 4 deletions

View File

@ -376,11 +376,14 @@ html {
box-sizing: border-box; box-sizing: border-box;
} }
* { *,
*::before,
*::after {
-webkit-box-sizing: inherit; -webkit-box-sizing: inherit;
box-sizing: inherit; box-sizing: inherit;
/* avoid min-width: auto on flex and grid children */ /* avoid min-width: auto on flex and grid children */
min-width: 0; min-width: 0;
min-height: 0;
} }
html { html {

File diff suppressed because one or more lines are too long

View File

@ -7,11 +7,13 @@ html {
box-sizing: border-box; box-sizing: border-box;
} }
* { *,
*::before,
*::after {
box-sizing: inherit; box-sizing: inherit;
/* avoid min-width: auto on flex and grid children */ /* avoid min-width: auto on flex and grid children */
min-width: 0; min-width: 0;
// min-height: 0; min-height: 0;
} }
html { html {