dist/_scut.scss in scut-0.10.3 vs dist/_scut.scss in scut-0.10.4
- old
+ new
@@ -1,9 +1,9 @@
/*
* Scut, a collection of Sass utilities
* to ease and improve our implementations of common style-code patterns.
-* v0.10.3
+* v0.10.4
* Docs at http://davidtheclark.github.io/scut
*/
@mixin scut-clearfix {
@@ -393,11 +393,10 @@
background: transparent;
border: 0;
color: inherit;
font: inherit;
margin: 0;
- outline: none;
padding: 0;
width: auto;
-webkit-appearance: none;
-webkit-font-smoothing: antialiased;
-webkit-user-select: none;
@@ -1097,11 +1096,11 @@
height: 1px;
}
}
@mixin scut-vcenter-ib (
- $inner: ".scut-inner"
+ $inner...
) {
// The inner element is vertically centered
// by middle-aligning it with an inline pseudo-element
// whose height is 100%.
@@ -1115,13 +1114,16 @@
// to account for the default
// word-spacing of inline-block.
margin-right: -0.25em;
}
- & > #{$inner} {
- display: inline-block;
- vertical-align: middle;
+ $inner: if(length($inner) == 0, ".scut-inner", $inner);
+ @each $cell-selector in $inner {
+ & > #{$cell-selector} {
+ display: inline-block;
+ vertical-align: middle;
+ }
}
}
%scut-vcenter-ib {
@@ -1135,25 +1137,29 @@
height: $height;
line-height: $height;
}
@mixin scut-vcenter-td (
- $inner: ".scut-inner"
+ $inner...
) {
display: table;
- & > #{$inner} {
- display: table-cell;
- vertical-align: middle;
+ $inner: if(length($inner) == 0, ".scut-inner", $inner);
+ @each $cell-selector in $inner {
+ & > #{$cell-selector} {
+ display: table-cell;
+ vertical-align: middle;
+ }
}
}
%scut-vcenter-td {
@include scut-vcenter-td;
}
+
// Depends on scut-center-transform
@mixin scut-vcenter-tt () {
@include scut-center-transform(y);
}
\ No newline at end of file