-
Notifications
You must be signed in to change notification settings - Fork 268
/
containers.import.less
94 lines (75 loc) · 1.78 KB
/
containers.import.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
body {
// lock scroll and blur content
&.disable-scroll {
overflow: hidden;
}
&.blur {
.dapp-flex-content,
.dapp-footer,
.dapp-header {
.blur(4px);
}
}
}
// MODAL
.dapp-modal-overlay {
z-index: 99;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
.display(flex);
.align-items(flex-start);
.justify-content(center);
.dapp-overflow;
background: fadeout(@colorBackgroundOverlay, 50%);
// ANIMATION
.transition(opacity @animationSpeed);
&.animate {
.opacity(0);
.dapp-modal-container {
.translateY(-20%);
}
}
}
.dapp-modal-container {
position: relative;
width: 14*@gridWidth;
margin: 6*@gridHeight auto;
padding: @defaultPaddingVertical @defaultPaddingHorizontal;
background: @colorWhite;
box-sizing: border-box;
.dapp-shadow-medium;
border-radius: 3px;
text-align: center;
// ANIMATION
.transition(transform @animationSpeed);
.dapp-modal-header {
position: relative;
padding: @defaultPaddingVertical*2 0;
margin: -@defaultPaddingVertical -@defaultPaddingHorizontal;
margin-bottom: @defaultPaddingVertical;
border-radius: 2px 2px 0 0;
color: @colorTextPrimary;
line-height: 2 * @gridHeight;
text-align: center;
&.dapp-pattern {
color: @colorWhite;
}
h1 {
margin: 0;
}
.dapp-identicon {
position: absolute;
top: -@gridHeight * 1.9;
left: 50%;
margin-left: -@gridWidth;
}
}
p {
margin: @defaultPaddingVertical*2 0;
line-height: @gridHeight*1.2;
font-size: 1.2em;
}
}