Sha256: 74c662ef5f5587d9e611c8cb610e6a77189f1876dbd80eeb13f24e92e223b1c5
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
/** * Changes the direction property used by other mixins called in the code block argument. * * @param {String} $direction (left-to-right) * Layout direction to be used within the block. Can be `left-to-right` or `right-to-left`. * * @example scss - Usage * @include direction(right-to-left) { * .right-to-left-block { * @include span-columns(6); * } * } * * @example css - CSS Output * .right-to-left-block { * float: right; * ... * } */ @mixin direction-context($direction: left-to-right) { $scope-direction: $layout-direction; @if to-lower-case($direction) == "left-to-right" { $layout-direction: LTR !global; } @else if to-lower-case($direction) == "right-to-left" { $layout-direction: RTL !global; } @content; $layout-direction: $scope-direction !global; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neat-1.7.0.rc | app/assets/stylesheets/grid/_direction-context.scss |