Sha256: 02ad3b5a256e85d0d679699638a1108bd7a7c05da7c04a87f3221f3c1d55977b
Contents?: true
Size: 1.84 KB
Versions: 2
Compression:
Stored size: 1.84 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; h3:first-child, .title:first-child { margin-bottom: 2rem; } .buttons, .form-buttons { margin-left: 0; margin-bottom: 1rem; display: flex; justify-content: center; align-items: center; .button, a { margin: 0 0.75rem; } } } } &[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; } .icon { width: 1.25rem; height: 1.25rem; } } &[with-close-button] .tao-dialog-wrapper > .link-close { display: flex; } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tao_ui-0.2.4 | lib/assets/stylesheets/tao/ui/dialog.scss |
tao_ui-0.2.3 | lib/assets/stylesheets/tao/ui/dialog.scss |