english_tea 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +12 -4
  4. data/app/assets/stylesheets/english_tea/setup/_config.scss +10 -1
  5. data/app/assets/stylesheets/english_tea.scss +20 -0
  6. data/english_tea.gemspec +0 -2
  7. data/lib/english_tea/version.rb +1 -1
  8. data/vendor/assets/stylesheets/bourbon/_bourbon-deprecate.scss +19 -0
  9. data/vendor/assets/stylesheets/bourbon/_bourbon-deprecated-upcoming.scss +425 -0
  10. data/vendor/assets/stylesheets/bourbon/addons/_border-color.scss +29 -0
  11. data/vendor/assets/stylesheets/bourbon/addons/_border-radius.scss +48 -0
  12. data/vendor/assets/stylesheets/bourbon/addons/_border-style.scss +28 -0
  13. data/vendor/assets/stylesheets/bourbon/addons/_border-width.scss +28 -0
  14. data/vendor/assets/stylesheets/bourbon/addons/_buttons.scss +69 -0
  15. data/vendor/assets/stylesheets/bourbon/addons/_clearfix.scss +25 -0
  16. data/vendor/assets/stylesheets/bourbon/addons/_ellipsis.scss +30 -0
  17. data/vendor/assets/stylesheets/bourbon/addons/_font-stacks.scss +31 -0
  18. data/vendor/assets/stylesheets/bourbon/addons/_hide-text.scss +27 -0
  19. data/vendor/assets/stylesheets/bourbon/addons/_margin.scss +29 -0
  20. data/vendor/assets/stylesheets/bourbon/addons/_padding.scss +29 -0
  21. data/vendor/assets/stylesheets/bourbon/addons/_position.scss +51 -0
  22. data/vendor/assets/stylesheets/bourbon/addons/_prefixer.scss +66 -0
  23. data/vendor/assets/stylesheets/bourbon/addons/_retina-image.scss +27 -0
  24. data/vendor/assets/stylesheets/bourbon/addons/_size.scss +56 -0
  25. data/vendor/assets/stylesheets/bourbon/addons/_text-inputs.scss +118 -0
  26. data/vendor/assets/stylesheets/bourbon/addons/_timing-functions.scss +34 -0
  27. data/vendor/assets/stylesheets/bourbon/addons/_triangle.scss +63 -0
  28. data/vendor/assets/stylesheets/bourbon/addons/_word-wrap.scss +29 -0
  29. data/vendor/assets/stylesheets/bourbon/css3/_animation.scss +61 -0
  30. data/vendor/assets/stylesheets/bourbon/css3/_appearance.scss +5 -0
  31. data/vendor/assets/stylesheets/bourbon/css3/_backface-visibility.scss +5 -0
  32. data/vendor/assets/stylesheets/bourbon/css3/_background-image.scss +44 -0
  33. data/vendor/assets/stylesheets/bourbon/css3/_background.scss +57 -0
  34. data/vendor/assets/stylesheets/bourbon/css3/_border-image.scss +61 -0
  35. data/vendor/assets/stylesheets/bourbon/css3/_calc.scss +6 -0
  36. data/vendor/assets/stylesheets/bourbon/css3/_columns.scss +67 -0
  37. data/vendor/assets/stylesheets/bourbon/css3/_filter.scss +6 -0
  38. data/vendor/assets/stylesheets/bourbon/css3/_flex-box.scss +327 -0
  39. data/vendor/assets/stylesheets/bourbon/css3/_font-face.scss +29 -0
  40. data/vendor/assets/stylesheets/bourbon/css3/_font-feature-settings.scss +6 -0
  41. data/vendor/assets/stylesheets/bourbon/css3/_hidpi-media-query.scss +12 -0
  42. data/vendor/assets/stylesheets/bourbon/css3/_hyphens.scss +6 -0
  43. data/vendor/assets/stylesheets/bourbon/css3/_image-rendering.scss +15 -0
  44. data/vendor/assets/stylesheets/bourbon/css3/_keyframes.scss +38 -0
  45. data/vendor/assets/stylesheets/bourbon/css3/_linear-gradient.scss +40 -0
  46. data/vendor/assets/stylesheets/bourbon/css3/_perspective.scss +12 -0
  47. data/vendor/assets/stylesheets/bourbon/css3/_placeholder.scss +10 -0
  48. data/vendor/assets/stylesheets/bourbon/css3/_radial-gradient.scss +40 -0
  49. data/vendor/assets/stylesheets/bourbon/css3/_selection.scss +44 -0
  50. data/vendor/assets/stylesheets/bourbon/css3/_text-decoration.scss +27 -0
  51. data/vendor/assets/stylesheets/bourbon/css3/_transform.scss +21 -0
  52. data/vendor/assets/stylesheets/bourbon/css3/_transition.scss +81 -0
  53. data/vendor/assets/stylesheets/bourbon/css3/_user-select.scss +5 -0
  54. data/vendor/assets/stylesheets/bourbon/functions/_assign-inputs.scss +16 -0
  55. data/vendor/assets/stylesheets/bourbon/functions/_contains-falsy.scss +25 -0
  56. data/vendor/assets/stylesheets/bourbon/functions/_contains.scss +31 -0
  57. data/vendor/assets/stylesheets/bourbon/functions/_is-length.scss +16 -0
  58. data/vendor/assets/stylesheets/bourbon/functions/_is-light.scss +26 -0
  59. data/vendor/assets/stylesheets/bourbon/functions/_is-number.scss +16 -0
  60. data/vendor/assets/stylesheets/bourbon/functions/_is-size.scss +23 -0
  61. data/vendor/assets/stylesheets/bourbon/functions/_modular-scale.scss +74 -0
  62. data/vendor/assets/stylesheets/bourbon/functions/_px-to-em.scss +24 -0
  63. data/vendor/assets/stylesheets/bourbon/functions/_px-to-rem.scss +26 -0
  64. data/vendor/assets/stylesheets/bourbon/functions/_shade.scss +24 -0
  65. data/vendor/assets/stylesheets/bourbon/functions/_strip-units.scss +22 -0
  66. data/vendor/assets/stylesheets/bourbon/functions/_tint.scss +24 -0
  67. data/vendor/assets/stylesheets/bourbon/functions/_transition-property-name.scss +37 -0
  68. data/vendor/assets/stylesheets/bourbon/functions/_unpack.scss +32 -0
  69. data/vendor/assets/stylesheets/bourbon/helpers/_convert-units.scss +26 -0
  70. data/vendor/assets/stylesheets/bourbon/helpers/_directional-values.scss +108 -0
  71. data/vendor/assets/stylesheets/bourbon/helpers/_font-source-declaration.scss +53 -0
  72. data/vendor/assets/stylesheets/bourbon/helpers/_gradient-positions-parser.scss +24 -0
  73. data/vendor/assets/stylesheets/bourbon/helpers/_linear-angle-parser.scss +35 -0
  74. data/vendor/assets/stylesheets/bourbon/helpers/_linear-gradient-parser.scss +51 -0
  75. data/vendor/assets/stylesheets/bourbon/helpers/_linear-positions-parser.scss +77 -0
  76. data/vendor/assets/stylesheets/bourbon/helpers/_linear-side-corner-parser.scss +41 -0
  77. data/vendor/assets/stylesheets/bourbon/helpers/_radial-arg-parser.scss +74 -0
  78. data/vendor/assets/stylesheets/bourbon/helpers/_radial-gradient-parser.scss +55 -0
  79. data/vendor/assets/stylesheets/bourbon/helpers/_radial-positions-parser.scss +28 -0
  80. data/vendor/assets/stylesheets/bourbon/helpers/_render-gradients.scss +31 -0
  81. data/vendor/assets/stylesheets/bourbon/helpers/_shape-size-stripper.scss +15 -0
  82. data/vendor/assets/stylesheets/bourbon/helpers/_str-to-num.scss +55 -0
  83. data/vendor/assets/stylesheets/bourbon/settings/_asset-pipeline.scss +7 -0
  84. data/vendor/assets/stylesheets/bourbon/settings/_deprecation-warnings.scss +8 -0
  85. data/vendor/assets/stylesheets/bourbon/settings/_prefixer.scss +9 -0
  86. data/vendor/assets/stylesheets/bourbon/settings/_px-to-em.scss +1 -0
  87. data/vendor/assets/stylesheets/bourbon.scss +90 -0
  88. metadata +82 -17
  89. data/app/assets/stylesheets/english_tea/all.scss +0 -20
  90. data/english_tea-0.1.0.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62ce13fe8ebaa279988cc1a3f13601760f1931db
4
- data.tar.gz: c586c158916a676ef5815f44c1d7a77690d233ed
3
+ metadata.gz: 0e13a9d5b6205a0b9354cd5a6afc610f2247a9fe
4
+ data.tar.gz: bd732706fefb904c258a0b2f5a13a86cc2399592
5
5
  SHA512:
6
- metadata.gz: db056487465e6f323b338e4d2c3a9ac249e66e0a951fbef7ba101994d84fb9e55f8acbac58d3fc3902bf0ef3d0319c41441a45306353a28f14779a52e5b7d19f
7
- data.tar.gz: 242b9a1b28613e33b321cfc94b88f17f29901ba744d4a3243fce71d72b0b8f7806502690d71763728c4361a2310ea5dd231f72f6e62fb5e541a70e055df1e301
6
+ metadata.gz: 3becd1eb9f4d553298b50d2ca5494d0c17f23620f81e33ecd0ef2042c2d6384763334821bc86c1ea70d807cedd39a4fedcb310b4af0ef87734ce868a7cac22b7
7
+ data.tar.gz: 0c0c389e69b0e5f495c566c42fab8f3bd88d413770fc3306df823c811dc776f361f3dd08dc204722adca86de7c900f7477b23ca833c3bdbb5d1fc5ed503b1725
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -22,11 +22,19 @@ Include in your application.css file:
22
22
 
23
23
  *= require english_tea/all
24
24
 
25
- Alternatively you can include individual modules by directory/name:
25
+ Alternatively you can include individual modules by using the index to include an entire module:
26
26
 
27
- *= require_tree english_tea/setup
28
- *= require_tree english_tea/typography
29
- *= require english_tea/buttons/index
27
+ *= require english_tea/setup/index
28
+ *= require_tree english_tea/typography/index
29
+
30
+ @import 'english_tea/setup/index';
31
+ @import 'english_tea/typography/index';
32
+
33
+ Or just include the submodule you want directly:
34
+
35
+ *= require english_tea/typography/fonts
36
+
37
+ @import 'english_tea/typography/fonts';
30
38
 
31
39
  ## Documentation
32
40
 
@@ -286,7 +286,16 @@ $gutter-scale:
286
286
  13: $base-rhythm * 13,
287
287
  14: $base-rhythm * 14,
288
288
  15: $base-rhythm * 15,
289
- 16: $base-rhythm * 16
289
+ 16: $base-rhythm * 16,
290
+ 17: $base-rhythm * 17,
291
+ 18: $base-rhythm * 18,
292
+ 19: $base-rhythm * 19,
293
+ 20: $base-rhythm * 20,
294
+ 21: $base-rhythm * 21,
295
+ 22: $base-rhythm * 22,
296
+ 23: $base-rhythm * 23,
297
+ 24: $base-rhythm * 24,
298
+ 25: $base-rhythm * 25
290
299
  );
291
300
 
292
301
  // ---
@@ -0,0 +1,20 @@
1
+ // ==========================================================================
2
+ // WNW Styling
3
+ // @joelparr
4
+ // ==========================================================================
5
+
6
+ $output-bourbon-deprecation-warnings: false;
7
+ @import 'bourbon';
8
+ @import 'snapper';
9
+
10
+ @import 'english_tea/setup/index';
11
+ @import 'english_tea/media/index';
12
+ @import 'english_tea/buttons/index';
13
+ @import 'english_tea/forms/index';
14
+ @import 'english_tea/modules/index';
15
+ @import 'english_tea/typography/index';
16
+ @import 'english_tea/layout/index';
17
+ @import 'english_tea/dimension/index';
18
+ @import 'english_tea/border/index';
19
+ @import 'english_tea/color/index';
20
+ @import 'english_tea/transition/index';
data/english_tea.gemspec CHANGED
@@ -23,6 +23,4 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.15"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "minitest", "~> 5.0"
26
-
27
- spec.add_dependency "bourbon", "~> 4.0"
28
26
  end
@@ -1,3 +1,3 @@
1
1
  module EnglishTea
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -0,0 +1,19 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Throws Sass warnings to announce library deprecations. You can disable them
4
+ /// by setting the `$output-bourbon-deprecation-warnings` variable to `false`.
5
+ ///
6
+ /// @access private
7
+
8
+ @mixin _bourbon-deprecate($feature, $message: null) {
9
+ @if $output-bourbon-deprecation-warnings == true {
10
+ @warn "[Bourbon] [Deprecation] `#{$feature}` is deprecated and will be " +
11
+ "removed in 5.0.0. #{$message}";
12
+ @content;
13
+ }
14
+ }
15
+
16
+ @mixin _bourbon-deprecate-for-prefixing($feature) {
17
+ @include _bourbon-deprecate($feature, "We suggest using an automated " +
18
+ "prefixing tool, like Autoprefixer.");
19
+ }
@@ -0,0 +1,425 @@
1
+ // The following features have been deprecated and will be removed in the next MAJOR version release
2
+
3
+ @mixin inline-block {
4
+ @include _bourbon-deprecate("inline-block");
5
+
6
+ display: inline-block;
7
+ }
8
+
9
+ @mixin button ($style: simple, $base-color: #4294f0, $text-size: inherit, $padding: 7px 18px) {
10
+ @include _bourbon-deprecate("button");
11
+
12
+ @if type-of($style) == string and type-of($base-color) == color {
13
+ @include buttonstyle($style, $base-color, $text-size, $padding);
14
+ }
15
+
16
+ @if type-of($style) == string and type-of($base-color) == number {
17
+ $padding: $text-size;
18
+ $text-size: $base-color;
19
+ $base-color: #4294f0;
20
+
21
+ @if $padding == inherit {
22
+ $padding: 7px 18px;
23
+ }
24
+
25
+ @include buttonstyle($style, $base-color, $text-size, $padding);
26
+ }
27
+
28
+ @if type-of($style) == color and type-of($base-color) == color {
29
+ $base-color: $style;
30
+ $style: simple;
31
+ @include buttonstyle($style, $base-color, $text-size, $padding);
32
+ }
33
+
34
+ @if type-of($style) == color and type-of($base-color) == number {
35
+ $padding: $text-size;
36
+ $text-size: $base-color;
37
+ $base-color: $style;
38
+ $style: simple;
39
+
40
+ @if $padding == inherit {
41
+ $padding: 7px 18px;
42
+ }
43
+
44
+ @include buttonstyle($style, $base-color, $text-size, $padding);
45
+ }
46
+
47
+ @if type-of($style) == number {
48
+ $padding: $base-color;
49
+ $text-size: $style;
50
+ $base-color: #4294f0;
51
+ $style: simple;
52
+
53
+ @if $padding == #4294f0 {
54
+ $padding: 7px 18px;
55
+ }
56
+
57
+ @include buttonstyle($style, $base-color, $text-size, $padding);
58
+ }
59
+
60
+ &:disabled {
61
+ cursor: not-allowed;
62
+ opacity: 0.5;
63
+ }
64
+ }
65
+
66
+ // Selector Style Button
67
+ @mixin buttonstyle($type, $b-color, $t-size, $pad) {
68
+ // Grayscale button
69
+ @if $type == simple and $b-color == grayscale($b-color) {
70
+ @include simple($b-color, true, $t-size, $pad);
71
+ }
72
+
73
+ @if $type == shiny and $b-color == grayscale($b-color) {
74
+ @include shiny($b-color, true, $t-size, $pad);
75
+ }
76
+
77
+ @if $type == pill and $b-color == grayscale($b-color) {
78
+ @include pill($b-color, true, $t-size, $pad);
79
+ }
80
+
81
+ @if $type == flat and $b-color == grayscale($b-color) {
82
+ @include flat($b-color, true, $t-size, $pad);
83
+ }
84
+
85
+ // Colored button
86
+ @if $type == simple {
87
+ @include simple($b-color, false, $t-size, $pad);
88
+ }
89
+
90
+ @else if $type == shiny {
91
+ @include shiny($b-color, false, $t-size, $pad);
92
+ }
93
+
94
+ @else if $type == pill {
95
+ @include pill($b-color, false, $t-size, $pad);
96
+ }
97
+
98
+ @else if $type == flat {
99
+ @include flat($b-color, false, $t-size, $pad);
100
+ }
101
+ }
102
+
103
+ // Simple Button
104
+ @mixin simple($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
105
+ $color: hsl(0, 0, 100%);
106
+ $border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
107
+ $inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
108
+ $stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
109
+ $text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
110
+
111
+ @if is-light($base-color) {
112
+ $color: hsl(0, 0, 20%);
113
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
114
+ }
115
+
116
+ @if $grayscale == true {
117
+ $border: grayscale($border);
118
+ $inset-shadow: grayscale($inset-shadow);
119
+ $stop-gradient: grayscale($stop-gradient);
120
+ $text-shadow: grayscale($text-shadow);
121
+ }
122
+
123
+ border: 1px solid $border;
124
+ border-radius: 3px;
125
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
126
+ color: $color;
127
+ display: inline-block;
128
+ font-size: $textsize;
129
+ font-weight: bold;
130
+ @include linear-gradient ($base-color, $stop-gradient);
131
+ padding: $padding;
132
+ text-decoration: none;
133
+ text-shadow: 0 1px 0 $text-shadow;
134
+ background-clip: padding-box;
135
+
136
+ &:hover:not(:disabled) {
137
+ $base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
138
+ $inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
139
+ $stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
140
+
141
+ @if $grayscale == true {
142
+ $base-color-hover: grayscale($base-color-hover);
143
+ $inset-shadow-hover: grayscale($inset-shadow-hover);
144
+ $stop-gradient-hover: grayscale($stop-gradient-hover);
145
+ }
146
+
147
+ @include linear-gradient ($base-color-hover, $stop-gradient-hover);
148
+
149
+ box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
150
+ cursor: pointer;
151
+ }
152
+
153
+ &:active:not(:disabled),
154
+ &:focus:not(:disabled) {
155
+ $border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
156
+ $inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
157
+
158
+ @if $grayscale == true {
159
+ $border-active: grayscale($border-active);
160
+ $inset-shadow-active: grayscale($inset-shadow-active);
161
+ }
162
+
163
+ border: 1px solid $border-active;
164
+ box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active;
165
+ }
166
+ }
167
+
168
+ // Shiny Button
169
+ @mixin shiny($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
170
+ $color: hsl(0, 0, 100%);
171
+ $border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
172
+ $border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
173
+ $fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46);
174
+ $inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12);
175
+ $second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33);
176
+ $text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
177
+ $third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
178
+
179
+ @if is-light($base-color) {
180
+ $color: hsl(0, 0, 20%);
181
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
182
+ }
183
+
184
+ @if $grayscale == true {
185
+ $border: grayscale($border);
186
+ $border-bottom: grayscale($border-bottom);
187
+ $fourth-stop: grayscale($fourth-stop);
188
+ $inset-shadow: grayscale($inset-shadow);
189
+ $second-stop: grayscale($second-stop);
190
+ $text-shadow: grayscale($text-shadow);
191
+ $third-stop: grayscale($third-stop);
192
+ }
193
+
194
+ @include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
195
+
196
+ border: 1px solid $border;
197
+ border-bottom: 1px solid $border-bottom;
198
+ border-radius: 5px;
199
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
200
+ color: $color;
201
+ display: inline-block;
202
+ font-size: $textsize;
203
+ font-weight: bold;
204
+ padding: $padding;
205
+ text-align: center;
206
+ text-decoration: none;
207
+ text-shadow: 0 -1px 1px $text-shadow;
208
+
209
+ &:hover:not(:disabled) {
210
+ $first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
211
+ $second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
212
+ $third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
213
+ $fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63);
214
+
215
+ @if $grayscale == true {
216
+ $first-stop-hover: grayscale($first-stop-hover);
217
+ $second-stop-hover: grayscale($second-stop-hover);
218
+ $third-stop-hover: grayscale($third-stop-hover);
219
+ $fourth-stop-hover: grayscale($fourth-stop-hover);
220
+ }
221
+
222
+ @include linear-gradient(top, $first-stop-hover 0%,
223
+ $second-stop-hover 50%,
224
+ $third-stop-hover 50%,
225
+ $fourth-stop-hover 100%);
226
+ cursor: pointer;
227
+ }
228
+
229
+ &:active:not(:disabled),
230
+ &:focus:not(:disabled) {
231
+ $inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
232
+
233
+ @if $grayscale == true {
234
+ $inset-shadow-active: grayscale($inset-shadow-active);
235
+ }
236
+
237
+ box-shadow: inset 0 0 20px 0 $inset-shadow-active;
238
+ }
239
+ }
240
+
241
+ // Pill Button
242
+ @mixin pill($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
243
+ $color: hsl(0, 0, 100%);
244
+ $border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
245
+ $border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
246
+ $border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%);
247
+ $inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%);
248
+ $stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
249
+ $text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
250
+
251
+ @if is-light($base-color) {
252
+ $color: hsl(0, 0, 20%);
253
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
254
+ }
255
+
256
+ @if $grayscale == true {
257
+ $border-bottom: grayscale($border-bottom);
258
+ $border-sides: grayscale($border-sides);
259
+ $border-top: grayscale($border-top);
260
+ $inset-shadow: grayscale($inset-shadow);
261
+ $stop-gradient: grayscale($stop-gradient);
262
+ $text-shadow: grayscale($text-shadow);
263
+ }
264
+
265
+ border: 1px solid $border-top;
266
+ border-color: $border-top $border-sides $border-bottom;
267
+ border-radius: 16px;
268
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
269
+ color: $color;
270
+ display: inline-block;
271
+ font-size: $textsize;
272
+ font-weight: normal;
273
+ line-height: 1;
274
+ @include linear-gradient ($base-color, $stop-gradient);
275
+ padding: $padding;
276
+ text-align: center;
277
+ text-decoration: none;
278
+ text-shadow: 0 -1px 1px $text-shadow;
279
+ background-clip: padding-box;
280
+
281
+ &:hover:not(:disabled) {
282
+ $base-color-hover: adjust-color($base-color, $lightness: -4.5%);
283
+ $border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
284
+ $border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
285
+ $border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%);
286
+ $inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%);
287
+ $stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%);
288
+ $text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%);
289
+
290
+ @if $grayscale == true {
291
+ $base-color-hover: grayscale($base-color-hover);
292
+ $border-bottom: grayscale($border-bottom);
293
+ $border-sides: grayscale($border-sides);
294
+ $border-top: grayscale($border-top);
295
+ $inset-shadow-hover: grayscale($inset-shadow-hover);
296
+ $stop-gradient-hover: grayscale($stop-gradient-hover);
297
+ $text-shadow-hover: grayscale($text-shadow-hover);
298
+ }
299
+
300
+ @include linear-gradient ($base-color-hover, $stop-gradient-hover);
301
+
302
+ background-clip: padding-box;
303
+ border: 1px solid $border-top;
304
+ border-color: $border-top $border-sides $border-bottom;
305
+ box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
306
+ cursor: pointer;
307
+ text-shadow: 0 -1px 1px $text-shadow-hover;
308
+ }
309
+
310
+ &:active:not(:disabled),
311
+ &:focus:not(:disabled) {
312
+ $active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
313
+ $border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
314
+ $border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
315
+ $inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%);
316
+ $text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%);
317
+
318
+ @if $grayscale == true {
319
+ $active-color: grayscale($active-color);
320
+ $border-active: grayscale($border-active);
321
+ $border-bottom-active: grayscale($border-bottom-active);
322
+ $inset-shadow-active: grayscale($inset-shadow-active);
323
+ $text-shadow-active: grayscale($text-shadow-active);
324
+ }
325
+
326
+ background: $active-color;
327
+ border: 1px solid $border-active;
328
+ border-bottom: 1px solid $border-bottom-active;
329
+ box-shadow: inset 0 0 6px 3px $inset-shadow-active;
330
+ text-shadow: 0 -1px 1px $text-shadow-active;
331
+ }
332
+ }
333
+
334
+ // Flat Button
335
+ @mixin flat($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
336
+ $color: hsl(0, 0, 100%);
337
+
338
+ @if is-light($base-color) {
339
+ $color: hsl(0, 0, 20%);
340
+ }
341
+
342
+ background-color: $base-color;
343
+ border-radius: 3px;
344
+ border: 0;
345
+ color: $color;
346
+ display: inline-block;
347
+ font-size: $textsize;
348
+ font-weight: bold;
349
+ padding: $padding;
350
+ text-decoration: none;
351
+ background-clip: padding-box;
352
+
353
+ &:hover:not(:disabled){
354
+ $base-color-hover: adjust-color($base-color, $saturation: 4%, $lightness: 5%);
355
+
356
+ @if $grayscale == true {
357
+ $base-color-hover: grayscale($base-color-hover);
358
+ }
359
+
360
+ background-color: $base-color-hover;
361
+ cursor: pointer;
362
+ }
363
+
364
+ &:active:not(:disabled),
365
+ &:focus:not(:disabled) {
366
+ $base-color-active: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
367
+
368
+ @if $grayscale == true {
369
+ $base-color-active: grayscale($base-color-active);
370
+ }
371
+
372
+ background-color: $base-color-active;
373
+ cursor: pointer;
374
+ }
375
+ }
376
+
377
+ // Flexible grid
378
+ @function flex-grid($columns, $container-columns: $fg-max-columns) {
379
+ @if $output-bourbon-deprecation-warnings == true {
380
+ @warn "[Bourbon] [Deprecation] `flex-grid` is deprecated and will be " +
381
+ "removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
382
+ "Neat.";
383
+ }
384
+
385
+ $width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
386
+ $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
387
+ @return percentage($width / $container-width);
388
+ }
389
+
390
+ // Flexible gutter
391
+ @function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
392
+ @if $output-bourbon-deprecation-warnings == true {
393
+ @warn "[Bourbon] [Deprecation] `flex-gutter` is deprecated and will be " +
394
+ "removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
395
+ "Neat.";
396
+ }
397
+
398
+ $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
399
+ @return percentage($gutter / $container-width);
400
+ }
401
+
402
+ @function grid-width($n) {
403
+ @if $output-bourbon-deprecation-warnings == true {
404
+ @warn "[Bourbon] [Deprecation] `grid-width` is deprecated and will be " +
405
+ "removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
406
+ "Neat.";
407
+ }
408
+
409
+ @return $n * $gw-column + ($n - 1) * $gw-gutter;
410
+ }
411
+
412
+ @function golden-ratio($value, $increment) {
413
+ @if $output-bourbon-deprecation-warnings == true {
414
+ @warn "[Bourbon] [Deprecation] `golden-ratio` is deprecated and will be " +
415
+ "removed in 5.0.0. You can use the `modular-scale` function instead.";
416
+ }
417
+
418
+ @return modular-scale($increment, $value, $ratio: $golden);
419
+ }
420
+
421
+ @mixin box-sizing($box) {
422
+ @include _bourbon-deprecate-for-prefixing("box-sizing");
423
+
424
+ @include prefixer(box-sizing, $box, webkit moz spec);
425
+ }
@@ -0,0 +1,29 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Provides a quick method for targeting `border-color` on specific sides of a box. Use a `null` value to “skip” a side.
4
+ ///
5
+ /// @param {Arglist} $vals
6
+ /// List of arguments
7
+ ///
8
+ /// @example scss - Usage
9
+ /// .element {
10
+ /// @include border-color(#a60b55 #76cd9c null #e8ae1a);
11
+ /// }
12
+ ///
13
+ /// @example css - CSS Output
14
+ /// .element {
15
+ /// border-left-color: #e8ae1a;
16
+ /// border-right-color: #76cd9c;
17
+ /// border-top-color: #a60b55;
18
+ /// }
19
+ ///
20
+ /// @require {mixin} directional-property
21
+ ///
22
+ /// @output `border-color`
23
+
24
+ @mixin border-color($vals...) {
25
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
26
+ $output-bourbon-deprecation-warnings: false !global;
27
+ @include directional-property(border, color, $vals...);
28
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
29
+ }
@@ -0,0 +1,48 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Provides a quick method for targeting `border-radius` on both corners on the side of a box.
4
+ ///
5
+ /// @param {Number} $radii
6
+ /// List of arguments
7
+ ///
8
+ /// @example scss - Usage
9
+ /// .element-one {
10
+ /// @include border-top-radius(5px);
11
+ /// }
12
+ ///
13
+ /// .element-two {
14
+ /// @include border-left-radius(3px);
15
+ /// }
16
+ ///
17
+ /// @example css - CSS Output
18
+ /// .element-one {
19
+ /// border-top-left-radius: 5px;
20
+ /// border-top-right-radius: 5px;
21
+ /// }
22
+ ///
23
+ /// .element-two {
24
+ /// border-bottom-left-radius: 3px;
25
+ /// border-top-left-radius: 3px;
26
+ /// }
27
+ ///
28
+ /// @output `border-radius`
29
+
30
+ @mixin border-top-radius($radii) {
31
+ border-top-left-radius: $radii;
32
+ border-top-right-radius: $radii;
33
+ }
34
+
35
+ @mixin border-right-radius($radii) {
36
+ border-bottom-right-radius: $radii;
37
+ border-top-right-radius: $radii;
38
+ }
39
+
40
+ @mixin border-bottom-radius($radii) {
41
+ border-bottom-left-radius: $radii;
42
+ border-bottom-right-radius: $radii;
43
+ }
44
+
45
+ @mixin border-left-radius($radii) {
46
+ border-bottom-left-radius: $radii;
47
+ border-top-left-radius: $radii;
48
+ }
@@ -0,0 +1,28 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Provides a quick method for targeting `border-style` on specific sides of a box. Use a `null` value to “skip” a side.
4
+ ///
5
+ /// @param {Arglist} $vals
6
+ /// List of arguments
7
+ ///
8
+ /// @example scss - Usage
9
+ /// .element {
10
+ /// @include border-style(dashed null solid);
11
+ /// }
12
+ ///
13
+ /// @example css - CSS Output
14
+ /// .element {
15
+ /// border-bottom-style: solid;
16
+ /// border-top-style: dashed;
17
+ /// }
18
+ ///
19
+ /// @require {mixin} directional-property
20
+ ///
21
+ /// @output `border-style`
22
+
23
+ @mixin border-style($vals...) {
24
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
25
+ $output-bourbon-deprecation-warnings: false !global;
26
+ @include directional-property(border, style, $vals...);
27
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
28
+ }
@@ -0,0 +1,28 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Provides a quick method for targeting `border-width` on specific sides of a box. Use a `null` value to “skip” a side.
4
+ ///
5
+ /// @param {Arglist} $vals
6
+ /// List of arguments
7
+ ///
8
+ /// @example scss - Usage
9
+ /// .element {
10
+ /// @include border-width(1em null 20px);
11
+ /// }
12
+ ///
13
+ /// @example css - CSS Output
14
+ /// .element {
15
+ /// border-bottom-width: 20px;
16
+ /// border-top-width: 1em;
17
+ /// }
18
+ ///
19
+ /// @require {mixin} directional-property
20
+ ///
21
+ /// @output `border-width`
22
+
23
+ @mixin border-width($vals...) {
24
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
25
+ $output-bourbon-deprecation-warnings: false !global;
26
+ @include directional-property(border, width, $vals...);
27
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
28
+ }