adjusted version for box-sizing
This commit is contained in:
parent
1b9e0bf9f5
commit
b7105ba960
3 changed files with 86 additions and 77 deletions
|
@ -6,11 +6,14 @@
|
||||||
/* == soft reset */
|
/* == soft reset */
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
/* switching box model for all elements */
|
/* switching box model for all elements */
|
||||||
* {
|
html {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
*, *:before, *:after {
|
||||||
|
box-sizing: inherit;
|
||||||
|
}
|
||||||
/* soft reset */
|
/* soft reset */
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -8,9 +8,12 @@
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
|
|
||||||
/* switching box model for all elements */
|
/* switching box model for all elements */
|
||||||
* {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
*, *:before, *:after {
|
||||||
|
box-sizing: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
/* soft reset */
|
/* soft reset */
|
||||||
html,
|
html,
|
||||||
|
|
|
@ -8,9 +8,12 @@
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
|
|
||||||
/* switching box model for all elements */
|
/* switching box model for all elements */
|
||||||
* {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
*, *:before, *:after {
|
||||||
|
box-sizing: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
/* soft reset */
|
/* soft reset */
|
||||||
html,
|
html,
|
||||||
|
|
Loading…
Reference in a new issue