Sha256: 525971540fac32968e493902d81d8bea3525373a09a83c2af823b72bc11d6c13

Contents?: true

Size: 958 Bytes

Versions: 3

Compression:

Stored size: 958 Bytes

Contents

.modal {
  display: none;

  &--visible {
    display: block;
  }

  &__overlay {
    display: block;
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparentize($background-base, .5);
    z-index: #{$zindex-modal - 1};
  }

  &__window {
    position: fixed;
    min-width: 50%;
    max-width: 75%;
    left: 50%;
    transform: translateX(-50%);
    top: 10vh;
    background-color: $background-base;
    border: $border-default;
    z-index: $zindex-modal;

    &__title {
      @include font-size('h3');
      display: flex;
      padding: $spacer-tiny $spacer-small;

      h1 {
        @include font-size('h3');
        flex-grow: 1;
      }

      .modal__close-button {
        @extend %clickable;
        flex: none;
      }
    }

    &__content {
      padding: $spacer-tiny $spacer-small $spacer-small $spacer-small;
      max-height: 80vh;
      overflow: auto;
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elabs-3.0.0 app/assets/stylesheets/elabs/app/_modals.scss
elabs-2.0.0 app/assets/stylesheets/elabs/app/_modals.scss
elabs-2.0.0.pre app/assets/stylesheets/elabs/app/_modals.scss