toolkit 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toolkit.rb +2 -2
- data/stylesheets/_toolkit.scss +2 -1
- data/stylesheets/toolkit/_settings.scss +6 -0
- data/stylesheets/toolkit/_underline.scss +41 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2105cf9a9157bc7e12b8b14f7cb8b51786db4936
|
4
|
+
data.tar.gz: d3c63281b975cf30c6bd18722a4b9215413cadd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06947add1c45698d85bf8c8f04c5a38b7ed7d49cfa5e94531f0bf6647781dd7a6538aababead203f438e9ce1f52c3e9860d70332eb5ecc088467d15c5fb64fae
|
7
|
+
data.tar.gz: 334e9c65c4d6b8214e9765c6109477882af44490f1871313affe0e4b435c14488b20e1045b25ee956219fd12c1711f49430291d6d067fefae6b05318618c0e19
|
data/lib/toolkit.rb
CHANGED
data/stylesheets/_toolkit.scss
CHANGED
@@ -43,6 +43,12 @@ $Toolkit-Settings: (
|
|
43
43
|
'absolute center fixed horizontal midpoint': 50%,
|
44
44
|
'absolute center fixed': false,
|
45
45
|
'absolute center extend': false,
|
46
|
+
'underline background': #fff,
|
47
|
+
'underline color': #00e,
|
48
|
+
'underline clear descenders': true,
|
49
|
+
'underline distance': 1,
|
50
|
+
'underline width': 2,
|
51
|
+
'underline extend': false
|
46
52
|
);
|
47
53
|
|
48
54
|
//////////////////////////////
|
@@ -0,0 +1,41 @@
|
|
1
|
+
@mixin underline($background: null, $color: null, $clear-descenders: null, $distance: null, $width: null, $extend: null) {
|
2
|
+
$background: if($background != null, $background, toolkit-get('underline background'));
|
3
|
+
$color: if($color != null, $color, toolkit-get('underline color'));
|
4
|
+
$clear-descenders: if($clear-descenders != null, $clear-descenders, toolkit-get('underline clear descenders'));
|
5
|
+
$distance: if($distance != null, $distance, toolkit-get('underline distance'));
|
6
|
+
$width: if($width != null, $width, toolkit-get('underline width'));
|
7
|
+
$extend: if($extend != null, $extend, toolkit-get('underline extend'));
|
8
|
+
|
9
|
+
$PX: .0625em;
|
10
|
+
|
11
|
+
@include underline-core($extend);
|
12
|
+
|
13
|
+
@if mixin-exists(background-image) and function-exists(linear-gradient) {
|
14
|
+
@include background-image(
|
15
|
+
linear-gradient(bottom, $background 75%, $color 75%)
|
16
|
+
);
|
17
|
+
}
|
18
|
+
@else {
|
19
|
+
background-image: linear-gradient(to top, $background 75%, $color 75%);
|
20
|
+
}
|
21
|
+
background-size: (2 * $PX) ((1 + $width) * $PX);
|
22
|
+
background-position: 0 (($width) * $PX) + $distance;
|
23
|
+
|
24
|
+
@if $clear-descenders {
|
25
|
+
text-shadow: (1 * $PX) (1 * $PX) 0 $background, (-1 * $PX) 0 0 $background;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@mixin underline-core($extend: null) {
|
30
|
+
$extend: if($extend != null, $extend, toolkit-get('underline extend'));
|
31
|
+
|
32
|
+
@if $extend {
|
33
|
+
@include dynamic-extend('underline') {
|
34
|
+
@include underline-core(false);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
@else {
|
38
|
+
text-decoration: none;
|
39
|
+
background-repeat: repeat-x;
|
40
|
+
}
|
41
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Richard
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-03-
|
13
|
+
date: 2014-03-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sass
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- stylesheets/toolkit/_rtl.scss
|
51
51
|
- stylesheets/toolkit/_settings.scss
|
52
52
|
- stylesheets/toolkit/_triangle.scss
|
53
|
+
- stylesheets/toolkit/_underline.scss
|
53
54
|
- stylesheets/toolkit/_vertical-center.scss
|
54
55
|
- stylesheets/toolkit/_viewport.scss
|
55
56
|
homepage: https://github.com/Snugug/toolkit
|