UNPKG

metro4

Version:

The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style

59 lines (49 loc) 939 B
@import (once) "include/vars"; @import (once) "include/mixins"; .dialog { position: fixed; display: flex; flex-flow: column; width: auto; max-width: ~"calc(100vw - 100px)"; max-height: ~"calc(100vh - 100px)"; height: auto; background-color: @white; color: @dark; z-index: @zindex-modal; border: 1px solid @borderColor; } .dialog { &.shadow-on { .shadow(3); } } .dialog-title, .dialog-content, .dialog-actions { display: block; } .dialog-title { font-size: 1.325rem; padding: 24px 24px 0; order: 1; } .dialog-content { padding: 12px 24px; order: 2; } .dialog-actions { border-top: 1px solid @winFlatBorderColor; padding: 8px 16px; order: 3; & > * { margin: 0 4px; min-width: 64px; } } .dialog { * + .dialog-content { margin-top: 8px; } * + .dialog-actions { margin-top: 8px; } }