accoutrement 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/stylesheets/accoutrement/_tooltips.scss +24 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87ccbc828ca9f72b23f95eeaa6d672f84334ff44
|
4
|
+
data.tar.gz: 31c9ab7bbaf3b128c791e2f1fd1400c1d4d1c3cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73bae0d9d8b0c0859e0cb56a12858cf1a6df874411bc6dd190b7e777d66c4d635f15a19aba38777e2ba04e8d0c61657547553a5d2f6d71ffdbf9692bb8b26e2d
|
7
|
+
data.tar.gz: 757c6172fa335bcb4cbe67732197be60ea7977edd147942728a9537fd154135cefd8fc40e84c56da5d632bd112f2a772869fea618dcf3b38e0e4f25a5a3e6e30
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
@@ -5,6 +5,13 @@
|
|
5
5
|
position: top right,
|
6
6
|
container: '.tooltip',
|
7
7
|
content: '.tooltip-text',
|
8
|
+
hide: (
|
9
|
+
display: none,
|
10
|
+
),
|
11
|
+
show: (
|
12
|
+
display: block,
|
13
|
+
z-index: 900,
|
14
|
+
),
|
8
15
|
));
|
9
16
|
|
10
17
|
|
@@ -12,6 +19,18 @@
|
|
12
19
|
// -------
|
13
20
|
@mixin tooltip(
|
14
21
|
$pos: get(tooltips, position)
|
22
|
+
) {
|
23
|
+
$extends: _tooltip($pos);
|
24
|
+
|
25
|
+
#{get(tooltips, content)} {
|
26
|
+
@extend #{$extends};
|
27
|
+
@content;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
@function _tooltip(
|
33
|
+
$pos: get(tooltips, position)
|
15
34
|
) {
|
16
35
|
$x: null;
|
17
36
|
$y: null;
|
@@ -21,10 +40,9 @@
|
|
21
40
|
$y: if($side == top or $side == bottom, $side, $y);
|
22
41
|
}
|
23
42
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
}
|
43
|
+
$extends: '%tooltip' + if($y, '-#{$y}', '') + if($x, '-#{$x}', '');
|
44
|
+
|
45
|
+
@return $extends;
|
28
46
|
}
|
29
47
|
|
30
48
|
|
@@ -36,13 +54,12 @@
|
|
36
54
|
position: relative;
|
37
55
|
text-decoration: none;
|
38
56
|
&:hover #{get(tooltips, content)} {
|
39
|
-
|
40
|
-
z-index: 900;
|
57
|
+
@include output-map(get(tooltips, show));
|
41
58
|
}
|
42
59
|
}
|
43
60
|
|
44
61
|
#{get(tooltips, content)} {
|
45
|
-
|
62
|
+
@include output-map(get(tooltips, hide));
|
46
63
|
position: absolute;
|
47
64
|
white-space: nowrap;
|
48
65
|
pointer-events: none;
|