dist/_scut.scss in scut-1.1.2 vs dist/_scut.scss in scut-1.1.3
- old
+ new
@@ -1,9 +1,9 @@
/*
* Scut, a collection of Sass utilities
* to ease and improve our implementations of common style-code patterns.
-* v1.1.2
+* v1.1.3
* Docs at http://davidtheclark.github.io/scut
*/
@mixin scut-clearfix {
@@ -277,17 +277,18 @@
}
@mixin scut-hd-bp (
$ratio: 1.3
) {
- @media (-o-min-device-pixel-ratio: #{$ratio}/1),
- (-webkit-min-device-pixel-ratio: #{$ratio}),
- (min-resolution: #{round(96 * $ratio)}dpi) {
+ @media (-o-min-device-pixel-ratio: ($ratio / 1)),
+ (-webkit-min-device-pixel-ratio: $ratio),
+ (min-resolution: (round(96 * $ratio) * 1dpi)) {
@content;
}
}
+
@mixin scut-hide-visually {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
@@ -305,16 +306,18 @@
@mixin scut-image-replace {
text-indent: 102%;
white-space: nowrap;
overflow: hidden;
+ padding: 0;
}
%scut-image-replace {
@include scut-image-replace;
}
+
// Depends on scut-rem and scut-strip-unit
@mixin scut-rem-fallback (
$pixels,
$property: font-size
@@ -332,15 +335,13 @@
}
@mixin scut-reset-border-box {
// Make everything a border-box, because why not?
html {
- -moz-box-sizing: border-box;
box-sizing: border-box;
}
*, *:before, *:after {
- -moz-box-sizing: inherit;
box-sizing: inherit;
}
}
@mixin scut-reset-antialias {
@@ -1415,21 +1416,15 @@
%scut-link-bb {
@include scut-link-bb;
}
@mixin scut-reverse-italics (
- $elements: false
+ $elements: null
) {
$element-list: em, cite, i;
- @each $el in $elements {
- @if type_of($el) == 'string' {
- $element-list: append($element-list, unquote($el), comma);
- }
- }
-
font-style: italic;
- #{$element-list} {
+ #{join($element-list, $elements)} {
font-style: normal;
}
}
\ No newline at end of file