forked from chrisdavies/tlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtlite.css
113 lines (95 loc) · 1.7 KB
/
tlite.css
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
.tlite {
position: absolute;
z-index: 1000;
visibility: hidden;
width: 400px; /*this functions as a max-width for the internal "actual" tooltip, I figure 400px is a good max-size but feel free to change*/
transition: opacity 0.4s;
-webkit-backface-visibility: hidden;
text-align: center;
opacity: 0;
}
.tlite-table td,
.tlite-table th {
position: relative;
}
.tlite-visible {
visibility: visible;
opacity: 0.9;
}
.tlite > .tlite-inner {
background: #111;
box-shadow: 0 0.5rem 1rem -0.5rem black;
display: inline-block;
font-family: sans-serif;
font-size: 0.8rem;
font-weight: normal;
border-radius: 4px;
color: white;
padding: 0.6em 0.75rem;
text-align: left;
text-decoration: none;
white-space: normal;
}
.tlite > .tlite-inner::before {
content: ' ';
display: block;
background: inherit;
width: 10px;
height: 10px;
position: absolute;
transform: rotate(45deg);
}
.tlite-n > .tlite-inner::before {
top: -3px;
left: 50%;
margin-left: -5px;
}
.tlite-nw {
text-align: left;
}
.tlite-nw > .tlite-inner::before {
top: -3px;
left: 10px;
}
.tlite-ne {
text-align: right;
}
.tlite-ne > .tlite-inner::before {
top: -3px;
right: 10px;
}
.tlite-s > .tlite-inner::before {
bottom: -3px;
left: 50%;
margin-left: -5px;
}
.tlite-se {
text-align: right;
}
.tlite-se > .tlite-inner::before {
bottom: -3px;
right: 10px;
}
.tlite-sw {
text-align: left;
}
.tlite-sw > .tlite-inner::before {
bottom: -3px;
left: 10px;
}
.tlite-w {
text-align: left;
}
.tlite-w > .tlite-inner::before {
left: -3px;
top: 50%;
margin-top: -5px;
}
.tlite-e {
text-align: right;
}
.tlite-e > .tlite-inner::before {
right: -3px;
top: 50%;
margin-top: -5px;
}