UNPKG

@pi0/framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

119 lines (115 loc) 2.41 kB
.md { @import (multiple) '../../less/colors-md.less'; @dialogBg: #fff; @dialogButonColor : #4285f4; @dialogButonBg: @dialogBg; .dialog { width: 280px; margin-left: -140px; border-radius: 3px; color: #757575; background: #fff; font-size: 16px; .md-depth(5); &.modal-in { opacity: 1; transform: translate3d(0,0,0) scale(1); } &.modal-out { opacity: 0; z-index: 13500-1; transform: translate3d(0,0,0) scale(0.815); } } .dialog-inner { padding: 24px 24px 20px; } .dialog-title { font-size: 20px; color: #212121; line-height: 1.3; + .dialog-text { margin-top: 20px; } } .dialog-text { line-height: 1.5; } .dialog-buttons { height: 48px; padding: 6px 8px; overflow: hidden; box-sizing:border-box; justify-content: flex-end; } .dialog-buttons-vertical .dialog-buttons{ padding: 0 0 8px 0; .dialog-button { margin-left: 0; text-align: right; height: 48px; line-height: 48px; border-radius: 0; padding-left: 16px; padding-right: 16px; } } .dialog-button { .button; color:@themeColor; border-radius: 2px; line-height: 36px; height: 36px; text-transform: uppercase; min-width: 64px; padding: 0 8px; border: none; transition-duration: 300ms; transform: translate3d(0,0,0); &.active-state { background: rgba(0,0,0,0.1); } &.dialog-button-bold { font-weight: 700; } + .dialog-button { margin-left: 4px; } } // Prompt .dialog-input { height: 36px; padding: 0; border: none; font-size: 16px; transition-duration: 200ms; position: relative; &::placeholder { color: rgba(0,0,0,0.35); } + .dialog-input { margin-top: 16px; } } // Preloader .dialog-preloader, .dialog-progress { .dialog-title, .dialog-inner { text-align: center; } } .dialog-preloader { .dialog-title ~ .preloader, .dialog-text ~ .preloader { margin-top: 20px; } } .dialog-progress { .dialog-title ~ .progressbar, .dialog-text ~ .progressbar, .dialog-title ~ .progressbar-infinite, .dialog-text ~ .progressbar-infinite { margin-top: 16px; } } .color-loop({ .dialog-button.color-@{colorName} { color: @colorValue; } }); }