-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathModal.scss
101 lines (87 loc) · 1.47 KB
/
Modal.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
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
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
@import 'stylesheets/globals.scss';
.modal {
@include modalAnimation();
position: absolute;
top: 50%;
left: 50%;
width: 540px;
background: white;
border-radius: 5px;
overflow: hidden;
transition: width 0.5s cubic-bezier(1, 0, 0, 1);
> *:not(:first-child):not(:last-child) {
border-color: $borderGrey;
border-width: 0 0 1px 0;
}
}
.header {
height: 90px;
position: relative;
transition: background 0.3s ease;
}
.title {
position: absolute;
font-size: 22px;
font-weight: 500;
color: white;
left: 28px;
}
.subtitle {
@include DosisFont;
position: absolute;
font-size: 14px;
color: white;
top: 56px;
left: 28px;
}
.icon {
position: absolute;
top: 19px;
right: 28px;
width: 52px;
height: 52px;
text-align: center;
border-radius: 100%;
background: rgba(0, 0, 0, 0.3);
svg{
position: relative;
top: 50%;
@include transform(translateY(-50%));
}
}
.danger {
.header {
background: $red;
}
}
.info {
.header {
background: $blue;
}
}
.valid {
.header {
background: $green;
}
}
.footer {
padding: 17px 28px;
> * {
margin: 0 12px 0 0;
&:last-child {
margin-right: 0;
}
}
}
.textModal {
text-align: center;
padding: 17px 55px 0 55px;
}
@include modalKeyframes();