bourbon 4.0.0.rc1 → 4.0.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/app/assets/stylesheets/_bourbon.scss +2 -1
- data/app/assets/stylesheets/addons/_directional-values.scss +5 -8
- data/app/assets/stylesheets/addons/_triangle.scss +2 -4
- data/app/assets/stylesheets/addons/_word-wrap.scss +8 -0
- data/app/assets/stylesheets/functions/_color-lightness.scss +5 -5
- data/app/assets/stylesheets/functions/_px-to-rem.scss +15 -0
- data/app/assets/stylesheets/helpers/_is-num.scss +2 -2
- data/bourbon.gemspec +1 -1
- data/bower.json +1 -1
- data/dist/_bourbon.scss +2 -1
- data/dist/addons/_directional-values.scss +5 -8
- data/dist/addons/_triangle.scss +2 -4
- data/dist/addons/_word-wrap.scss +8 -0
- data/dist/functions/_color-lightness.scss +5 -5
- data/dist/functions/_px-to-rem.scss +15 -0
- data/dist/helpers/_is-num.scss +2 -2
- data/lib/bourbon/version.rb +1 -1
- data/package.json +1 -1
- data/readme.md +9 -5
- metadata +20 -17
- data/app/assets/stylesheets/addons/_rem.scss +0 -33
- data/dist/addons/_rem.scss +0 -33
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4ec8cb193e50318af09c3c18d7a6e471193e13b
|
|
4
|
+
data.tar.gz: 756e61479b6214e058570b4f5e3302c697bb3c80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe4c02c6daac6fc418444a2363cbe6b0ce0d206da99dcfa3ec83117bd78d5ddd052a430c51941e5c4e0c8259694780a22598bf9cd65b886846300bc58fc46d0b
|
|
7
|
+
data.tar.gz: d2c636905c0dd1cece58aca3988c0d3123906644fa557ff37a0ac38600e4408614dfab0b6b7e0a74e1218809b83f69adf4db305f4bb8148d40d30487c6b22eb0
|
data/Gemfile.lock
CHANGED
|
@@ -2,7 +2,7 @@ PATH
|
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
4
|
bourbon (4.0.0.rc1)
|
|
5
|
-
sass (
|
|
5
|
+
sass (~> 3.3)
|
|
6
6
|
thor
|
|
7
7
|
|
|
8
8
|
GEM
|
|
@@ -36,7 +36,7 @@ GEM
|
|
|
36
36
|
rspec-expectations (2.8.0)
|
|
37
37
|
diff-lcs (~> 1.1.2)
|
|
38
38
|
rspec-mocks (2.8.0)
|
|
39
|
-
sass (3.3.
|
|
39
|
+
sass (3.3.4)
|
|
40
40
|
term-ansicolor (1.0.7)
|
|
41
41
|
thor (0.18.1)
|
|
42
42
|
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
@import "functions/grid-width";
|
|
26
26
|
@import "functions/modular-scale";
|
|
27
27
|
@import "functions/px-to-em";
|
|
28
|
+
@import "functions/px-to-rem";
|
|
28
29
|
@import "functions/strip-units";
|
|
29
30
|
@import "functions/tint-shade";
|
|
30
31
|
@import "functions/transition-property-name";
|
|
@@ -66,11 +67,11 @@
|
|
|
66
67
|
@import "addons/html5-input-types";
|
|
67
68
|
@import "addons/position";
|
|
68
69
|
@import "addons/prefixer";
|
|
69
|
-
@import "addons/rem";
|
|
70
70
|
@import "addons/retina-image";
|
|
71
71
|
@import "addons/size";
|
|
72
72
|
@import "addons/timing-functions";
|
|
73
73
|
@import "addons/triangle";
|
|
74
|
+
@import "addons/word-wrap";
|
|
74
75
|
|
|
75
76
|
// Soon to be deprecated Mixins
|
|
76
77
|
@import "bourbon-deprecated-upcoming";
|
|
@@ -57,9 +57,6 @@
|
|
|
57
57
|
$right: $pre + "-right" + if($suf, "-#{$suf}", "");
|
|
58
58
|
$all: $pre + if($suf, "-#{$suf}", "");
|
|
59
59
|
|
|
60
|
-
// Get list inside $vals (is there a better way?)
|
|
61
|
-
@each $val in $vals { $vals: $val; }
|
|
62
|
-
|
|
63
60
|
$vals: collapse-directionals($vals);
|
|
64
61
|
|
|
65
62
|
@if contains-falsy($vals) {
|
|
@@ -94,21 +91,21 @@
|
|
|
94
91
|
}
|
|
95
92
|
|
|
96
93
|
@mixin margin($vals...) {
|
|
97
|
-
@include directional-property(margin, false, $vals);
|
|
94
|
+
@include directional-property(margin, false, $vals...);
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
@mixin padding($vals...) {
|
|
101
|
-
@include directional-property(padding, false, $vals);
|
|
98
|
+
@include directional-property(padding, false, $vals...);
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
@mixin border-style($vals...) {
|
|
105
|
-
@include directional-property(border, style, $vals);
|
|
102
|
+
@include directional-property(border, style, $vals...);
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
@mixin border-color($vals...) {
|
|
109
|
-
@include directional-property(border, color, $vals);
|
|
106
|
+
@include directional-property(border, color, $vals...);
|
|
110
107
|
}
|
|
111
108
|
|
|
112
109
|
@mixin border-width($vals...) {
|
|
113
|
-
@include directional-property(border, width, $vals);
|
|
110
|
+
@include directional-property(border, width, $vals...);
|
|
114
111
|
}
|
|
@@ -6,14 +6,12 @@
|
|
|
6
6
|
$height: nth($size, length($size));
|
|
7
7
|
|
|
8
8
|
$foreground-color: nth($color, 1);
|
|
9
|
-
$background-color: transparent
|
|
10
|
-
@if (length($color) == 2) {
|
|
11
|
-
$background-color: nth($color, 2);
|
|
12
|
-
}
|
|
9
|
+
$background-color: if(length($color) == 2, nth($color, 2), transparent);
|
|
13
10
|
|
|
14
11
|
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
|
|
15
12
|
|
|
16
13
|
$width: $width / 2;
|
|
14
|
+
$height: if(length($size) > 1, $height, $height/2);
|
|
17
15
|
|
|
18
16
|
@if $direction == up {
|
|
19
17
|
border-left: $width solid $background-color;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
// More details here http://robots.thoughtbot.com/closer-look-color-lightness
|
|
4
4
|
|
|
5
5
|
@function is-light($hex-color) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
$-local-red: red(rgba($hex-color, 1.0));
|
|
7
|
+
$-local-green: green(rgba($hex-color, 1.0));
|
|
8
|
+
$-local-blue: blue(rgba($hex-color, 1.0));
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
$-local-lightness: ($-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722) / 255;
|
|
11
11
|
|
|
12
|
-
@return
|
|
12
|
+
@return $-local-lightness > .6;
|
|
13
13
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Convert pixels to rems
|
|
2
|
+
// eg. for a relational value of 12px write rem(12)
|
|
3
|
+
// Assumes $em-base is the font-size of <html>
|
|
4
|
+
|
|
5
|
+
@function rem($pxval) {
|
|
6
|
+
@if not unitless($pxval) {
|
|
7
|
+
$pxval: strip-units($pxval);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
$base: $em-base;
|
|
11
|
+
@if not unitless($base) {
|
|
12
|
+
$base: strip-units($base);
|
|
13
|
+
}
|
|
14
|
+
@return ($pxval / $base) * 1rem;
|
|
15
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Helper for linear-gradient-parser
|
|
3
3
|
//************************************************************************//
|
|
4
4
|
@function _is-num($char) {
|
|
5
|
-
$
|
|
6
|
-
$index:
|
|
5
|
+
$values: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' 0 1 2 3 4 5 6 7 8 9;
|
|
6
|
+
$index: index($values, $char);
|
|
7
7
|
@return if($index, true, false);
|
|
8
8
|
}
|
data/bourbon.gemspec
CHANGED
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
|
6
6
|
s.name = "bourbon"
|
|
7
7
|
s.version = Bourbon::VERSION
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
|
9
|
-
s.authors = ["Phil LaPier", "Chad Mazzola", "Matt Jankowski", "Nick Quaranto", "Jeremy Raines", "Mike Burns", "Andres Mejia", "Travis Haynes", "Chris Lloyd", "Gabe Berke-Williams", "J. Edward Dewyea", "Reda Lemeden"]
|
|
9
|
+
s.authors = ["Phil LaPier", "Chad Mazzola", "Matt Jankowski", "Nick Quaranto", "Jeremy Raines", "Mike Burns", "Andres Mejia", "Travis Haynes", "Chris Lloyd", "Gabe Berke-Williams", "J. Edward Dewyea", "Reda Lemeden", "Kyle Fiedler"]
|
|
10
10
|
s.email = ["support@thoughtbot.com"]
|
|
11
11
|
s.license = 'MIT'
|
|
12
12
|
s.homepage = "https://github.com/thoughtbot/bourbon"
|
data/bower.json
CHANGED
data/dist/_bourbon.scss
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
@import "functions/grid-width";
|
|
26
26
|
@import "functions/modular-scale";
|
|
27
27
|
@import "functions/px-to-em";
|
|
28
|
+
@import "functions/px-to-rem";
|
|
28
29
|
@import "functions/strip-units";
|
|
29
30
|
@import "functions/tint-shade";
|
|
30
31
|
@import "functions/transition-property-name";
|
|
@@ -66,11 +67,11 @@
|
|
|
66
67
|
@import "addons/html5-input-types";
|
|
67
68
|
@import "addons/position";
|
|
68
69
|
@import "addons/prefixer";
|
|
69
|
-
@import "addons/rem";
|
|
70
70
|
@import "addons/retina-image";
|
|
71
71
|
@import "addons/size";
|
|
72
72
|
@import "addons/timing-functions";
|
|
73
73
|
@import "addons/triangle";
|
|
74
|
+
@import "addons/word-wrap";
|
|
74
75
|
|
|
75
76
|
// Soon to be deprecated Mixins
|
|
76
77
|
@import "bourbon-deprecated-upcoming";
|
|
@@ -57,9 +57,6 @@
|
|
|
57
57
|
$right: $pre + "-right" + if($suf, "-#{$suf}", "");
|
|
58
58
|
$all: $pre + if($suf, "-#{$suf}", "");
|
|
59
59
|
|
|
60
|
-
// Get list inside $vals (is there a better way?)
|
|
61
|
-
@each $val in $vals { $vals: $val; }
|
|
62
|
-
|
|
63
60
|
$vals: collapse-directionals($vals);
|
|
64
61
|
|
|
65
62
|
@if contains-falsy($vals) {
|
|
@@ -94,21 +91,21 @@
|
|
|
94
91
|
}
|
|
95
92
|
|
|
96
93
|
@mixin margin($vals...) {
|
|
97
|
-
@include directional-property(margin, false, $vals);
|
|
94
|
+
@include directional-property(margin, false, $vals...);
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
@mixin padding($vals...) {
|
|
101
|
-
@include directional-property(padding, false, $vals);
|
|
98
|
+
@include directional-property(padding, false, $vals...);
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
@mixin border-style($vals...) {
|
|
105
|
-
@include directional-property(border, style, $vals);
|
|
102
|
+
@include directional-property(border, style, $vals...);
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
@mixin border-color($vals...) {
|
|
109
|
-
@include directional-property(border, color, $vals);
|
|
106
|
+
@include directional-property(border, color, $vals...);
|
|
110
107
|
}
|
|
111
108
|
|
|
112
109
|
@mixin border-width($vals...) {
|
|
113
|
-
@include directional-property(border, width, $vals);
|
|
110
|
+
@include directional-property(border, width, $vals...);
|
|
114
111
|
}
|
data/dist/addons/_triangle.scss
CHANGED
|
@@ -6,14 +6,12 @@
|
|
|
6
6
|
$height: nth($size, length($size));
|
|
7
7
|
|
|
8
8
|
$foreground-color: nth($color, 1);
|
|
9
|
-
$background-color: transparent
|
|
10
|
-
@if (length($color) == 2) {
|
|
11
|
-
$background-color: nth($color, 2);
|
|
12
|
-
}
|
|
9
|
+
$background-color: if(length($color) == 2, nth($color, 2), transparent);
|
|
13
10
|
|
|
14
11
|
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
|
|
15
12
|
|
|
16
13
|
$width: $width / 2;
|
|
14
|
+
$height: if(length($size) > 1, $height, $height/2);
|
|
17
15
|
|
|
18
16
|
@if $direction == up {
|
|
19
17
|
border-left: $width solid $background-color;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
// More details here http://robots.thoughtbot.com/closer-look-color-lightness
|
|
4
4
|
|
|
5
5
|
@function is-light($hex-color) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
$-local-red: red(rgba($hex-color, 1.0));
|
|
7
|
+
$-local-green: green(rgba($hex-color, 1.0));
|
|
8
|
+
$-local-blue: blue(rgba($hex-color, 1.0));
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
$-local-lightness: ($-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722) / 255;
|
|
11
11
|
|
|
12
|
-
@return
|
|
12
|
+
@return $-local-lightness > .6;
|
|
13
13
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Convert pixels to rems
|
|
2
|
+
// eg. for a relational value of 12px write rem(12)
|
|
3
|
+
// Assumes $em-base is the font-size of <html>
|
|
4
|
+
|
|
5
|
+
@function rem($pxval) {
|
|
6
|
+
@if not unitless($pxval) {
|
|
7
|
+
$pxval: strip-units($pxval);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
$base: $em-base;
|
|
11
|
+
@if not unitless($base) {
|
|
12
|
+
$base: strip-units($base);
|
|
13
|
+
}
|
|
14
|
+
@return ($pxval / $base) * 1rem;
|
|
15
|
+
}
|
data/dist/helpers/_is-num.scss
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Helper for linear-gradient-parser
|
|
3
3
|
//************************************************************************//
|
|
4
4
|
@function _is-num($char) {
|
|
5
|
-
$
|
|
6
|
-
$index:
|
|
5
|
+
$values: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' 0 1 2 3 4 5 6 7 8 9;
|
|
6
|
+
$index: index($values, $char);
|
|
7
7
|
@return if($index, true, false);
|
|
8
8
|
}
|
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED
data/readme.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
[](https://codeclimate.com/github/thoughtbot/bourbon)
|
|
2
|
-
|
|
3
1
|
[](http://bourbon.io)
|
|
2
|
+
<br>
|
|
3
|
+
<br>
|
|
4
|
+
[](http://badge.fury.io/rb/bourbon) [](https://codeclimate.com/github/thoughtbot/bourbon) [](https://gitter.im/thoughtbot/bourbon)
|
|
5
|
+
|
|
6
|
+
## A lightweight mixin library for Sass
|
|
7
|
+
Bourbon is a library of pure sass mixins that are designed to be simple
|
|
8
|
+
and easy to use. No configuration required.
|
|
4
9
|
|
|
5
|
-
# A simple and lightweight mixin library for Sass
|
|
6
|
-
Bourbon is a comprehensive library of sass mixins that are designed to be simple
|
|
7
|
-
and easy to use. No configuration required.
|
|
8
10
|
The mixins aim to be as vanilla as possible, meaning they should be as close to the original CSS syntax as possible.
|
|
9
11
|
|
|
10
12
|
The mixins contain vendor specific prefixes for all CSS3 properties for support
|
|
@@ -82,6 +84,8 @@ Visit the [Command line tools wiki](https://github.com/thoughtbot/bourbon/wiki/C
|
|
|
82
84
|
- [Changelog](https://github.com/thoughtbot/bourbon/wiki)
|
|
83
85
|
- [Browser support](https://github.com/thoughtbot/bourbon/wiki/Browser-Support)
|
|
84
86
|
|
|
87
|
+
### Chat with us
|
|
88
|
+
[](https://gitter.im/thoughtbot/bourbon)
|
|
85
89
|
|
|
86
90
|
### Credits
|
|
87
91
|

|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bourbon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.0.
|
|
4
|
+
version: 4.0.0.rc2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phil LaPier
|
|
@@ -16,65 +16,66 @@ authors:
|
|
|
16
16
|
- Gabe Berke-Williams
|
|
17
17
|
- J. Edward Dewyea
|
|
18
18
|
- Reda Lemeden
|
|
19
|
+
- Kyle Fiedler
|
|
19
20
|
autorequire:
|
|
20
21
|
bindir: bin
|
|
21
22
|
cert_chain: []
|
|
22
|
-
date: 2014-
|
|
23
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
|
23
24
|
dependencies:
|
|
24
25
|
- !ruby/object:Gem::Dependency
|
|
25
26
|
name: sass
|
|
26
27
|
requirement: !ruby/object:Gem::Requirement
|
|
27
28
|
requirements:
|
|
28
|
-
- - ~>
|
|
29
|
+
- - "~>"
|
|
29
30
|
- !ruby/object:Gem::Version
|
|
30
31
|
version: '3.3'
|
|
31
32
|
type: :runtime
|
|
32
33
|
prerelease: false
|
|
33
34
|
version_requirements: !ruby/object:Gem::Requirement
|
|
34
35
|
requirements:
|
|
35
|
-
- - ~>
|
|
36
|
+
- - "~>"
|
|
36
37
|
- !ruby/object:Gem::Version
|
|
37
38
|
version: '3.3'
|
|
38
39
|
- !ruby/object:Gem::Dependency
|
|
39
40
|
name: thor
|
|
40
41
|
requirement: !ruby/object:Gem::Requirement
|
|
41
42
|
requirements:
|
|
42
|
-
- -
|
|
43
|
+
- - ">="
|
|
43
44
|
- !ruby/object:Gem::Version
|
|
44
45
|
version: '0'
|
|
45
46
|
type: :runtime
|
|
46
47
|
prerelease: false
|
|
47
48
|
version_requirements: !ruby/object:Gem::Requirement
|
|
48
49
|
requirements:
|
|
49
|
-
- -
|
|
50
|
+
- - ">="
|
|
50
51
|
- !ruby/object:Gem::Version
|
|
51
52
|
version: '0'
|
|
52
53
|
- !ruby/object:Gem::Dependency
|
|
53
54
|
name: aruba
|
|
54
55
|
requirement: !ruby/object:Gem::Requirement
|
|
55
56
|
requirements:
|
|
56
|
-
- - ~>
|
|
57
|
+
- - "~>"
|
|
57
58
|
- !ruby/object:Gem::Version
|
|
58
59
|
version: '0.4'
|
|
59
60
|
type: :development
|
|
60
61
|
prerelease: false
|
|
61
62
|
version_requirements: !ruby/object:Gem::Requirement
|
|
62
63
|
requirements:
|
|
63
|
-
- - ~>
|
|
64
|
+
- - "~>"
|
|
64
65
|
- !ruby/object:Gem::Version
|
|
65
66
|
version: '0.4'
|
|
66
67
|
- !ruby/object:Gem::Dependency
|
|
67
68
|
name: rake
|
|
68
69
|
requirement: !ruby/object:Gem::Requirement
|
|
69
70
|
requirements:
|
|
70
|
-
- -
|
|
71
|
+
- - ">="
|
|
71
72
|
- !ruby/object:Gem::Version
|
|
72
73
|
version: '0'
|
|
73
74
|
type: :development
|
|
74
75
|
prerelease: false
|
|
75
76
|
version_requirements: !ruby/object:Gem::Requirement
|
|
76
77
|
requirements:
|
|
77
|
-
- -
|
|
78
|
+
- - ">="
|
|
78
79
|
- !ruby/object:Gem::Version
|
|
79
80
|
version: '0'
|
|
80
81
|
description: |
|
|
@@ -91,8 +92,8 @@ executables:
|
|
|
91
92
|
extensions: []
|
|
92
93
|
extra_rdoc_files: []
|
|
93
94
|
files:
|
|
94
|
-
- .gitignore
|
|
95
|
-
- .npmignore
|
|
95
|
+
- ".gitignore"
|
|
96
|
+
- ".npmignore"
|
|
96
97
|
- Gemfile
|
|
97
98
|
- Gemfile.lock
|
|
98
99
|
- LICENSE
|
|
@@ -108,11 +109,11 @@ files:
|
|
|
108
109
|
- app/assets/stylesheets/addons/_html5-input-types.scss
|
|
109
110
|
- app/assets/stylesheets/addons/_position.scss
|
|
110
111
|
- app/assets/stylesheets/addons/_prefixer.scss
|
|
111
|
-
- app/assets/stylesheets/addons/_rem.scss
|
|
112
112
|
- app/assets/stylesheets/addons/_retina-image.scss
|
|
113
113
|
- app/assets/stylesheets/addons/_size.scss
|
|
114
114
|
- app/assets/stylesheets/addons/_timing-functions.scss
|
|
115
115
|
- app/assets/stylesheets/addons/_triangle.scss
|
|
116
|
+
- app/assets/stylesheets/addons/_word-wrap.scss
|
|
116
117
|
- app/assets/stylesheets/css3/_animation.scss
|
|
117
118
|
- app/assets/stylesheets/css3/_appearance.scss
|
|
118
119
|
- app/assets/stylesheets/css3/_backface-visibility.scss
|
|
@@ -145,6 +146,7 @@ files:
|
|
|
145
146
|
- app/assets/stylesheets/functions/_grid-width.scss
|
|
146
147
|
- app/assets/stylesheets/functions/_modular-scale.scss
|
|
147
148
|
- app/assets/stylesheets/functions/_px-to-em.scss
|
|
149
|
+
- app/assets/stylesheets/functions/_px-to-rem.scss
|
|
148
150
|
- app/assets/stylesheets/functions/_strip-units.scss
|
|
149
151
|
- app/assets/stylesheets/functions/_tint-shade.scss
|
|
150
152
|
- app/assets/stylesheets/functions/_transition-property-name.scss
|
|
@@ -178,11 +180,11 @@ files:
|
|
|
178
180
|
- dist/addons/_html5-input-types.scss
|
|
179
181
|
- dist/addons/_position.scss
|
|
180
182
|
- dist/addons/_prefixer.scss
|
|
181
|
-
- dist/addons/_rem.scss
|
|
182
183
|
- dist/addons/_retina-image.scss
|
|
183
184
|
- dist/addons/_size.scss
|
|
184
185
|
- dist/addons/_timing-functions.scss
|
|
185
186
|
- dist/addons/_triangle.scss
|
|
187
|
+
- dist/addons/_word-wrap.scss
|
|
186
188
|
- dist/css3/_animation.scss
|
|
187
189
|
- dist/css3/_appearance.scss
|
|
188
190
|
- dist/css3/_backface-visibility.scss
|
|
@@ -215,6 +217,7 @@ files:
|
|
|
215
217
|
- dist/functions/_grid-width.scss
|
|
216
218
|
- dist/functions/_modular-scale.scss
|
|
217
219
|
- dist/functions/_px-to-em.scss
|
|
220
|
+
- dist/functions/_px-to-rem.scss
|
|
218
221
|
- dist/functions/_strip-units.scss
|
|
219
222
|
- dist/functions/_tint-shade.scss
|
|
220
223
|
- dist/functions/_transition-property-name.scss
|
|
@@ -257,17 +260,17 @@ require_paths:
|
|
|
257
260
|
- lib
|
|
258
261
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
259
262
|
requirements:
|
|
260
|
-
- -
|
|
263
|
+
- - ">="
|
|
261
264
|
- !ruby/object:Gem::Version
|
|
262
265
|
version: '0'
|
|
263
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
267
|
requirements:
|
|
265
|
-
- -
|
|
268
|
+
- - ">"
|
|
266
269
|
- !ruby/object:Gem::Version
|
|
267
270
|
version: 1.3.1
|
|
268
271
|
requirements: []
|
|
269
272
|
rubyforge_project: bourbon
|
|
270
|
-
rubygems_version: 2.2.
|
|
273
|
+
rubygems_version: 2.2.2
|
|
271
274
|
signing_key:
|
|
272
275
|
specification_version: 4
|
|
273
276
|
summary: Bourbon Sass Mixins using SCSS syntax.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
@mixin rem($property, $size, $base: $em-base) {
|
|
2
|
-
@if not unitless($base) {
|
|
3
|
-
$base: strip-units($base);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
$unitless_values: ();
|
|
7
|
-
@each $num in $size {
|
|
8
|
-
@if not unitless($num) {
|
|
9
|
-
@if unit($num) == "em" {
|
|
10
|
-
$num: $num * $base;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
$num: strip-units($num);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
$unitless_values: append($unitless_values, $num);
|
|
17
|
-
}
|
|
18
|
-
$size: $unitless_values;
|
|
19
|
-
|
|
20
|
-
$pixel_values: ();
|
|
21
|
-
$rem_values: ();
|
|
22
|
-
@each $value in $size {
|
|
23
|
-
$pixel_value: $value * 1px;
|
|
24
|
-
$pixel_values: append($pixel_values, $pixel_value);
|
|
25
|
-
|
|
26
|
-
$rem_value: ($value / $base) * 1rem;
|
|
27
|
-
$rem_values: append($rem_values, $rem_value);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
#{$property}: $pixel_values;
|
|
31
|
-
#{$property}: $rem_values;
|
|
32
|
-
}
|
|
33
|
-
|
data/dist/addons/_rem.scss
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
@mixin rem($property, $size, $base: $em-base) {
|
|
2
|
-
@if not unitless($base) {
|
|
3
|
-
$base: strip-units($base);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
$unitless_values: ();
|
|
7
|
-
@each $num in $size {
|
|
8
|
-
@if not unitless($num) {
|
|
9
|
-
@if unit($num) == "em" {
|
|
10
|
-
$num: $num * $base;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
$num: strip-units($num);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
$unitless_values: append($unitless_values, $num);
|
|
17
|
-
}
|
|
18
|
-
$size: $unitless_values;
|
|
19
|
-
|
|
20
|
-
$pixel_values: ();
|
|
21
|
-
$rem_values: ();
|
|
22
|
-
@each $value in $size {
|
|
23
|
-
$pixel_value: $value * 1px;
|
|
24
|
-
$pixel_values: append($pixel_values, $pixel_value);
|
|
25
|
-
|
|
26
|
-
$rem_value: ($value / $base) * 1rem;
|
|
27
|
-
$rem_values: append($rem_values, $rem_value);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
#{$property}: $pixel_values;
|
|
31
|
-
#{$property}: $rem_values;
|
|
32
|
-
}
|
|
33
|
-
|