Sha256: 375a0e468183c1e65b9b4e55d2289a00291d1f9a76d71e329d8fce2dd59f4737

Contents?: true

Size: 1.59 KB

Versions: 74

Compression:

Stored size: 1.59 KB

Contents

@mixin dir-ltr {
  [dir=ltr] & { @content; }
}

@mixin dir-rtl {
  [dir=rtl] & { @content; }
}

@mixin border-start($value) {
  @include dir-ltr { border-left: $value; }
  @include dir-rtl { border-right: $value; }
}

@mixin border-end($value) {
  @include dir-ltr { border-right: $value; }
  @include dir-rtl { border-left: $value; }
}

@mixin border-start-width($value) {
  @include dir-ltr { border-left-width: $value; }
  @include dir-rtl { border-right-width: $value; }
}

@mixin border-end-width($value) {
  @include dir-ltr { border-right-width: $value; }
  @include dir-rtl { border-left-width: $value; }
}

@mixin padding-start($value) {
  @include dir-ltr { padding-left: $value; }
  @include dir-rtl { padding-right: $value; }
}

@mixin padding-end($value) {
  @include dir-ltr { padding-right: $value; }
  @include dir-rtl { padding-left: $value; }
}

@mixin margin-start($value) {
  @include dir-ltr { margin-left: $value; }
  @include dir-rtl { margin-right: $value; }
}

@mixin margin-end($value) {
  @include dir-ltr { margin-right: $value; }
  @include dir-rtl { margin-left: $value; }
}

@mixin position-start($value) {
  @include dir-ltr { left: $value; }
  @include dir-rtl { right: $value; }
}

@mixin position-end($value) {
  @include dir-ltr { right: $value; }
  @include dir-rtl { left: $value; }
}

@mixin float-start {
  @include dir-ltr { float: left; }
  @include dir-rtl { float: right; }
}

@mixin float-end {
  @include dir-ltr { float: right; }
  @include dir-rtl { float: left; }
}

@mixin text-align-end {
  @include dir-ltr { text-align: right; }
  @include dir-rtl { text-align: left; }
}

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-17.0.3 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-17.0.2 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-17.0.1 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-17.0.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-16.2.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-16.1.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-16.0.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.8.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-14.5.2 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.7.1 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.7.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.6.1 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.6.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.5.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.4.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.3.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.2.2 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.2.1 app/assets/stylesheets/pageflow/mixins/layout_direction.scss
pageflow-15.2.0 app/assets/stylesheets/pageflow/mixins/layout_direction.scss