forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharms.less
77 lines (70 loc) · 1.24 KB
/
charms.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
@import (once) "vars";
@import (once) "utils";
.charm {
display: block;
position: fixed;
z-index: @zindexCharms;
background: @dark;
color: @grayLighter;
padding: .625rem;
.charm-closer {
position: absolute;
display: block;
padding: .5rem;
//height: 2rem;
//width: 2rem;
text-align: center;
vertical-align: middle;
font-size: 2rem;
font-weight: normal;
//padding: 0 0 .625rem 0;
z-index: 3;
outline: none;
cursor: pointer;
color: @winFlatSystemButtonRestColor;
top: .25rem;
right: 1rem;
&:after {
content: '\D7';
position: absolute;
left: 50%;
top: 50%;
margin-top: -.65rem;
margin-left: -.35rem;
}
&:hover {
color: @white;
}
&:active {
color: @white;
}
}
}
.charm {
&.right-side {
width: auto;
right: 0;
top: 0;
left: auto;
bottom: 0;
}
&.left-side {
width: auto;
left: 0;
top: 0;
bottom: 0;
}
&.top-side {
height: auto;
left: 0;
right: 0;
top: 0;
}
&.bottom-side {
height: auto;
left: 0;
right: 0;
top: auto;
bottom: 0;
}
}