Sha256: d10d9f2b63c1bf71824de53e8178ec849c1c36877ba390092828f27ee27dc1d1
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 Bytes
Contents
// Vertically center anything, literally anything. // http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ @mixin vertical-center($midpoint: null, $extend: null) { $midpoint: if($midpoint != null, $midpoint, toolkit-get('vertical midpoint')); $extend: if($extend != null, $extend, toolkit-get('vertical extend')); top: $midpoint; @include vertical-center-core($extend); } @mixin vertical-center-core($extend: null) { $extend: if($extend != null, $extend, toolkit-get('vertical extend')); @if $extend { @include dynamic-extend('vertical center') { @include vertical-center-core($extend: false); } } @else { position: relative; @if mixin-exists(transform) { @include transform(translateY(-50%)); } @else { -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toolkit-2.0.1 | stylesheets/toolkit/_vertical-center.scss |