Sha256: 86c522eae9952d22e3f05cd6d770785cc69afb3df75cd82156b8ad55660d3f0a

Contents?: true

Size: 1.38 KB

Versions: 9

Compression:

Stored size: 1.38 KB

Contents

// Modals
.modal {
  align-items: center;
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  opacity: 0;
  overflow: hidden;
  padding: $layout-spacing;
  position: fixed;
  right: 0;
  top: 0;

  &:target,
  &.active {
    display: flex;
    opacity: 1;
    z-index: $zindex-4;

    .modal-overlay {
      background: rgba($bg-color, .75);
      bottom: 0;
      cursor: default;
      display: block;
      left: 0;
      position: absolute;
      right: 0;
      top: 0;
    }

    .modal-container {
      animation: slide-down .2s ease 1;
      z-index: $zindex-0;
    }
  }

  &.modal-sm {
    .modal-container {
      max-width: $control-width-sm;
      padding: 0 $unit-2;
    }
  }

  &.modal-lg {
    .modal-overlay {
      background: $bg-color-light;
    }

    .modal-container {
      box-shadow: none;
      max-width: $control-width-lg;
    }
  }
}

.modal-container {
  @include shadow-variant(.2rem);
  background: $bg-color-light;
  border-radius: $border-radius;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
  max-width: $control-width-md;
  padding: 0 $unit-4;
  width: 100%;

  &.modal-fullheight {
    max-height: 100vh;
  }

  .modal-header {
    color: $dark-color;
    padding: $unit-4;
  }

  .modal-body {
    overflow-y: auto;
    padding: $unit-4;
    position: relative;
  }

  .modal-footer {
    padding: $unit-4;
    text-align: right;
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spectre_scss-0.5.9.1 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.9.0 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.8.0 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.7.0 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.6.0 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.5.0 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.4.0 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.3.0 vendor/assets/stylesheets/spectre/_modals.scss
spectre_scss-0.5.2.0 vendor/assets/stylesheets/spectre/_modals.scss