Skip to content

Commit

Permalink
_s: Remove remaining box-sizing prefix.
Browse files Browse the repository at this point in the history
Also removes the box-sizing mixin, as it is of no use anymore.

See http://caniuse.com/#feat=css3-boxsizing
See #558.

Fixes #561.
  • Loading branch information
obenland committed Nov 6, 2014
1 parent 69171d3 commit 8ba2a53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sass/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ html {
*,
*:before,
*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
@include box-sizing(border-box);
box-sizing: border-box;
}
body {
background: $color__background-body; /* Fallback for when there is no custom background color defined. */
Expand Down
4 changes: 1 addition & 3 deletions sass/forms/_fields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ input[type="radio"] {

input[type="search"] {
-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
-webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
-moz-box-sizing: content-box;
box-sizing: content-box;
box-sizing: content-box;
}

input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
Expand Down
7 changes: 0 additions & 7 deletions sass/mixins/_mixins-master.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
font-size: $sizeValue + rem;
}

// Box model
@mixin box-sizing($box-model) {
-webkit-box-sizing: $box-model; // Safari <= 7
-moz-box-sizing: $box-model; // Firefox <= 19
box-sizing: $box-model;
}

// Border radius
@mixin border-radius($radius) {
background-clip: padding-box; /* stops bg color from leaking outside the border: */
Expand Down
5 changes: 2 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ html {
*,
*:before,
*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
box-sizing: border-box;
box-sizing: border-box;
}

body {
Expand Down Expand Up @@ -355,8 +355,7 @@ input[type="radio"] {

input[type="search"] {
-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
-webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
box-sizing: content-box;
box-sizing: content-box;
}

input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
Expand Down

0 comments on commit 8ba2a53

Please sign in to comment.