vue-material/src/components/mdDialog/mdDialog.scss

103 lines
1.7 KiB
SCSS
Raw Normal View History

2016-11-16 19:56:26 +00:00
@import '../../core/stylesheets/variables.scss';
.md-dialog-container {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
pointer-events: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 108;
&.md-active {
pointer-events: auto;
.md-dialog {
opacity: 1 !important;
transform: scale(1) !important;
transition: $swift-ease-out;
2016-11-21 04:46:24 +00:00
transition-property: opacity, transform;
}
}
}
.md-dialog-backdrop {
position: fixed;
z-index: 109;
}
2016-11-16 19:56:26 +00:00
.md-dialog {
2016-11-17 01:54:56 +00:00
min-width: 280px;
2016-11-16 19:56:26 +00:00
max-width: 80%;
max-height: 80%;
overflow: hidden;
position: relative;
2016-11-16 19:56:26 +00:00
z-index: 110;
outline: none;
2016-11-21 04:46:24 +00:00
border-radius: 2px;
2016-11-16 19:56:26 +00:00
opacity: 0;
box-shadow: $material-shadow-14dp;
transform: scale(.9, .85);
2016-11-22 03:45:15 +00:00
transform-origin: top center;
transition: opacity $swift-ease-out-duration $swift-ease-out-timing-function,
transform $swift-ease-out-duration .05s $swift-ease-out-timing-function;
2016-11-21 04:46:24 +00:00
will-change: opacity, transform;
2016-11-16 19:56:26 +00:00
&.md-transition-off {
2016-11-21 04:45:35 +00:00
transition: none !important;
}
2016-11-22 00:30:32 +00:00
p {
margin: 0;
}
}
2016-11-22 02:26:10 +00:00
.md-dialog-title {
margin-bottom: 20px;
padding: 24px 24px 0;
}
2016-11-22 00:30:32 +00:00
.md-dialog-content {
2016-11-22 02:26:10 +00:00
padding: 0 24px 24px;
&:first-child {
padding-top: 24px;
}
p:first-child:not(:only-child) {
margin-top: 0;
}
p:last-child:not(:only-child) {
margin-bottom: 0;
}
2016-11-22 00:30:32 +00:00
}
.md-dialog-body {
margin: 0 -24px;
padding: 0 24px;
overflow: auto;
}
.md-dialog-actions {
min-height: 52px;
padding: 8px 8px 8px 24px;
display: flex;
justify-content: flex-end;
align-items: center;
.md-button {
min-width: 64px;
margin: 0;
padding: 0 8px;
+ .md-button {
margin-left: 8px;
}
}
2016-11-16 19:56:26 +00:00
}