-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodals.less
126 lines (104 loc) · 1.88 KB
/
modals.less
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
//
// TEF components - modals
//
// overlay
.tc-modal {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.7);
text-align: center;
z-index: 100;
.centerY();
&.show {
display: block;
}
.tc-dialog {
margin: 0 auto;
}
}
// window
.tc-dialog {
position: relative;
margin: 30px auto;
background: white;
color: @grey6;
font-size: 14px;
line-height: 25px;
text-align: center;
padding: 30px;
border-radius: @radius;
box-shadow: @shadow;
width: auto;
.media-min-xs({ width: 60% });
.media-min-sm({ width: @widthXS; });
header {
font-size: 26px;
line-height: 28px;
margin-bottom: 35px;
font-weight: 600;
.tc-button {
position: absolute;
top: 5px;
right: 5px;
height: 40px;
width: 40px;
border: none;
background: transparent;
font-size: 15px;
color: @grey3;
cursor: pointer;
&:hover,
&:focus {
color: @significant;
}
&.active {
color: white;
background-color: @significant;
}
&.block { width: 100%; }
}
p {
font-size: 14px;
line-height: 25px;
}
}
p { margin: 0 0 10px; }
ul {
text-align: left;
padding-left: 16px;
}
ol {
text-align: left;
padding-left: 20px;
}
.tc-row { text-align: left; }
footer {
margin-top: 25px;
.tc-button {
display: block;
width: 100%;
& + .tc-button { margin: 7px 0 0; }
}
.media-min-xs({
.tc-button {
min-width: 120px;
width: auto;
display: inline-block;
&.block { width: 100%; }
& + .tc-button { margin: 0 0 0 7px; }
&.block + .tc-button.block {
width: 100%;
margin: 7px 0 0;
}
}
});
p {
font-weight: normal;
margin: 30px 0 -20px;
}
}
}