tao_popover 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +9 -1
- data/lib/assets/javascripts/tao_popover/direction.coffee +1 -1
- data/lib/assets/javascripts/tao_popover/element.coffee +45 -29
- data/lib/assets/javascripts/tao_popover/position.coffee +4 -4
- data/lib/assets/javascripts/tao_popover.coffee +1 -1
- data/lib/assets/stylesheets/tao_popover.scss +3 -2
- data/lib/tao_popover/action_view/helpers.rb +30 -0
- data/lib/tao_popover/engine.rb +14 -0
- data/lib/tao_popover/{rails/version.rb → version.rb} +1 -1
- data/lib/tao_popover.rb +2 -4
- metadata +12 -55
- data/.blade.yml +0 -47
- data/.gitignore +0 -10
- data/.travis.yml +0 -10
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -21
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/dist/tao.css +0 -475
- data/dist/tao.js +0 -31224
- data/dist/tao_popover.css +0 -89
- data/dist/tao_popover.js +0 -397
- data/index.html +0 -95
- data/lib/assets/javascripts/tao_popover/trigger.coffee +0 -46
- data/lib/tao_popover/rails/engine.rb +0 -8
- data/lib/tao_popover/rails.rb +0 -2
- data/tao_popover.gemspec +0 -31
data/dist/tao.css
DELETED
@@ -1,475 +0,0 @@
|
|
1
|
-
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
|
2
|
-
|
3
|
-
/* Document
|
4
|
-
========================================================================== */
|
5
|
-
|
6
|
-
/**
|
7
|
-
* 1. Change the default font family in all browsers (opinionated).
|
8
|
-
* 2. Correct the line height in all browsers.
|
9
|
-
* 3. Prevent adjustments of font size after orientation changes in
|
10
|
-
* IE on Windows Phone and in iOS.
|
11
|
-
*/
|
12
|
-
|
13
|
-
|
14
|
-
html {
|
15
|
-
font-family: sans-serif; /* 1 */
|
16
|
-
line-height: 1.15; /* 2 */
|
17
|
-
-ms-text-size-adjust: 100%; /* 3 */
|
18
|
-
-webkit-text-size-adjust: 100%; /* 3 */
|
19
|
-
}
|
20
|
-
|
21
|
-
/* Sections
|
22
|
-
========================================================================== */
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Remove the margin in all browsers (opinionated).
|
26
|
-
*/
|
27
|
-
|
28
|
-
body {
|
29
|
-
margin: 0;
|
30
|
-
}
|
31
|
-
|
32
|
-
/**
|
33
|
-
* Add the correct display in IE 9-.
|
34
|
-
*/
|
35
|
-
|
36
|
-
article,
|
37
|
-
aside,
|
38
|
-
footer,
|
39
|
-
header,
|
40
|
-
nav,
|
41
|
-
section {
|
42
|
-
display: block;
|
43
|
-
}
|
44
|
-
|
45
|
-
/**
|
46
|
-
* Correct the font size and margin on `h1` elements within `section` and
|
47
|
-
* `article` contexts in Chrome, Firefox, and Safari.
|
48
|
-
*/
|
49
|
-
|
50
|
-
h1 {
|
51
|
-
font-size: 2em;
|
52
|
-
margin: 0.67em 0;
|
53
|
-
}
|
54
|
-
|
55
|
-
/* Grouping content
|
56
|
-
========================================================================== */
|
57
|
-
|
58
|
-
/**
|
59
|
-
* Add the correct display in IE 9-.
|
60
|
-
* 1. Add the correct display in IE.
|
61
|
-
*/
|
62
|
-
|
63
|
-
figcaption,
|
64
|
-
figure,
|
65
|
-
main { /* 1 */
|
66
|
-
display: block;
|
67
|
-
}
|
68
|
-
|
69
|
-
/**
|
70
|
-
* Add the correct margin in IE 8.
|
71
|
-
*/
|
72
|
-
|
73
|
-
figure {
|
74
|
-
margin: 1em 40px;
|
75
|
-
}
|
76
|
-
|
77
|
-
/**
|
78
|
-
* 1. Add the correct box sizing in Firefox.
|
79
|
-
* 2. Show the overflow in Edge and IE.
|
80
|
-
*/
|
81
|
-
|
82
|
-
hr {
|
83
|
-
box-sizing: content-box; /* 1 */
|
84
|
-
height: 0; /* 1 */
|
85
|
-
overflow: visible; /* 2 */
|
86
|
-
}
|
87
|
-
|
88
|
-
/**
|
89
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
90
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
91
|
-
*/
|
92
|
-
|
93
|
-
pre {
|
94
|
-
font-family: monospace, monospace; /* 1 */
|
95
|
-
font-size: 1em; /* 2 */
|
96
|
-
}
|
97
|
-
|
98
|
-
/* Text-level semantics
|
99
|
-
========================================================================== */
|
100
|
-
|
101
|
-
/**
|
102
|
-
* 1. Remove the gray background on active links in IE 10.
|
103
|
-
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
104
|
-
*/
|
105
|
-
|
106
|
-
a {
|
107
|
-
background-color: transparent; /* 1 */
|
108
|
-
-webkit-text-decoration-skip: objects; /* 2 */
|
109
|
-
}
|
110
|
-
|
111
|
-
/**
|
112
|
-
* Remove the outline on focused links when they are also active or hovered
|
113
|
-
* in all browsers (opinionated).
|
114
|
-
*/
|
115
|
-
|
116
|
-
a:active,
|
117
|
-
a:hover {
|
118
|
-
outline-width: 0;
|
119
|
-
}
|
120
|
-
|
121
|
-
/**
|
122
|
-
* 1. Remove the bottom border in Firefox 39-.
|
123
|
-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
124
|
-
*/
|
125
|
-
|
126
|
-
abbr[title] {
|
127
|
-
border-bottom: none; /* 1 */
|
128
|
-
text-decoration: underline; /* 2 */
|
129
|
-
text-decoration: underline dotted; /* 2 */
|
130
|
-
}
|
131
|
-
|
132
|
-
/**
|
133
|
-
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
134
|
-
*/
|
135
|
-
|
136
|
-
b,
|
137
|
-
strong {
|
138
|
-
font-weight: inherit;
|
139
|
-
}
|
140
|
-
|
141
|
-
/**
|
142
|
-
* Add the correct font weight in Chrome, Edge, and Safari.
|
143
|
-
*/
|
144
|
-
|
145
|
-
b,
|
146
|
-
strong {
|
147
|
-
font-weight: bolder;
|
148
|
-
}
|
149
|
-
|
150
|
-
/**
|
151
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
152
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
153
|
-
*/
|
154
|
-
|
155
|
-
code,
|
156
|
-
kbd,
|
157
|
-
samp {
|
158
|
-
font-family: monospace, monospace; /* 1 */
|
159
|
-
font-size: 1em; /* 2 */
|
160
|
-
}
|
161
|
-
|
162
|
-
/**
|
163
|
-
* Add the correct font style in Android 4.3-.
|
164
|
-
*/
|
165
|
-
|
166
|
-
dfn {
|
167
|
-
font-style: italic;
|
168
|
-
}
|
169
|
-
|
170
|
-
/**
|
171
|
-
* Add the correct background and color in IE 9-.
|
172
|
-
*/
|
173
|
-
|
174
|
-
mark {
|
175
|
-
background-color: #ff0;
|
176
|
-
color: #000;
|
177
|
-
}
|
178
|
-
|
179
|
-
/**
|
180
|
-
* Add the correct font size in all browsers.
|
181
|
-
*/
|
182
|
-
|
183
|
-
small {
|
184
|
-
font-size: 80%;
|
185
|
-
}
|
186
|
-
|
187
|
-
/**
|
188
|
-
* Prevent `sub` and `sup` elements from affecting the line height in
|
189
|
-
* all browsers.
|
190
|
-
*/
|
191
|
-
|
192
|
-
sub,
|
193
|
-
sup {
|
194
|
-
font-size: 75%;
|
195
|
-
line-height: 0;
|
196
|
-
position: relative;
|
197
|
-
vertical-align: baseline;
|
198
|
-
}
|
199
|
-
|
200
|
-
sub {
|
201
|
-
bottom: -0.25em;
|
202
|
-
}
|
203
|
-
|
204
|
-
sup {
|
205
|
-
top: -0.5em;
|
206
|
-
}
|
207
|
-
|
208
|
-
/* Embedded content
|
209
|
-
========================================================================== */
|
210
|
-
|
211
|
-
/**
|
212
|
-
* Add the correct display in IE 9-.
|
213
|
-
*/
|
214
|
-
|
215
|
-
audio,
|
216
|
-
video {
|
217
|
-
display: inline-block;
|
218
|
-
}
|
219
|
-
|
220
|
-
/**
|
221
|
-
* Add the correct display in iOS 4-7.
|
222
|
-
*/
|
223
|
-
|
224
|
-
audio:not([controls]) {
|
225
|
-
display: none;
|
226
|
-
height: 0;
|
227
|
-
}
|
228
|
-
|
229
|
-
/**
|
230
|
-
* Remove the border on images inside links in IE 10-.
|
231
|
-
*/
|
232
|
-
|
233
|
-
img {
|
234
|
-
border-style: none;
|
235
|
-
}
|
236
|
-
|
237
|
-
/**
|
238
|
-
* Hide the overflow in IE.
|
239
|
-
*/
|
240
|
-
|
241
|
-
svg:not(:root) {
|
242
|
-
overflow: hidden;
|
243
|
-
}
|
244
|
-
|
245
|
-
/* Forms
|
246
|
-
========================================================================== */
|
247
|
-
|
248
|
-
/**
|
249
|
-
* 1. Change the font styles in all browsers (opinionated).
|
250
|
-
* 2. Remove the margin in Firefox and Safari.
|
251
|
-
*/
|
252
|
-
|
253
|
-
button,
|
254
|
-
input,
|
255
|
-
optgroup,
|
256
|
-
select,
|
257
|
-
textarea {
|
258
|
-
font-family: sans-serif; /* 1 */
|
259
|
-
font-size: 100%; /* 1 */
|
260
|
-
line-height: 1.15; /* 1 */
|
261
|
-
margin: 0; /* 2 */
|
262
|
-
}
|
263
|
-
|
264
|
-
/**
|
265
|
-
* Show the overflow in IE.
|
266
|
-
* 1. Show the overflow in Edge.
|
267
|
-
*/
|
268
|
-
|
269
|
-
button,
|
270
|
-
input { /* 1 */
|
271
|
-
overflow: visible;
|
272
|
-
}
|
273
|
-
|
274
|
-
/**
|
275
|
-
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
276
|
-
* 1. Remove the inheritance of text transform in Firefox.
|
277
|
-
*/
|
278
|
-
|
279
|
-
button,
|
280
|
-
select { /* 1 */
|
281
|
-
text-transform: none;
|
282
|
-
}
|
283
|
-
|
284
|
-
/**
|
285
|
-
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
286
|
-
* controls in Android 4.
|
287
|
-
* 2. Correct the inability to style clickable types in iOS and Safari.
|
288
|
-
*/
|
289
|
-
|
290
|
-
button,
|
291
|
-
html [type="button"], /* 1 */
|
292
|
-
[type="reset"],
|
293
|
-
[type="submit"] {
|
294
|
-
-webkit-appearance: button; /* 2 */
|
295
|
-
}
|
296
|
-
|
297
|
-
/**
|
298
|
-
* Remove the inner border and padding in Firefox.
|
299
|
-
*/
|
300
|
-
|
301
|
-
button::-moz-focus-inner,
|
302
|
-
[type="button"]::-moz-focus-inner,
|
303
|
-
[type="reset"]::-moz-focus-inner,
|
304
|
-
[type="submit"]::-moz-focus-inner {
|
305
|
-
border-style: none;
|
306
|
-
padding: 0;
|
307
|
-
}
|
308
|
-
|
309
|
-
/**
|
310
|
-
* Restore the focus styles unset by the previous rule.
|
311
|
-
*/
|
312
|
-
|
313
|
-
button:-moz-focusring,
|
314
|
-
[type="button"]:-moz-focusring,
|
315
|
-
[type="reset"]:-moz-focusring,
|
316
|
-
[type="submit"]:-moz-focusring {
|
317
|
-
outline: 1px dotted ButtonText;
|
318
|
-
}
|
319
|
-
|
320
|
-
/**
|
321
|
-
* Change the border, margin, and padding in all browsers (opinionated).
|
322
|
-
*/
|
323
|
-
|
324
|
-
fieldset {
|
325
|
-
border: 1px solid #c0c0c0;
|
326
|
-
margin: 0 2px;
|
327
|
-
padding: 0.35em 0.625em 0.75em;
|
328
|
-
}
|
329
|
-
|
330
|
-
/**
|
331
|
-
* 1. Correct the text wrapping in Edge and IE.
|
332
|
-
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
333
|
-
* 3. Remove the padding so developers are not caught out when they zero out
|
334
|
-
* `fieldset` elements in all browsers.
|
335
|
-
*/
|
336
|
-
|
337
|
-
legend {
|
338
|
-
box-sizing: border-box; /* 1 */
|
339
|
-
color: inherit; /* 2 */
|
340
|
-
display: table; /* 1 */
|
341
|
-
max-width: 100%; /* 1 */
|
342
|
-
padding: 0; /* 3 */
|
343
|
-
white-space: normal; /* 1 */
|
344
|
-
}
|
345
|
-
|
346
|
-
/**
|
347
|
-
* 1. Add the correct display in IE 9-.
|
348
|
-
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
349
|
-
*/
|
350
|
-
|
351
|
-
progress {
|
352
|
-
display: inline-block; /* 1 */
|
353
|
-
vertical-align: baseline; /* 2 */
|
354
|
-
}
|
355
|
-
|
356
|
-
/**
|
357
|
-
* Remove the default vertical scrollbar in IE.
|
358
|
-
*/
|
359
|
-
|
360
|
-
textarea {
|
361
|
-
overflow: auto;
|
362
|
-
}
|
363
|
-
|
364
|
-
/**
|
365
|
-
* 1. Add the correct box sizing in IE 10-.
|
366
|
-
* 2. Remove the padding in IE 10-.
|
367
|
-
*/
|
368
|
-
|
369
|
-
[type="checkbox"],
|
370
|
-
[type="radio"] {
|
371
|
-
box-sizing: border-box; /* 1 */
|
372
|
-
padding: 0; /* 2 */
|
373
|
-
}
|
374
|
-
|
375
|
-
/**
|
376
|
-
* Correct the cursor style of increment and decrement buttons in Chrome.
|
377
|
-
*/
|
378
|
-
|
379
|
-
[type="number"]::-webkit-inner-spin-button,
|
380
|
-
[type="number"]::-webkit-outer-spin-button {
|
381
|
-
height: auto;
|
382
|
-
}
|
383
|
-
|
384
|
-
/**
|
385
|
-
* 1. Correct the odd appearance in Chrome and Safari.
|
386
|
-
* 2. Correct the outline style in Safari.
|
387
|
-
*/
|
388
|
-
|
389
|
-
[type="search"] {
|
390
|
-
-webkit-appearance: textfield; /* 1 */
|
391
|
-
outline-offset: -2px; /* 2 */
|
392
|
-
}
|
393
|
-
|
394
|
-
/**
|
395
|
-
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
396
|
-
*/
|
397
|
-
|
398
|
-
[type="search"]::-webkit-search-cancel-button,
|
399
|
-
[type="search"]::-webkit-search-decoration {
|
400
|
-
-webkit-appearance: none;
|
401
|
-
}
|
402
|
-
|
403
|
-
/**
|
404
|
-
* 1. Correct the inability to style clickable types in iOS and Safari.
|
405
|
-
* 2. Change font properties to `inherit` in Safari.
|
406
|
-
*/
|
407
|
-
|
408
|
-
::-webkit-file-upload-button {
|
409
|
-
-webkit-appearance: button; /* 1 */
|
410
|
-
font: inherit; /* 2 */
|
411
|
-
}
|
412
|
-
|
413
|
-
/* Interactive
|
414
|
-
========================================================================== */
|
415
|
-
|
416
|
-
/*
|
417
|
-
* Add the correct display in IE 9-.
|
418
|
-
* 1. Add the correct display in Edge, IE, and Firefox.
|
419
|
-
*/
|
420
|
-
|
421
|
-
details, /* 1 */
|
422
|
-
menu {
|
423
|
-
display: block;
|
424
|
-
}
|
425
|
-
|
426
|
-
/*
|
427
|
-
* Add the correct display in all browsers.
|
428
|
-
*/
|
429
|
-
|
430
|
-
summary {
|
431
|
-
display: list-item;
|
432
|
-
}
|
433
|
-
|
434
|
-
/* Scripting
|
435
|
-
========================================================================== */
|
436
|
-
|
437
|
-
/**
|
438
|
-
* Add the correct display in IE 9-.
|
439
|
-
*/
|
440
|
-
|
441
|
-
canvas {
|
442
|
-
display: inline-block;
|
443
|
-
}
|
444
|
-
|
445
|
-
/**
|
446
|
-
* Add the correct display in IE.
|
447
|
-
*/
|
448
|
-
|
449
|
-
template {
|
450
|
-
display: none;
|
451
|
-
}
|
452
|
-
|
453
|
-
/* Hidden
|
454
|
-
========================================================================== */
|
455
|
-
|
456
|
-
/**
|
457
|
-
* Add the correct display in IE 10-.
|
458
|
-
*/
|
459
|
-
|
460
|
-
[hidden] {
|
461
|
-
display: none;
|
462
|
-
}
|
463
|
-
@keyframes spin {
|
464
|
-
from {
|
465
|
-
transform: rotate(0deg); }
|
466
|
-
to {
|
467
|
-
transform: rotate(360deg); } }
|
468
|
-
.icon {
|
469
|
-
display: inline-block;
|
470
|
-
width: 24px;
|
471
|
-
height: 24px;
|
472
|
-
vertical-align: middle;
|
473
|
-
fill: #9b9b9b; }
|
474
|
-
.icon.spin {
|
475
|
-
animation: spin 1s infinite linear; }
|