Sha256: dfa2c5d33233897d4dace260cb0fd7d24a08391f11e1b0aa1f0058dbc8d56457

Contents?: true

Size: 1012 Bytes

Versions: 3

Compression:

Stored size: 1012 Bytes

Contents

@mixin modal($z-index: default, $color: default, $background-color: default) {
  @if $z-index == default {
    $z-index: map-get($z-indexes, modal);
  }
  @if $color == default {
    $color: $text-color-theme-dark;
  }
  @if $background-color == default {
    $background-color: $mask-color;
  }
  position: fixed;
  top: 0;
  left: 0;
  z-index: $z-index;
  width: 100%;
  height: 100%;
  color: $color;
  touch-action: none;
  background-color: $background-color;
  opacity: 0;
  @include transform(translate(100%, 0));
  @include transition(#{opacity map-get($animation, duration) map-get($animation, timing-function),
  transform 0s map-get($animation, duration) map-get($animation, timing-function)});
}
@mixin modal--show() {
  opacity: 1;
  @include transform(translate(0, 0));
  @include transition(#{opacity map-get($animation, duration) map-get($animation, timing-function)});
}

.modal {
  @include modal();
}
.modal--show {
  @include modal--show();
}
.modal--overflow {
  @include overflow(auto);
}

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
jekyll-text-theme-fork-2.2.6 _sass/common/components/_modal.scss
jekyll-text-theme-2.2.6 _sass/common/components/_modal.scss
jekyll-text-theme-2.2.5 _sass/common/components/_modal.scss