-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
347 lines (312 loc) · 17.7 KB
/
index.html
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML Meta Tags -->
<title>SpikeTip - Tooltips</title>
<meta name="description" content="Simple tooltips made of pure CSS!.
SpikeTip lets you add tooltips to elements without JavaScript and in just a few lines of CSS.">
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="SpikeTip - Tooltips">
<meta itemprop="description" content="Simple tooltips made of pure CSS!.
SpikeTip lets you add tooltips to elements without JavaScript and in just a few lines of CSS.">
<meta itemprop="image" content="https://github.com/VishnuBaliga/SpikeT∏ip/blob/gh-pages/img/spiketip-logo.png?raw=true">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://vishnubaliga.github.io/SpikeTip">
<meta property="og:type" content="website">
<meta property="og:title" content="SpikeTip - Tooltips">
<meta property="og:description" content="Simple tooltips made of pure CSS!.
SpikeTip lets you add tooltips to elements without JavaScript and in just a few lines of CSS.">
<meta property="og:image" content="https://github.com/VishnuBaliga/SpikeTip/blob/gh-pages/img/spiketip-logo.png?raw=true">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="SpikeTip - Tooltips">
<meta name="twitter:description" content="Simple tooltips made of pure CSS!.
SpikeTip lets you add tooltips to elements without JavaScript and in just a few lines of CSS.">
<meta name="twitter:image" content="https://github.com/VishnuBaliga/SpikeTip/blob/gh-pages/img/spiketip-logo.png?raw=true">
<!-- Favicon -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="./spiketip.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet">
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-135301833-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-135301833-1');
</script>
</head>
<body>
<div class="banner">
<div class="container">
<div class="row banner-content">
<div class="col-md-12">
<!-- Place this tag where you want the button to render. -->
<div class="banner-badges"><a class="github-button" href="https://github.com/VishnuBaliga/SpikeTip"
data-size="large" aria-label="Star VishnuBaliga/SpikeTip on GitHub">Star</a> <a href="https://badge.fury.io/js/spiketip-tooltip"><img
src="https://badge.fury.io/js/spiketip-tooltip.svg" alt="npm version" height="18"></a></div>
<img class="main-logo" src="./img/spiketip-logo.png" alt="SpikeTip Logo" />
<h1>Simple tooltips made of pure CSS!</h1>
<p>SpikeTip lets you add tooltips to elements <strong>without JavaScript</strong> and in just a few
lines of CSS.</p>
<a class="btn btn-default btn-action" href="https://github.com/VishnuBaliga/SpikeTip" target="_blank">Github
Project</a>
<a class="btn btn-default btn-action" href="https://github.com/VishnuBaliga/SpikeTip/blob/master/spiketip.css"
target="_blank">Download CSS</a>
</div>
</div>
</div>
<svg style="pointer-events: none" class="wave" width="100%" height="50px" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1920 75">
<defs>
<style>
.a {
fill: none;
}
.b {
clip-path: url(#a);
}
.c,
.d {
fill: #f9f9fc;
}
.d {
opacity: 0.5;
isolation: isolate;
}
</style>
<clipPath id="a">
<rect class="a" width="1920" height="75"></rect>
</clipPath>
</defs>
<title>wave</title>
<g class="b">
<path class="c" d="M1963,327H-105V65A2647.49,2647.49,0,0,1,431,19c217.7,3.5,239.6,30.8,470,36,297.3,6.7,367.5-36.2,642-28a2511.41,2511.41,0,0,1,420,48"></path>
</g>
<g class="b">
<path class="d" d="M-127,404H1963V44c-140.1-28-343.3-46.7-566,22-75.5,23.3-118.5,45.9-162,64-48.6,20.2-404.7,128-784,0C355.2,97.7,341.6,78.3,235,50,86.6,10.6-41.8,6.9-127,10"></path>
</g>
<g class="b">
<path class="d" d="M1979,462-155,446V106C251.8,20.2,576.6,15.9,805,30c167.4,10.3,322.3,32.9,680,56,207,13.4,378,20.3,494,24"></path>
</g>
<g class="b">
<path class="d" d="M1998,484H-243V100c445.8,26.8,794.2-4.1,1035-39,141-20.4,231.1-40.1,378-45,349.6-11.6,636.7,73.8,828,150"></path>
</g>
</svg>
</div>
<div class="container how-to-use">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>How to Use <small> tooltips</small></h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4>Simply include <code>spiketip.min.css</code> into your HTML:</h4>
<pre class="language-markup mb"><code class=" language-markup"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>path/to/spiketip.css<span class="token punctuation">"</span></span><span class="token punctuation">></span></span></code></pre>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4>And add the attributes <code>spiketip-title</code> and <code>spiketip-pos</code> to your HTML elements:</h4>
<pre class="language-markup mb"><code class=" language-markup"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>button</span> <span class="token attr-name">spiketip-title</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>I<span class="token punctuation">'</span>m a SpikeTip tooltip.<span class="token punctuation">"</span></span> <span class="token attr-name">spiketip-pos</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>top<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Hover Me!<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>button</span><span class="token punctuation">></span></span></code></pre>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4>Alternatively, you can install using npm</h4>
<pre class="language-markup"><code class=" language-markup">npm install spiketip-tooltip</code></pre>
<pre class="language-markup"><code class=" language-markup">import 'spiketip-tooltip/spiketip.min.css';</code></pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>Position <small>your tooltips</small></h1>
</div>
<table class="table table-striped">
<thead>
<tr>
<th>Position</th>
<th>Code</th>
<th>Demo</th>
</tr>
</thead>
<tbody>
<tr>
<td>Top</td>
<td><code>spiketip-pos="top"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="top">Hover me!</button></td>
</tr>
<tr>
<td>Bottom</td>
<td><code>spiketip-pos="bottom"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="bottom">Hover me!</button></td>
</tr>
<tr>
<td>Right</td>
<td><code>spiketip-pos="right"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="right">Hover me!</button></td>
</tr>
<tr>
<td>Left</td>
<td><code>spiketip-pos="left"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="left">Hover me!</button></td>
</tr>
<tr>
<td>Top-Right</td>
<td><code>spiketip-pos="top-right"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="top-right">Hover
me!</button></td>
</tr>
<tr>
<td>Top-Left</td>
<td><code>spiketip-pos="top-left"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="top-left">Hover
me!</button></td>
</tr>
<tr>
<td>Bottom-Right</td>
<td><code>spiketip-pos="bottom-right"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="bottom-left">Hover
me!</button></td>
</tr>
<tr>
<td>Bottom-Left</td>
<td><code>spiketip-pos="bottom-right"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-pos="bottom-right">Hover
me!</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>Color <small>your tooltips</small></h1>
</div>
<table class="table table-striped">
<thead>
<tr>
<th>Color</th>
<th>Code</th>
<th>Demo</th>
</tr>
</thead>
<tbody>
<tr>
<td>Success</td>
<td><code>spiketip-color="success"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-color="success"
spiketip-pos="right">Hover me!</button></td>
</tr>
<tr>
<td>Error</td>
<td><code>spiketip-color="error"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-color="error"
spiketip-pos="right">Hover me!</button></td>
</tr>
<tr>
<td>Warning</td>
<td><code>spiketip-color="warning"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-color="warning"
spiketip-pos="right">Hover me!</button></td>
</tr>
<tr>
<td>info</td>
<td><code>spiketip-color="info"</code></td>
<td><button class="btn btn-demo" spiketip-title="Whats up!" spiketip-color="info"
spiketip-pos="right">Hover me!</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>Size <small>your tooltips</small></h1>
</div>
<table class="table table-striped">
<thead>
<tr>
<th>Size</th>
<th>Code</th>
<th>Demo</th>
</tr>
</thead>
<tbody>
<tr>
<td>Small</td>
<td><code>spiketip-length="sm"</code></td>
<td><button class="btn btn-demo" spiketip-title="He was once a little green slab of clay. Gumby!"
spiketip-length="sm" spiketip-pos="top">Hover me!</button></td>
</tr>
<tr>
<td>Medium</td>
<td><code>spiketip-length="md"</code></td>
<td><button class="btn btn-demo" spiketip-title="He was once a little green slab of clay. Gumby! You should see what Gumby can do today. Gumby!"
spiketip-length="md" spiketip-pos="top">Hover me!</button></td>
</tr>
<tr>
<td>Large</td>
<td><code>spiketip-length="lg"</code></td>
<td><button class="btn btn-demo" spiketip-title="He was once a little green slab of clay. Gumby! You should see what Gumby can do today. Gumby! He can walk into any book, with his pony pal Pokey, too. If you've got a heart then Gumby's a part of you."
spiketip-length="lg" spiketip-pos="top">Hover me!</button></td>
</tr>
<tr>
<td>Extra Large</td>
<td><code>spiketip-length="xl"</code></td>
<td><button class="btn btn-demo" spiketip-title="He was once a little green slab of clay. Gumby! You should see what Gumby can do today. Gumby! He can walk into any book, with his pony pal Pokey, too. If you've got a heart then Gumby's a part of you."
spiketip-length="xl" spiketip-pos="top">Hover me!</button></td>
</tr>
<tr>
<td>Auto</td>
<td><code>spiketip-length="auto"</code></td>
<td><button class="btn btn-demo" spiketip-title="He was once a little green slab of clay. Gumby! You should see what Gumby can do today. Gumby! He can walk into any book, with his pony pal Pokey, too. If you've got a heart then Gumby's a part of you."
spiketip-length="auto" spiketip-pos="top">Hover me!</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col-md-12">
<center>
<p>Made by Vishnu Baliga (<a href="https://twitter.com/Vishnu_Baliga" target="_blank">@Vishnu_Baliga</a>)</p>
</center>
</div>
</div>
</div>
</footer>
</body>
</html>