forked from component/aurora-tip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightrider-tip.less
108 lines (94 loc) · 2.39 KB
/
nightrider-tip.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
@import "lesshat.less";
// generated by csshat, requires lesshat
@gradientBottom: #292d36;
@gradientTop: #585c67;
@borderColor: #26292e;
@borderRadius: 4px;
.tip-inner {
color: #fff;
padding: 8px 10px 7px 10px;
text-align: center;
opacity: .9; // layer alpha
border: 0px solid @borderColor; // stroke
.border-radius(@borderRadius); // border radius
background-color: #f1f5f5; // layer fill content
.box-shadow(~"0 2px 2px rgba(0,0,0,.2), inset 0 37px 1px rgba(255,255,255,.02)"); // drop shadow, inner shadow and inner glow
.background-image(linear-gradient(bottom, @gradientBottom 0%, @gradientTop 100%)); // gradient overlay
z-index: 9;
}
.tip {
font-size: 11px;
text-shadow: 0 -1px 1px rgba(5,5,5,.56); /* drop shadow */
}
.tip-arrow {
position: absolute;
opacity: .9; // layer alpha
z-index: 10;
width: 0;
height: 0;
line-height: 0;
border: 5px dashed @borderColor;
}
.tip-arrow-south { border-bottom-color: rgba(0,0,0,.75) }
.tip-arrow-north { border-top-color: rgba(0,0,0,.75) }
.tip-arrow-west { border-left-color: rgba(0,0,0,.75) }
.tip-arrow-east { border-right-color: rgba(0,0,0,.75) }
.tip-south .tip-arrow {
border-color: @gradientTop;
top: 0px;
left: 50%;
z-index: 10;
margin-left: -5px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent
}
.tip-north .tip-arrow {
border-color: @gradientBottom;
bottom: 0;
left: 50%;
margin-left: -5px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent
}
.tip-west, .tip-north-west, .tip-south-west {
.tip-arrow {
right: 0;
top: 50%;
margin-top: -5px;
border-left-style: solid;
border-right: none;
border-top-color: transparent;
border-bottom-color: transparent;
}
}
.tip-east, .tip-north-east, .tip-south-east {
.tip-arrow {
left: 0;
top: 50%;
margin-top: -5px;
border-right-style: solid;
border-left: none;
border-top-color: transparent;
border-bottom-color: transparent;
}
}
.tip-north-west, .tip-north-east {
.tip-arrow {
border-color: @gradientTop;
border-top-color: transparent;
border-bottom-color: transparent;
top: 25%;
}
}
.tip-south-west, .tip-south-east {
.tip-arrow {
border-color: @gradientBottom;
border-top-color: transparent;
border-bottom-color: transparent;
top: 75%;
}
}