locomotivecms_wagon 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/generators/foundation5/public/stylesheets/foundation/_functions.scss +3 -2
  3. data/generators/foundation5/public/stylesheets/foundation/_settings.scss +419 -274
  4. data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +110 -6
  5. data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +4 -2
  6. data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +2 -2
  7. data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +8 -3
  8. data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +98 -9
  9. data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +66 -29
  10. data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +5 -5
  11. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +11 -10
  12. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +49 -35
  13. data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +125 -38
  14. data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +64 -38
  15. data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +19 -4
  16. data/generators/foundation5/public/stylesheets/foundation/components/_icon-bar.scss +293 -0
  17. data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +11 -9
  18. data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +4 -4
  19. data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +5 -3
  20. data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +1 -1
  21. data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +190 -33
  22. data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +92 -147
  23. data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +22 -10
  24. data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +12 -7
  25. data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +11 -11
  26. data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +2 -2
  27. data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +29 -9
  28. data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +62 -56
  29. data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +3 -2
  30. data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +2 -2
  31. data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +4 -6
  32. data/generators/foundation5/public/stylesheets/foundation/components/_switches.scss +230 -0
  33. data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +13 -7
  34. data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +22 -8
  35. data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +2 -4
  36. data/generators/foundation5/public/stylesheets/foundation/components/_toolbar.scss +70 -0
  37. data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +9 -7
  38. data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +82 -56
  39. data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +23 -11
  40. data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +7 -7
  41. data/generators/foundation5/public/stylesheets/foundation.css +4327 -3587
  42. data/generators/foundation5/public/stylesheets/foundation.css.scss +38 -38
  43. data/generators/foundation5/public/stylesheets/normalize.css +71 -139
  44. data/generators/foundation5/public/stylesheets/normalize.css.scss +5 -3
  45. data/lib/locomotive/wagon/cli.rb +24 -1
  46. data/lib/locomotive/wagon/generators/content_type.rb +4 -1
  47. data/lib/locomotive/wagon/generators/page.rb +10 -5
  48. data/lib/locomotive/wagon/generators/relationship.rb +100 -0
  49. data/lib/locomotive/wagon/generators/site/foundation5.rb +2 -2
  50. data/lib/locomotive/wagon/generators/snippet.rb +3 -3
  51. data/lib/locomotive/wagon/liquid/tags/locale_switcher.rb +2 -2
  52. data/lib/locomotive/wagon/version.rb +1 -1
  53. data/lib/locomotive/wagon.rb +1 -0
  54. data/locomotivecms_wagon.gemspec +1 -1
  55. data/spec/fixtures/blog/app/content_types/comments.yml +20 -0
  56. data/spec/fixtures/blog/app/content_types/posts.yml +19 -0
  57. data/spec/fixtures/blog/app/views/pages/404.liquid +11 -0
  58. data/spec/fixtures/blog/app/views/pages/about-us.liquid.haml +29 -0
  59. data/spec/fixtures/blog/app/views/pages/index.liquid +25 -0
  60. data/spec/fixtures/blog/app/views/pages/posts/content_type_template.fr.liquid +14 -0
  61. data/spec/fixtures/blog/app/views/pages/posts/content_type_template.liquid +15 -0
  62. data/spec/fixtures/blog/app/views/pages/posts.fr.liquid +13 -0
  63. data/spec/fixtures/blog/app/views/pages/posts.liquid +13 -0
  64. data/spec/fixtures/blog/config/deploy.yml +4 -0
  65. data/spec/fixtures/blog/config/site.yml +16 -0
  66. data/spec/fixtures/blog/data/comments.yml +16 -0
  67. data/spec/fixtures/blog/data/posts.yml +7 -0
  68. data/spec/integration/generators/page_spec.rb +87 -0
  69. data/spec/integration/generators/relationship_spec.rb +102 -0
  70. data/spec/support/helpers.rb +19 -1
  71. metadata +38 -6
  72. data/generators/foundation5/public/stylesheets/foundation/components/_reveal-new.scss +0 -0
  73. data/generators/foundation5/public/stylesheets/foundation/components/_switch.scss +0 -294
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_wagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-24 00:00:00.000000000 Z
12
+ date: 2015-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -227,14 +227,14 @@ dependencies:
227
227
  requirements:
228
228
  - - "~>"
229
229
  - !ruby/object:Gem::Version
230
- version: 1.5.0
230
+ version: 1.5.1
231
231
  type: :runtime
232
232
  prerelease: false
233
233
  version_requirements: !ruby/object:Gem::Requirement
234
234
  requirements:
235
235
  - - "~>"
236
236
  - !ruby/object:Gem::Version
237
- version: 1.5.0
237
+ version: 1.5.1
238
238
  - !ruby/object:Gem::Dependency
239
239
  name: faker
240
240
  requirement: !ruby/object:Gem::Requirement
@@ -532,6 +532,7 @@ files:
532
532
  - generators/foundation5/public/stylesheets/foundation/components/_forms.scss
533
533
  - generators/foundation5/public/stylesheets/foundation/components/_global.scss
534
534
  - generators/foundation5/public/stylesheets/foundation/components/_grid.scss
535
+ - generators/foundation5/public/stylesheets/foundation/components/_icon-bar.scss
535
536
  - generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss
536
537
  - generators/foundation5/public/stylesheets/foundation/components/_joyride.scss
537
538
  - generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss
@@ -544,15 +545,15 @@ files:
544
545
  - generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss
545
546
  - generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss
546
547
  - generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss
547
- - generators/foundation5/public/stylesheets/foundation/components/_reveal-new.scss
548
548
  - generators/foundation5/public/stylesheets/foundation/components/_reveal.scss
549
549
  - generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss
550
550
  - generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss
551
551
  - generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss
552
- - generators/foundation5/public/stylesheets/foundation/components/_switch.scss
552
+ - generators/foundation5/public/stylesheets/foundation/components/_switches.scss
553
553
  - generators/foundation5/public/stylesheets/foundation/components/_tables.scss
554
554
  - generators/foundation5/public/stylesheets/foundation/components/_tabs.scss
555
555
  - generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss
556
+ - generators/foundation5/public/stylesheets/foundation/components/_toolbar.scss
556
557
  - generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss
557
558
  - generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss
558
559
  - generators/foundation5/public/stylesheets/foundation/components/_type.scss
@@ -658,6 +659,7 @@ files:
658
659
  - lib/locomotive/wagon/exceptions.rb
659
660
  - lib/locomotive/wagon/generators/content_type.rb
660
661
  - lib/locomotive/wagon/generators/page.rb
662
+ - lib/locomotive/wagon/generators/relationship.rb
661
663
  - lib/locomotive/wagon/generators/site.rb
662
664
  - lib/locomotive/wagon/generators/site/base.rb
663
665
  - lib/locomotive/wagon/generators/site/blank.rb
@@ -753,6 +755,19 @@ files:
753
755
  - locales/pt-BR.yml
754
756
  - locales/ru.yml
755
757
  - locomotivecms_wagon.gemspec
758
+ - spec/fixtures/blog/app/content_types/comments.yml
759
+ - spec/fixtures/blog/app/content_types/posts.yml
760
+ - spec/fixtures/blog/app/views/pages/404.liquid
761
+ - spec/fixtures/blog/app/views/pages/about-us.liquid.haml
762
+ - spec/fixtures/blog/app/views/pages/index.liquid
763
+ - spec/fixtures/blog/app/views/pages/posts.fr.liquid
764
+ - spec/fixtures/blog/app/views/pages/posts.liquid
765
+ - spec/fixtures/blog/app/views/pages/posts/content_type_template.fr.liquid
766
+ - spec/fixtures/blog/app/views/pages/posts/content_type_template.liquid
767
+ - spec/fixtures/blog/config/deploy.yml
768
+ - spec/fixtures/blog/config/site.yml
769
+ - spec/fixtures/blog/data/comments.yml
770
+ - spec/fixtures/blog/data/posts.yml
756
771
  - spec/fixtures/default/README
757
772
  - spec/fixtures/default/app/content_types/bands.yml
758
773
  - spec/fixtures/default/app/content_types/events.yml
@@ -822,6 +837,8 @@ files:
822
837
  - spec/integration/cassettes/push.yml
823
838
  - spec/integration/cassettes/staging.yml
824
839
  - spec/integration/cli_spec.rb
840
+ - spec/integration/generators/page_spec.rb
841
+ - spec/integration/generators/relationship_spec.rb
825
842
  - spec/integration/integration_helper.rb
826
843
  - spec/integration/server/basic_spec.rb
827
844
  - spec/integration/server/contact_form_spec.rb
@@ -859,6 +876,19 @@ summary: The LocomotiveCMS wagon is a site generator for the LocomotiveCMS engin
859
876
  powered by all the efficient and modern HTML development tools (Haml, SASS, Compass,
860
877
  Less).
861
878
  test_files:
879
+ - spec/fixtures/blog/app/content_types/comments.yml
880
+ - spec/fixtures/blog/app/content_types/posts.yml
881
+ - spec/fixtures/blog/app/views/pages/404.liquid
882
+ - spec/fixtures/blog/app/views/pages/about-us.liquid.haml
883
+ - spec/fixtures/blog/app/views/pages/index.liquid
884
+ - spec/fixtures/blog/app/views/pages/posts.fr.liquid
885
+ - spec/fixtures/blog/app/views/pages/posts.liquid
886
+ - spec/fixtures/blog/app/views/pages/posts/content_type_template.fr.liquid
887
+ - spec/fixtures/blog/app/views/pages/posts/content_type_template.liquid
888
+ - spec/fixtures/blog/config/deploy.yml
889
+ - spec/fixtures/blog/config/site.yml
890
+ - spec/fixtures/blog/data/comments.yml
891
+ - spec/fixtures/blog/data/posts.yml
862
892
  - spec/fixtures/default/README
863
893
  - spec/fixtures/default/app/content_types/bands.yml
864
894
  - spec/fixtures/default/app/content_types/events.yml
@@ -928,6 +958,8 @@ test_files:
928
958
  - spec/integration/cassettes/push.yml
929
959
  - spec/integration/cassettes/staging.yml
930
960
  - spec/integration/cli_spec.rb
961
+ - spec/integration/generators/page_spec.rb
962
+ - spec/integration/generators/relationship_spec.rb
931
963
  - spec/integration/integration_helper.rb
932
964
  - spec/integration/server/basic_spec.rb
933
965
  - spec/integration/server/contact_form_spec.rb
@@ -1,294 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import "global";
6
-
7
- //
8
- // @name
9
- // @dependencies _global.scss
10
- //
11
-
12
- //
13
- // @variables
14
- //
15
-
16
- // NOTE: Switches have been deprecated in Foundation 5 and will be removed in the future.
17
-
18
- $include-html-form-classes: $include-html-classes !default;
19
-
20
- // Controlling border styles and background colors for the switch container
21
- $switch-border-color: scale-color(#fff, $lightness: -20%) !default;
22
- $switch-border-style: solid !default;
23
- $switch-border-width: 1px !default;
24
- $switch-bg: #fff !default;
25
-
26
- // We use these to control the switch heights for our default classes
27
- $switch-height-tny: 22px !default;
28
- $switch-height-sml: 28px !default;
29
- $switch-height-med: 36px !default;
30
- $switch-height-lrg: 44px !default;
31
- $switch-bottom-margin: rem-calc(20) !default;
32
-
33
- // We use these to control default font sizes for our classes.
34
- $switch-font-size-tny: 11px !default;
35
- $switch-font-size-sml: 12px !default;
36
- $switch-font-size-med: 14px !default;
37
- $switch-font-size-lrg: 17px !default;
38
- $switch-label-side-padding: 6px !default;
39
-
40
- // We use these to style the switch-paddle
41
- $switch-paddle-bg: #fff !default;
42
- $switch-paddle-fade-to-color: scale-color($switch-paddle-bg, $lightness: -10%) !default;
43
- $switch-paddle-border-color: scale-color($switch-paddle-bg, $lightness: -35%) !default;
44
- $switch-paddle-border-width: 1px !default;
45
- $switch-paddle-border-style: solid !default;
46
- $switch-paddle-transition-speed: .1s !default;
47
- $switch-paddle-transition-ease: ease-out !default;
48
- $switch-positive-color: scale-color($success-color, $lightness: 94%) !default;
49
- $switch-negative-color: #f5f5f5 !default;
50
-
51
- // Outline Style for tabbing through switches
52
- $switch-label-outline: 1px dotted #888 !default;
53
-
54
-
55
- //
56
- // @mixins
57
- //
58
-
59
- // We use this mixin to create the base styles for our switch element.
60
- //
61
- // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
62
- // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
63
- @mixin switch-base(
64
- $transition-speed:$switch-paddle-transition-speed,
65
- $transition-ease:$switch-paddle-transition-ease) {
66
-
67
- // Default position and structure for switch container.
68
- position: relative;
69
- padding: 0;
70
- display: block;
71
- overflow: hidden;
72
- border-style: $switch-border-style;
73
- border-width: $switch-border-width;
74
- margin-bottom: $switch-bottom-margin;
75
-
76
- // Default label styles for type and transition
77
- label {
78
- position: relative;
79
- #{$default-float}: 0;
80
- z-index: 2;
81
- float: $default-float;
82
- width: 50%;
83
- height: 100%;
84
- margin: 0;
85
- font-weight: $font-weight-bold;
86
- text-align: $default-float;
87
-
88
- // Transition for the switch label to follow paddle
89
- @include single-transition(all, $transition-speed, $transition-ease);
90
- }
91
-
92
- // So that we don't need to recreate the form with any JS, we use the
93
- // existing radio button, but we cleverly position and hide it.
94
- input {
95
- position: absolute;
96
- z-index: 3;
97
- opacity: 0;
98
- width: 100%;
99
- height: 100%;
100
- -moz-appearance: none;
101
-
102
- // Hover and focus styles for the paddle
103
- &:hover,
104
- &:focus {
105
- cursor: $cursor-pointer-value;
106
- }
107
- }
108
-
109
- // The toggle area for radio switches. We call is a paddle.
110
- span:last-child {
111
- position: absolute;
112
- top: -1px;
113
- #{$default-float}: -1px;
114
- z-index: 1;
115
- display: block;
116
- padding: 0;
117
- border-width: $switch-paddle-border-width;
118
- border-style: $switch-paddle-border-style;
119
-
120
- // Transition for the switch paddle
121
- @include single-transition(all, $transition-speed, $transition-ease);
122
- }
123
-
124
- // When a label isn't :checked, we hide it as it slides away.
125
- input:not(:checked) + label { opacity: 0; }
126
-
127
- // Controlling the position of the labels as they are toggled.
128
- input:checked { display: none !important; }
129
- input { #{$default-float}: 0; display: block !important; }
130
-
131
- // Left Label alignment and position changes, including fixes for while inside a custom form
132
- input:first-of-type + label,
133
- input:first-of-type + span + label { #{$default-float}: -50%; }
134
- input:first-of-type:checked + label,
135
- input:first-of-type:checked + span + label { #{$default-float}: 0%; }
136
-
137
- // Right Label alignment and position changes, including fixes for while inside a custom form
138
- input:last-of-type + label,
139
- input:last-of-type + span + label {#{$opposite-direction}: -50%; #{$default-float}: auto; text-align: $opposite-direction; }
140
- input:last-of-type:checked + label,
141
- input:last-of-type:checked + span + label { #{$opposite-direction}: 0%; #{$default-float}: auto; }
142
-
143
- // Hiding custom form spans since we auto-create them
144
- span.custom { display: none !important; }
145
-
146
- form.custom & .hidden-field {
147
- margin-left: auto;
148
- position: absolute;
149
- visibility: visible;
150
- }
151
- }
152
-
153
- // We use this mixin to create the size styles for switches.
154
- //
155
- // $height - Height (in px) of the switch. Default: $switch-height-med.
156
- // $font-size - Font size of text in switch. Default: $switch-font-size-med.
157
- // $line-height - Line height of switch. Default: 2.3rem.
158
- @mixin switch-size(
159
- $height: $switch-height-med,
160
- $font-size: $switch-font-size-med,
161
- $line-height: 2.3rem) {
162
-
163
- height: rem-calc($height);
164
-
165
- label {
166
- padding: rem-calc(0, $switch-label-side-padding);
167
- line-height: $line-height;
168
- font-size: rem-calc($font-size);
169
- }
170
-
171
- input {
172
- // Move the paddle to the right position
173
- &:first-of-type:checked ~ span:last-child {
174
- #{$default-float}: 100%;
175
- margin-#{$default-float}: rem-calc(-$height + 1px);
176
- }
177
- }
178
-
179
- span:last-child {
180
- width: rem-calc($height);
181
- height: rem-calc($height);
182
- }
183
-
184
- }
185
-
186
- // We use this mixin to add color and other fanciness to the switches.
187
- //
188
- // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
189
- // $positive-color - Background color of positive side of switch. Default: $switch-positive-color.
190
- // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
191
- // $radius - Radius to apply to switch. Default: false.
192
- // $base-style - Apply base styles? Default: true.
193
- @mixin switch-style(
194
- $paddle-bg:$switch-paddle-bg,
195
- $positive-color:$switch-positive-color,
196
- $negative-color:$switch-negative-color,
197
- $radius:false,
198
- $base-style:true) {
199
-
200
- @if $base-style {
201
- background: $switch-bg;
202
- border-color: $switch-border-color;
203
-
204
- span:last-child {
205
- border-color: scale-color($paddle-bg, $lightness: -30%);
206
- background: $paddle-bg;
207
- background: linear-gradient(to bottom, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -5%) 100%);
208
-
209
- // Building the alternating colored sides of the switch
210
- box-shadow: 2px 0 10px 0 rgba(0,0,0,0.07),
211
- 1000px 0 0 980px $positive-color,
212
- -2px 0 10px 0 rgba(0,0,0,0.07),
213
- -1000px 0 0 1000px $negative-color;
214
- }
215
-
216
- &:hover,
217
- &:focus {
218
- span:last-child {
219
- background: $paddle-bg;
220
- background: linear-gradient(to bottom, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -10%) 100%);
221
- }
222
- }
223
-
224
- &:active { background: transparent; }
225
- }
226
-
227
- // Setting up the radius for switches
228
- @if $radius == true {
229
- @include radius(4px);
230
- span:last-child { @include radius(3px); }
231
- }
232
- @else if $radius {
233
- @include radius($radius);
234
- span:last-child { @include radius($radius - 1px); }
235
- }
236
-
237
- }
238
-
239
- // We use this to quickly create switches with a single mixin
240
- //
241
- // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
242
- // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
243
- // $height - Height (in px) of the switch. Default: $switch-height-med.
244
- // $font-size - Font size of text in switch. Default: $switch-font-size-med.
245
- // $line-height - Line height of switch. Default: 2.3rem.
246
- // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
247
- // $positive-color - Background color of positive side of switch. Default: $switch-positive-color.
248
- // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
249
- // $radius - Radius to apply to switch. Default: false.
250
- // $base-style - Apply base styles? Default: true.
251
- @mixin switch(
252
- $transition-speed: $switch-paddle-transition-speed,
253
- $transition-ease: $switch-paddle-transition-ease,
254
- $height: $switch-height-med,
255
- $font-size: $switch-font-size-med,
256
- $line-height: 2.3rem,
257
- $paddle-bg: $switch-paddle-bg,
258
- $positive-color: $switch-positive-color,
259
- $negative-color: $switch-negative-color,
260
- $radius:false,
261
- $base-style:true) {
262
- @include switch-base($transition-speed, $transition-ease);
263
- @include switch-size($height, $font-size, $line-height);
264
- @include switch-style($paddle-bg, $positive-color, $negative-color, $radius, $base-style);
265
- }
266
-
267
- @include exports("switch") {
268
- @if $include-html-form-classes {
269
- div.switch {
270
- @include switch;
271
-
272
- // Large radio switches
273
- &.large { @include switch-size($switch-height-lrg, $switch-font-size-lrg); }
274
-
275
- // Small radio switches
276
- &.small { @include switch-size($switch-height-sml, $switch-font-size-sml, 2.1rem); }
277
-
278
- // Tiny radio switches
279
- &.tiny { @include switch-size($switch-height-tny, $switch-font-size-tny, 1.9rem); }
280
-
281
- // Add a radius to the switch
282
- &.radius { @include radius(4px);
283
- span:last-child{ @include radius(3px); }
284
- }
285
-
286
- // Make the switch completely round, like a pill
287
- &.round { @include radius(1000px);
288
- span:last-child { @include radius(999px); }
289
- label { padding: rem-calc(0 $switch-label-side-padding + 3); }
290
- }
291
-
292
- }
293
- }
294
- }