Sha256: 61372cca27b429376ea5cb3aee6d7f39e41160a3e9cd904bedc162350593cba4

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

@import 'tao/ui/globals';

body.tao-dialog-active {
  overflow: hidden;
}

.tao-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: $z-index-dialog;
  display: none;
  overflow: hidden;

  &[modal] {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 200ms ease-in-out;
  }

  &[modal][active] {
    background-color: rgba(0, 0, 0, 0.55);
  }

  &[active] .tao-dialog-wrapper {
    transform: translate(0, 0);
    opacity: 1;
  }

  .tao-dialog-wrapper {
    position: relative;
    width: 37.5rem;
    min-height: 1em;
    margin: 0 auto;
    border-radius: 0 0 $border-radius-s $border-radius-s;
    background-color: $white-color;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transform: translate(0, -30%);
    transition: transform .3s ease-in-out, opacity .3s ease-in-out, width .2s ease-in-out;
    opacity: 0;
    padding: 1rem 2rem;

    .tao-dialog-content {
      overflow-y: auto;
    }
  }

  &[size='l'] .tao-dialog-wrapper {
    width: 53.75rem;
  }

  &[size='xl'] .tao-dialog-wrapper {
    width: 71.25rem;
  }

  .tao-dialog-wrapper > .link-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    text-decoration: none;
    fill: $lighter-grey-color;

    &:hover {
      fill: $grey-color;
    }
  }

  &[with-close-button] .tao-dialog-wrapper > .link-close {
    display: flex;
  }

}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tao_ui-0.2.2 lib/assets/stylesheets/tao/ui/dialog.scss
tao_ui-0.2.1 lib/assets/stylesheets/tao/ui/dialog.scss
tao_ui-0.2.0 lib/assets/stylesheets/tao/ui/dialog.scss