Sha256: e8ca82b0a0c4b56eaf7f7f7efe10f52dd57b68150e64f239f6d9cd95071f50c2

Contents?: true

Size: 872 Bytes

Versions: 67

Compression:

Stored size: 872 Bytes

Contents

@charset "UTF-8";

/// 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-context(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

67 entries across 60 versions & 14 rubygems

Version Path
federalist-basic-report-theme-0.1.7 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-4.2.0 _sass/uswds/lib/grid/_direction-context.scss
neat-1.9.1 app/assets/stylesheets/grid/_direction-context.scss
jekyll-theme-uswds-0.1.0 _sass/uswds/lib/grid/_direction-context.scss
federalist-basic-report-theme-0.1.5 _sass/uswds/lib/grid/_direction-context.scss
federalist-basic-report-theme-0.1.4 _sass/uswds/lib/grid/_direction-context.scss
federalist-basic-report-theme-0.1.3 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-4.1.0 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-4.0.0 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-3.0.0 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-2.2.1 assets/uswds/scss/lib/grid/_direction-context.scss
uswds-jekyll-2.2.1 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-2.2.0 assets/uswds/scss/lib/grid/_direction-context.scss
uswds-jekyll-2.2.0 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-2.1.0 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-2.1.0 assets/uswds/scss/lib/grid/_direction-context.scss
uswds-jekyll-2.0.1 _sass/uswds/lib/grid/_direction-context.scss
uswds-jekyll-2.0.1 assets/uswds/scss/lib/grid/_direction-context.scss
uswds-jekyll-2.0.0 assets/uswds/scss/lib/grid/_direction-context.scss
uswds-jekyll-2.0.0 _sass/uswds/lib/grid/_direction-context.scss