meilleure intégration de box-sizing

/* switching to border-box model for all elements */
html {
box-sizing: border-box;
}

* {
box-sizing: inherit;
}
This commit is contained in:
raphaelgoettter 2015-03-04 14:58:29 +01:00
parent d31bf5cc7d
commit 8e038c2210
2 changed files with 22 additions and 6 deletions

View file

@ -7,11 +7,15 @@
/* == soft reset */
/* ----------------------------- */
/* switching box model for all elements */
* {
/* switching to border-box model for all elements */
html {
box-sizing: border-box;
}
* {
box-sizing: inherit;
}
/* soft reset */
html,
body {
@ -29,11 +33,15 @@ ul.unstyled {
}
img {
height: auto;
vertical-align: middle;
border: 0;
}
/* height auto only for non SVG images */
img:not([src$=".svg"]) {
height: auto;
}
blockquote,
figure {
margin-left: 0;

View file

@ -7,11 +7,15 @@
/* == soft reset */
/* ----------------------------- */
/* switching box model for all elements */
* {
/* switching to border-box model for all elements */
html {
box-sizing: border-box;
}
* {
box-sizing: inherit;
}
/* soft reset */
html,
body {
@ -29,11 +33,15 @@ ul.unstyled {
}
img {
height: auto;
vertical-align: middle;
border: 0;
}
/* height auto only for non SVG images */
img:not([src$=".svg"]) {
height: auto;
}
blockquote,
figure {
margin-left: 0;