|
1 | 1 | /*! Simple Hint v2.1.0 | Copyright (c) 2014 Catalin Covic | https://github.com/catc */
|
| 2 | +/* |
| 3 | + ========================= |
| 4 | + CHANGE ANY VARIABLES HERE |
| 5 | + ========================= |
| 6 | +*/ |
| 7 | +/* |
| 8 | + ========================= |
| 9 | +*/ |
| 10 | +[data-hint]:after { |
| 11 | + content: attr(data-hint); |
| 12 | + text-align: center; |
| 13 | + white-space: nowrap; |
| 14 | + z-index: 9999; |
| 15 | + /* |
| 16 | + ============================ |
| 17 | + CHANGE ANY TOOLTIP CSS HERE |
| 18 | + ============================ |
| 19 | + */ |
| 20 | + background: #292929; |
| 21 | + padding: 3px 7px; |
| 22 | + border-radius: 2px; |
| 23 | + color: white; |
| 24 | + font-weight: 400; |
| 25 | + font-size: 1.2rem; |
| 26 | + line-height: 2em; |
| 27 | + /* |
| 28 | + ============================ |
| 29 | + */ } |
| 30 | + |
2 | 31 | [data-hint]:after, [data-hint]:before {
|
3 | 32 | display: inline-block;
|
4 | 33 | pointer-events: none;
|
|
13 | 42 | border: 5px solid transparent;
|
14 | 43 | z-index: 9998; }
|
15 | 44 |
|
16 |
| -[data-hint]:after { |
17 |
| - content: attr(data-hint); |
18 |
| - text-align: center; |
19 |
| - padding: 3px 7px; |
20 |
| - border-radius: 2px; |
21 |
| - z-index: 9999; |
22 |
| - color: white; |
23 |
| - font-weight: 400; |
24 |
| - white-space: nowrap; |
25 |
| - font-size: 1.2rem; |
26 |
| - line-height: 2em; |
27 |
| - background: #292929; } |
28 |
| - |
29 |
| -[class*="hint-bottom"]:before, [class*="hint-top"]:before { |
30 |
| - right: 50%; |
31 |
| - margin-right: -5px; } |
32 |
| - |
33 |
| -[class*="hint-bottom"]:after, [class*="hint-top"]:after { |
34 |
| - left: 50%; |
35 |
| - -webkit-transform: translateX(-50%); |
36 |
| - -ms-transform: translateX(-50%); |
37 |
| - transform: translateX(-50%); } |
38 |
| - |
39 | 45 | [class*="hint-bottom"]:before {
|
40 | 46 | border-bottom-color: #292929;
|
41 |
| - top: 100%; } |
| 47 | + top: 100%; |
| 48 | + margin-top: 0px; } |
42 | 49 |
|
43 | 50 | [class*="hint-bottom"]:after {
|
44 | 51 | margin-top: 10px;
|
45 | 52 | top: 100%; }
|
46 | 53 |
|
47 | 54 | [class*="hint-top"]:before {
|
48 | 55 | border-top-color: #292929;
|
49 |
| - bottom: 100%; } |
| 56 | + bottom: 100%; |
| 57 | + margin-bottom: 0px; } |
50 | 58 |
|
51 | 59 | [class*="hint-top"]:after {
|
52 | 60 | bottom: 100%;
|
53 | 61 | margin-bottom: 10px; }
|
54 | 62 |
|
55 |
| -[class*="hint-left"]:before, [class*="hint-right"]:before { |
56 |
| - top: 50%; |
57 |
| - margin-top: -5px; } |
| 63 | +[class*="hint-bottom-middle"]:before, [class*="hint-top-middle"]:before { |
| 64 | + right: 50%; |
| 65 | + margin-right: -5px; } |
58 | 66 |
|
59 |
| -[class*="hint-left"]:after, [class*="hint-right"]:after { |
60 |
| - top: 50%; |
61 |
| - -webkit-transform: translateY(-50%); |
62 |
| - -ms-transform: translateY(-50%); |
63 |
| - transform: translateY(-50%); } |
| 67 | +[class*="hint-bottom-middle"]:after, [class*="hint-top-middle"]:after { |
| 68 | + left: 50%; |
| 69 | + -webkit-transform: translateX(-50%); |
| 70 | + -ms-transform: translateX(-50%); |
| 71 | + transform: translateX(-50%); } |
| 72 | + |
| 73 | +[class*="hint-bottom-left"]:before, [class*="hint-top-left"]:before { |
| 74 | + left: 15px; } |
| 75 | + |
| 76 | +[class*="hint-bottom-left"]:after, [class*="hint-top-left"]:after { |
| 77 | + left: 0; } |
| 78 | + |
| 79 | +[class*="hint-bottom-right"]:before, [class*="hint-top-right"]:before { |
| 80 | + right: 15px; } |
| 81 | + |
| 82 | +[class*="hint-bottom-right"]:after, [class*="hint-top-right"]:after { |
| 83 | + right: 0; } |
64 | 84 |
|
65 | 85 | [class*="hint-left"]:before {
|
66 | 86 | border-left-color: #292929;
|
|
80 | 100 | left: 100%;
|
81 | 101 | margin-left: 10px; }
|
82 | 102 |
|
| 103 | +[class*="hint-left-middle"]:before, [class*="hint-right-middle"]:before { |
| 104 | + top: 50%; |
| 105 | + margin-top: -5px; } |
| 106 | + |
| 107 | +[class*="hint-left-middle"]:after, [class*="hint-right-middle"]:after { |
| 108 | + top: 50%; |
| 109 | + -webkit-transform: translateY(-50%); |
| 110 | + -ms-transform: translateY(-50%); |
| 111 | + transform: translateY(-50%); } |
| 112 | + |
| 113 | +[class*="hint-left-top"]:before, [class*="hint-right-top"]:before { |
| 114 | + top: 15px; } |
| 115 | + |
| 116 | +[class*="hint-left-top"]:after, [class*="hint-right-top"]:after { |
| 117 | + top: 0; } |
| 118 | + |
| 119 | +[class*="hint-left-bottom"]:before, [class*="hint-right-bottom"]:before { |
| 120 | + bottom: 15px; } |
| 121 | + |
| 122 | +[class*="hint-left-bottom"]:after, [class*="hint-right-bottom"]:after { |
| 123 | + bottom: 0; } |
| 124 | + |
83 | 125 | .hint-persist:before, .hint-persist:after {
|
84 | 126 | visibility: visible; }
|
85 | 127 |
|
|
111 | 153 | -webkit-transition: visibility 0s 1.5s ease;
|
112 | 154 | transition: visibility 0s 1.5s ease; }
|
113 | 155 |
|
114 |
| -[class*="hint-fade"]:before, [class*="hint-fade"]:after { |
115 |
| - -webkit-transition: opacity 0.2s ease, visibility 0.2s ease; |
116 |
| - transition: opacity 0.2s ease, visibility 0.2s ease; |
117 |
| - opacity: 0; } |
118 |
| - |
119 |
| -[class*="hint-fade"]:hover:before, [class*="hint-fade"]:hover:after { |
120 |
| - opacity: 1; } |
121 |
| - |
122 |
| -[class*="hint-fade"][class*="-d-short"]:hover:before, [class*="hint-fade"][class*="-d-short"]:hover:after { |
| 156 | +[class*="hint-fade"][class*="-d-short"]:hover:before, [class*="hint-fade"][class*="-d-short"]:hover:after, [class*="hint-anim"][class*="-d-short"]:hover:before, [class*="hint-anim"][class*="-d-short"]:hover:after { |
123 | 157 | -webkit-transition-delay: 0.4s;
|
124 | 158 | transition-delay: 0.4s; }
|
125 | 159 |
|
126 |
| -[class*="hint-fade"][class*="-d-med"]:hover:before, [class*="hint-fade"][class*="-d-med"]:hover:after { |
| 160 | +[class*="hint-fade"][class*="-d-med"]:hover:before, [class*="hint-fade"][class*="-d-med"]:hover:after, [class*="hint-anim"][class*="-d-med"]:hover:before, [class*="hint-anim"][class*="-d-med"]:hover:after { |
127 | 161 | -webkit-transition-delay: 1s;
|
128 | 162 | transition-delay: 1s; }
|
129 | 163 |
|
130 |
| -[class*="hint-fade"][class*="-d-long"]:hover:before, [class*="hint-fade"][class*="-d-long"]:hover:after { |
| 164 | +[class*="hint-fade"][class*="-d-long"]:hover:before, [class*="hint-fade"][class*="-d-long"]:hover:after, [class*="hint-anim"][class*="-d-long"]:hover:before, [class*="hint-anim"][class*="-d-long"]:hover:after { |
131 | 165 | -webkit-transition-delay: 1.5s;
|
132 | 166 | transition-delay: 1.5s; }
|
133 | 167 |
|
| 168 | +[class*="hint-fade"]:before, [class*="hint-fade"]:after { |
| 169 | + -webkit-transition: opacity 0.2s ease-out, visibility 0.2s ease-out; |
| 170 | + transition: opacity 0.2s ease-out, visibility 0.2s ease-out; |
| 171 | + opacity: 0; } |
| 172 | + |
| 173 | +[class*="hint-fade"]:hover:before, [class*="hint-fade"]:hover:after { |
| 174 | + opacity: 1; } |
| 175 | + |
134 | 176 | [class*="hint-anim"][class*="hint-top"]:after, [class*="hint-anim"][class*="hint-top"]:before {
|
135 | 177 | bottom: 125%;
|
136 | 178 | opacity: 0;
|
|
175 | 217 | margin-left: -10px;
|
176 | 218 | opacity: 1; }
|
177 | 219 |
|
178 |
| -[class*="hint-anim"][class*="-d-short"]:hover:before, [class*="hint-anim"][class*="-d-short"]:hover:after { |
179 |
| - -webkit-transition-delay: 0.4s; |
180 |
| - transition-delay: 0.4s; } |
181 |
| - |
182 |
| -[class*="hint-anim"][class*="-d-med"]:hover:before, [class*="hint-anim"][class*="-d-med"]:hover:after { |
183 |
| - -webkit-transition-delay: 1s; |
184 |
| - transition-delay: 1s; } |
185 |
| - |
186 |
| -[class*="hint-anim"][class*="-d-long"]:hover:before, [class*="hint-anim"][class*="-d-long"]:hover:after { |
187 |
| - -webkit-transition-delay: 1.5s; |
188 |
| - transition-delay: 1.5s; } |
189 |
| - |
190 | 220 | [class*="hint-"][class*="-t-info"][class*="hint-bottom"]:before {
|
191 | 221 | border-bottom-color: #44C2F9; }
|
192 | 222 |
|
|
0 commit comments