/
modals.scss
57 lines (48 loc) · 1010 Bytes
/
modals.scss
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
// MODALS
// ==============================
$modal-shadow: true !default;
$modal-bg-color: $color-white !default;
$modal-mask-color: $color-gray-700 !default;
$modal-content-bg-color: $color-gray-200 !default;
.modal-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba($modal-mask-color, 0.5);
z-index: 10;
}
.modal {
display: flex;
flex-direction: column;
justify-content: space-between;
position: fixed;
top: 50%;
left: 50%;
max-width: 540px;
transform: translate(-50%, -50%);
background: $modal-bg-color;
border-radius: 5px;
overflow: hidden;
@if $modal-shadow {
box-shadow: 0 4px 12px rgba($color-gray-600, 0.5);
}
}
.modal-head {
padding: 10px 15px;
.modal-title {
font-size: 24px;
}
}
.modal-body {
flex: 1;
padding: 30px 15px;
background: $modal-content-bg-color;
}
.modal-footer {
padding: 15px;
& > * {
margin-bottom: 0;
}
}