Sha256: e656ae98d11cd2640247506aba89c094b6f80652c4fb98488496a373e9aaa189

Contents?: true

Size: 843 Bytes

Versions: 90

Compression:

Stored size: 843 Bytes

Contents

// Direction Helpers
// =================

// Susy Flow Defaults
// ------------------
// - PRIVATE
@include susy-defaults((
  flow: ltr,
));

// Get Direction
// -------------
// Return the 'from' or 'to' direction of a ltr or rtl flow.
// - [$flow]  : ltr | rtl
// - [$key]   : from | to
@function get-direction(
  $flow: map-get($susy-defaults, flow),
  $key: from
) {
  $return: if($flow == rtl, (from: right, to: left), (from: left, to: right));
  @return map-get($return, $key);
}

// To
// --
// Return the 'to' direction of a flow
// - [$flow]  : ltr | rtl
@function to(
  $flow: map-get($susy-defaults, flow)
) {
  @return get-direction($flow, to);
}

// From
// ----
// Return the 'from' direction of a flow
// - [$flow]  : ltr | rtl
@function from(
  $flow: map-get($susy-defaults, flow)
) {
  @return get-direction($flow, from);
}

Version data entries

90 entries across 90 versions & 8 rubygems

Version Path
sparrow-jekyll-theme-0.1.2 _sass/vendor/susy/susy/output/shared/_direction.scss
susy-2.2.14 sass/susy/output/shared/_direction.scss
susy-2.2.13 sass/susy/output/shared/_direction.scss
minimal-mistakes-jekyll-4.4.1 _sass/minimal-mistakes/vendor/susy/susy/output/shared/_direction.scss
jekyll-theme-basically-basic-1.0.0 _sass/basically-basic/vendor/susy/output/shared/_direction.scss
jekyll-theme-woforo-0.2.3 _sass/vendor/susy/susy/output/shared/_direction.scss
jekyll-theme-woforo-0.2.2 _sass/vendor/susy/susy/output/shared/_direction.scss
jekyll-theme-woforo-0.2.1 _sass/vendor/susy/susy/output/shared/_direction.scss
jekyll-theme-woforo-0.2.0 _sass/vendor/susy/susy/output/shared/_direction.scss
minimal-mistakes-jekyll-4.1.1 _sass/vendor/susy/susy/output/shared/_direction.scss
minimal-mistakes-jekyll-4.0.1 _sass/vendor/susy/susy/output/shared/_direction.scss
wrgem-0.0.55 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/output/shared/_direction.scss
susy-2.2.12 sass/susy/output/shared/_direction.scss
susy-2.2.11 sass/susy/output/shared/_direction.scss
susy-2.2.10 sass/susy/output/shared/_direction.scss
wrgem-0.0.54 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/output/shared/_direction.scss
susy-2.2.9 sass/susy/output/shared/_direction.scss
susy-2.2.8 sass/susy/output/shared/_direction.scss
susy-2.2.7 sass/susy/output/shared/_direction.scss
wrgem-0.0.53 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/output/shared/_direction.scss