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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 051b8e47b2a6d8e73a0b18f697efb6380d7eee58
4
- data.tar.gz: 4c8c50d20b2d0ddecd0f5f7ba16e4d65338d53cb
3
+ metadata.gz: 87ccbc828ca9f72b23f95eeaa6d672f84334ff44
4
+ data.tar.gz: 31c9ab7bbaf3b128c791e2f1fd1400c1d4d1c3cb
5
5
  SHA512:
6
- metadata.gz: 1a99afa561cadaaf1a5d4cbf8f42866b8a75be7f0f39c1ae51ee1c0aae2dc8a4eb60d3ad84956f809af79a39459dadb39b552da1e96ff32b2fc15e4249f270ca
7
- data.tar.gz: bfb27c22775f50c07653575551d657e6a193b6f5680fc14ca0f5240bf44f7f7ca8600bc0ea2cc1623ac24fc707d14abcdfb8922ffe2764a8d580114b83f44076
6
+ metadata.gz: 73bae0d9d8b0c0859e0cb56a12858cf1a6df874411bc6dd190b7e777d66c4d635f15a19aba38777e2ba04e8d0c61657547553a5d2f6d71ffdbf9692bb8b26e2d
7
+ data.tar.gz: 757c6172fa335bcb4cbe67732197be60ea7977edd147942728a9537fd154135cefd8fc40e84c56da5d632bd112f2a772869fea618dcf3b38e0e4f25a5a3e6e30
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
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
- #{get(tooltips, content)} {
25
- @extend #{'%tooltip' + if($y, '-#{$y}', '') + if($x, '-#{$x}', '')};
26
- @content;
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
- display: block;
40
- z-index: 900;
57
+ @include output-map(get(tooltips, show));
41
58
  }
42
59
  }
43
60
 
44
61
  #{get(tooltips, content)} {
45
- display: none;
62
+ @include output-map(get(tooltips, hide));
46
63
  position: absolute;
47
64
  white-space: nowrap;
48
65
  pointer-events: none;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accoutrement
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric M. Suzanne