forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialog.less
More file actions
113 lines (102 loc) · 1.94 KB
/
dialog.less
File metadata and controls
113 lines (102 loc) · 1.94 KB
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
@import (once) "variables";
@import (once) "utils";
.dialog-overlay {
background-color: @transparent;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
min-height: 100%;
min-width: 100%;
z-index: @zindexModal - 1;
}
.dialog {
position: fixed;
display: block;
width: auto;
height: auto;
float: left;
background-color: @white;
color: @dark;
z-index: @zindexModal;
.block-shadow;
.dialog-close-button {
position: absolute;
height: 1.5rem;
width: 1.5rem;
min-height: 1.5rem;
text-align: center;
vertical-align: middle;
font-size: 1rem;
font-weight: normal;
padding: .125rem 0 .625rem 0;
z-index: 3;
outline: none;
cursor: pointer;
background-color: @winFlatBackgroundColor;
color: @winFlatSystemButtonRestColor;
top: .25rem;
right: .25rem;
&:hover {
background-color: @winFlatSystemButtonHoverBackground;
color: @winFlatSystemButtonActiveColor;
&:after {
border-color: @winFlatSystemButtonActiveColor;
}
}
&:active {
background-color: @winFlatSystemButtonActiveBackground;
color: @white;
}
&:after {
border-color: @winFlatSystemButtonRestColor;
content: '\D7';
line-height: 1;
}
}
&.success {
background-color: @green;
color: @white;
.dialog-close-button {
background-color: @lightGreen;
color: @white;
&:active {
background-color: @darkGreen;
}
}
}
&.warning {
background-color: @orange;
color: @white;
.dialog-close-button {
background-color: @lightOrange;
color: @white;
&:active {
background-color: @darkOrange;
}
}
}
&.alert {
background-color: @red;
color: @white;
.dialog-close-button {
background-color: @lightRed;
color: @white;
&:active {
background-color: @darkRed;
}
}
}
&.info {
background-color: @cyan;
color: @white;
.dialog-close-button {
background-color: @lightCyan;
color: @white;
&:active {
background-color: @darkCyan;
}
}
}
}