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:
parent
d31bf5cc7d
commit
8e038c2210
2 changed files with 22 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue