Skip to content

Commit 41a8974

Browse files
committed
Fixed unit printing bug encountered with libsass
1 parent 7a3a02c commit 41a8974

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

_normalize.scss

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ audio,
7878
canvas,
7979
progress,
8080
video {
81-
@if (map-get($browser-minimum-versions, "ie") <= 8) {
81+
@if (map-get($browser-minimum-versions, "ie") <= 9) {
8282
display: inline-block; /* 1 */
8383
}
8484
vertical-align: baseline; /* 2 */
@@ -168,8 +168,8 @@ dfn {
168168
*/
169169

170170
h1 {
171-
font-size: if($rhythm-unit == "px", $h1-font-size, ($h1-font-size / $base-font-size)#{$rhythm-unit});
172-
margin: if($rhythm-unit == "px", $base-line-height, ($base-font-size / $base-line-height)#{$rhythm-unit}) 0;
171+
font-size: if($rhythm-unit == "px", $h1-font-size, #{($h1-font-size / $base-font-size)}#{$rhythm-unit});
172+
margin: if($rhythm-unit == "px", $base-line-height, #{($base-font-size / $base-line-height)}#{$rhythm-unit}) 0;
173173
}
174174

175175
@if (map-get($browser-minimum-versions, "ie") <= 9) {
@@ -300,12 +300,14 @@ textarea {
300300
margin: 0; /* 3 */
301301
}
302302

303-
/**
304-
* Address `overflow` set to `hidden` in IE 8/9/10/11.
305-
*/
303+
@if (map-get($browser-minimum-versions, "ie") <= 11) {
304+
/**
305+
* Address `overflow` set to `hidden` in IE 8/9/10/11.
306+
*/
306307

307-
button {
308-
overflow: visible;
308+
button {
309+
overflow: visible;
310+
}
309311
}
310312

311313
/**
@@ -364,18 +366,20 @@ input {
364366
line-height: normal;
365367
}
366368

367-
/**
368-
* It's recommended that you don't attempt to style these elements.
369-
* Firefox's implementation doesn't respect box-sizing, padding, or width.
370-
*
371-
* 1. Address box sizing set to `content-box` in IE 8/9/10.
372-
* 2. Remove excess padding in IE 8/9/10.
373-
*/
369+
@if (map-get($browser-minimum-versions, "ie") <= 10) {
370+
/**
371+
* It's recommended that you don't attempt to style these elements.
372+
* Firefox's implementation doesn't respect box-sizing, padding, or width.
373+
*
374+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
375+
* 2. Remove excess padding in IE 8/9/10.
376+
*/
374377

375-
input[type="checkbox"],
376-
input[type="radio"] {
377-
box-sizing: border-box; /* 1 */
378-
padding: 0; /* 2 */
378+
input[type="checkbox"],
379+
input[type="radio"] {
380+
box-sizing: border-box; /* 1 */
381+
padding: 0; /* 2 */
382+
}
379383
}
380384

381385
/**
@@ -435,12 +439,14 @@ legend {
435439
padding: 0; /* 2 */
436440
}
437441

438-
/**
439-
* Remove default vertical scrollbar in IE 8/9/10/11.
440-
*/
442+
@if (map-get($browser-minimum-versions, "ie") <= 11) {
443+
/**
444+
* Remove default vertical scrollbar in IE 8/9/10/11.
445+
*/
441446

442-
textarea {
443-
overflow: auto;
447+
textarea {
448+
overflow: auto;
449+
}
444450
}
445451

446452
/**

0 commit comments

Comments
 (0)