forked from vuetifyjs/vuetify
/
VDialog.sass
106 lines (86 loc) 路 1.97 KB
/
VDialog.sass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@import './_variables.scss'
// Block
.v-dialog
border-radius: $dialog-border-radius
margin: $dialog-margin
overflow-y: auto
pointer-events: auto
transition: .3s map-get($transition, 'fast-in-fast-out')
width: 100%
z-index: inherit
outline: none
+elevation($dialog-elevation)
&:not(.v-dialog--fullscreen)
max-height: $dialog-max-height
> *
width: 100%
> .v-card
> .v-card__title
font-size: $dialog-card-title-font-size
font-weight: $dialog-card-title-font-weight
letter-spacing: $dialog-card-title-letter-spacing
padding: $dialog-card-title-padding
> .v-card__text
padding: $dialog-card-text-padding
> .v-card__subtitle
padding: $dialog-card-subtitle-padding
> .v-card__actions
padding: $dialog-card-actions-padding
// Element
.v-dialog__content
align-items: center
display: flex
height: 100%
justify-content: center
left: 0
pointer-events: none
position: fixed
top: 0
transition: .2s map-get($transition, 'fast-in-fast-out'), z-index 1ms
width: 100%
z-index: 6
.v-dialog__container
display: none
&--attached
display: inline
// Modifier
.v-dialog--animated
animation-duration: .15s
animation-name: animate-dialog
animation-timing-function: map-get($transition, 'fast-in-fast-out')
.v-dialog--fullscreen
border-radius: 0
margin: 0
height: 100%
position: fixed
overflow-y: auto
top: 0
left: 0
> .v-card
min-height: 100%
min-width: 100%
margin: 0 !important
padding: 0 !important
.v-dialog--scrollable,
.v-dialog--scrollable > form
display: flex
> .v-card
display: flex
flex: 1 1 100%
flex-direction: column
max-height: 100%
max-width: 100%
> .v-card__title,
> .v-card__actions
flex: 0 0 auto
> .v-card__text
backface-visibility: hidden
flex: 1 1 auto
overflow-y: auto
@keyframes animate-dialog
0%
transform: scale(1)
50%
transform: scale(1.03)
100%
transform: scale(1)