forked from olton/Metro-UI-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hint.less
114 lines (99 loc) · 2.21 KB
/
hint.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
.hint {
position: absolute;
background-color: @hintColor;
color: @dark;
padding: 10px;
#font > .sans;
font-size: 12px;
width: auto;
max-width: 220px;
margin-top: 10px;
.border;
z-index: @zindexTooltip;
display: none;
.hint-title, .hint-text {
color: inherit;
text-align: left;
}
.hint-title {
font-size: 1.2em;
font-weight: bold;
}
.hint-text {
}
}
// hint bottom
.hint {
&:before, &:after {
content: '';
position: absolute;
width: 0;
height: 0;
}
&:before {
z-index: 2;
}
&:after {
z-index: 1;
}
}
.hint {
&.bottom {
&:before, &:after {
top: 1px;
left: 10px;
margin: -10px 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 10px solid @hintColor;
}
&:after {
top: 0;
border-bottom: 10px solid @tableBorderColor;
}
}
&.top {
&:before, &:after {
top: 100%;
margin-top: -1px;
left: 10px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 10px solid @hintColor;
}
&:after {
margin-top: 1px;
border-top: 10px solid @tableBorderColor;
}
}
&.left {
&:before, &:after {
top: 10px;
left: 100%;
margin-left: -1px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 10px solid @hintColor;
}
&:after {
margin-left: 0;
border-left: 10px solid @tableBorderColor;
}
}
&.right {
&:before, &:after {
top: 10px;
left: -9px;
margin: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-right: 10px solid @hintColor;
}
&:after {
left: -10px;
border-right: 10px solid @tableBorderColor;
}
}
}
.hint {
}