locomotivecms_wagon 2.2.0.beta1 → 2.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/generators/blank/config/metafields_schema.yml +1 -1
  4. data/generators/bootstrap/config/metafields_schema.yml +1 -1
  5. data/generators/{foundation5 → foundation}/Gemfile.tt +1 -1
  6. data/generators/{foundation5 → foundation}/Guardfile +0 -0
  7. data/generators/foundation/app/content_types/.gitkeep +0 -0
  8. data/generators/foundation/app/views/pages/404.liquid +11 -0
  9. data/generators/{foundation5 → foundation}/app/views/pages/404.liquid.haml +4 -3
  10. data/generators/{foundation5 → foundation}/app/views/pages/index.liquid +54 -78
  11. data/generators/foundation/app/views/pages/index.liquid.haml +144 -0
  12. data/generators/foundation/app/views/snippets/.gitkeep +0 -0
  13. data/generators/{foundation5 → foundation}/config/deploy.yml +2 -1
  14. data/generators/{foundation5 → foundation}/config/metafields_schema.yml +1 -1
  15. data/generators/{foundation5/config/site.yml.tt → foundation/config/site.yml} +2 -2
  16. data/generators/{foundation5 → foundation}/config/translations.yml +0 -0
  17. data/generators/foundation/data/.gitkeep +0 -0
  18. data/generators/foundation/log/.gitkeep +0 -0
  19. data/generators/foundation/public/images/.gitkeep +0 -0
  20. data/generators/foundation/public/javascripts/app.js +1 -0
  21. data/generators/foundation/public/javascripts/vendor/foundation.js +7472 -0
  22. data/generators/foundation/public/javascripts/vendor/foundation.min.js +3 -0
  23. data/generators/foundation/public/javascripts/vendor/what-input.js +212 -0
  24. data/generators/foundation/public/javascripts/vendor/what-input.min.js +1 -0
  25. data/generators/foundation/public/stylesheets/_settings.scss +529 -0
  26. data/generators/foundation/public/stylesheets/app.css +3 -0
  27. data/generators/foundation/public/stylesheets/app.scss +43 -0
  28. data/generators/foundation/public/stylesheets/foundation.css +3499 -0
  29. data/generators/foundation/public/stylesheets/foundation6/_global.scss +197 -0
  30. data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +28 -0
  31. data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +112 -0
  32. data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +55 -0
  33. data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +94 -0
  34. data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +115 -0
  35. data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +264 -0
  36. data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +115 -0
  37. data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +61 -0
  38. data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +67 -0
  39. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +123 -0
  40. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +64 -0
  41. data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +68 -0
  42. data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +27 -0
  43. data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +56 -0
  44. data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +74 -0
  45. data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +213 -0
  46. data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +170 -0
  47. data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +186 -0
  48. data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +161 -0
  49. data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +83 -0
  50. data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +155 -0
  51. data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +158 -0
  52. data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +38 -0
  53. data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +231 -0
  54. data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +212 -0
  55. data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +137 -0
  56. data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +54 -0
  57. data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +44 -0
  58. data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +110 -0
  59. data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +57 -0
  60. data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +131 -0
  61. data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +36 -0
  62. data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +81 -0
  63. data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +53 -0
  64. data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +32 -0
  65. data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +30 -0
  66. data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +70 -0
  67. data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +48 -0
  68. data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +64 -0
  69. data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +153 -0
  70. data/generators/foundation/public/stylesheets/foundation6/foundation.scss +91 -0
  71. data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +132 -0
  72. data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +112 -0
  73. data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +191 -0
  74. data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +33 -0
  75. data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +31 -0
  76. data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +32 -0
  77. data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +71 -0
  78. data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +72 -0
  79. data/generators/foundation/public/stylesheets/foundation6/grid/_size.scss +24 -0
  80. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +102 -0
  81. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_settings.scss +61 -0
  82. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +29 -0
  83. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_hinge.scss +65 -0
  84. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_shake.scss +15 -0
  85. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_slide.scss +41 -0
  86. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_spin.scss +28 -0
  87. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_wiggle.scss +13 -0
  88. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +15 -0
  89. data/generators/foundation/public/stylesheets/foundation6/motion-ui/motion-ui.scss +29 -0
  90. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_fade.scss +28 -0
  91. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_hinge.scss +43 -0
  92. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +42 -0
  93. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_spin.scss +39 -0
  94. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_zoom.scss +39 -0
  95. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_animation.scss +7 -0
  96. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_args.scss +15 -0
  97. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_keyframe.scss +136 -0
  98. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_selector.scss +23 -0
  99. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_series.scss +54 -0
  100. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +45 -0
  101. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_unit.scss +7 -0
  102. data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +4 -0
  103. data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +531 -0
  104. data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +21 -0
  105. data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +436 -0
  106. data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +77 -0
  107. data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +73 -0
  108. data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +28 -0
  109. data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +182 -0
  110. data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +41 -0
  111. data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +190 -0
  112. data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +39 -0
  113. data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +69 -0
  114. data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +15 -0
  115. data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +117 -0
  116. data/generators/{foundation5/public/stylesheets/normalize.css.scss → foundation/public/stylesheets/foundation6/vendor/normalize.scss} +8 -11
  117. data/generators/site_metafields/schema.yml.tt +1 -1
  118. data/lib/locomotive/wagon/commands/push_command.rb +1 -0
  119. data/lib/locomotive/wagon/commands/serve_command.rb +1 -0
  120. data/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb +3 -3
  121. data/lib/locomotive/wagon/decorators/content_type_decorator.rb +5 -1
  122. data/lib/locomotive/wagon/generators/site/{foundation5.rb → foundation.rb} +8 -12
  123. data/lib/locomotive/wagon/generators/site.rb +1 -1
  124. data/lib/locomotive/wagon/version.rb +1 -1
  125. data/locomotivecms_wagon.gemspec +3 -2
  126. data/spec/fixtures/cassettes/authenticate.yml +38 -38
  127. data/spec/fixtures/cassettes/delete.yml +211 -211
  128. data/spec/fixtures/cassettes/push.yml +1333 -1374
  129. data/spec/integration/cli_spec.rb +1 -1
  130. data/spec/unit/decorators/content_entry_decorator_spec.rb +23 -0
  131. metadata +133 -104
  132. data/generators/foundation5/app/content_types/.empty_directory +0 -1
  133. data/generators/foundation5/app/views/pages/404.liquid +0 -10
  134. data/generators/foundation5/app/views/pages/index.liquid.haml +0 -157
  135. data/generators/foundation5/data/.empty_directory +0 -1
  136. data/generators/foundation5/icon.png +0 -0
  137. data/generators/foundation5/public/fonts/.empty_directory +0 -1
  138. data/generators/foundation5/public/images/.empty_directory +0 -1
  139. data/generators/foundation5/public/javascripts/foundation/foundation.abide.js +0 -299
  140. data/generators/foundation5/public/javascripts/foundation/foundation.accordion.js +0 -59
  141. data/generators/foundation5/public/javascripts/foundation/foundation.alert.js +0 -43
  142. data/generators/foundation5/public/javascripts/foundation/foundation.clearing.js +0 -534
  143. data/generators/foundation5/public/javascripts/foundation/foundation.dropdown.js +0 -311
  144. data/generators/foundation5/public/javascripts/foundation/foundation.equalizer.js +0 -74
  145. data/generators/foundation5/public/javascripts/foundation/foundation.interchange.js +0 -331
  146. data/generators/foundation5/public/javascripts/foundation/foundation.joyride.js +0 -843
  147. data/generators/foundation5/public/javascripts/foundation/foundation.js +0 -611
  148. data/generators/foundation5/public/javascripts/foundation/foundation.magellan.js +0 -178
  149. data/generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js +0 -108
  150. data/generators/foundation5/public/javascripts/foundation/foundation.orbit.js +0 -610
  151. data/generators/foundation5/public/javascripts/foundation/foundation.reveal.js +0 -437
  152. data/generators/foundation5/public/javascripts/foundation/foundation.slider.js +0 -199
  153. data/generators/foundation5/public/javascripts/foundation/foundation.tab.js +0 -167
  154. data/generators/foundation5/public/javascripts/foundation/foundation.tooltip.js +0 -298
  155. data/generators/foundation5/public/javascripts/foundation/foundation.topbar.js +0 -425
  156. data/generators/foundation5/public/javascripts/foundation.js +0 -4161
  157. data/generators/foundation5/public/javascripts/foundation.min.js +0 -10
  158. data/generators/foundation5/public/javascripts/vendor/custom.modernizr.js +0 -4
  159. data/generators/foundation5/public/javascripts/vendor/custom.modernizr.min.js +0 -1
  160. data/generators/foundation5/public/javascripts/vendor/fastclick.js +0 -9
  161. data/generators/foundation5/public/javascripts/vendor/fastclick.min.js +0 -11
  162. data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.js +0 -645
  163. data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.min.js +0 -1
  164. data/generators/foundation5/public/javascripts/vendor/jquery.cookie.js +0 -8
  165. data/generators/foundation5/public/javascripts/vendor/jquery.cookie.min.js +0 -8
  166. data/generators/foundation5/public/javascripts/vendor/jquery.js +0 -26
  167. data/generators/foundation5/public/javascripts/vendor/jquery.min.js +0 -27
  168. data/generators/foundation5/public/javascripts/vendor/modernizr.js +0 -8
  169. data/generators/foundation5/public/javascripts/vendor/modernizr.min.js +0 -1
  170. data/generators/foundation5/public/javascripts/vendor/placeholder.js +0 -2
  171. data/generators/foundation5/public/javascripts/vendor/placeholder.min.js +0 -1
  172. data/generators/foundation5/public/samples/.empty_directory +0 -1
  173. data/generators/foundation5/public/stylesheets/application.css +0 -2
  174. data/generators/foundation5/public/stylesheets/application.css.scss +0 -3
  175. data/generators/foundation5/public/stylesheets/foundation/_functions.scss +0 -102
  176. data/generators/foundation5/public/stylesheets/foundation/_settings.scss +0 -1441
  177. data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +0 -157
  178. data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +0 -128
  179. data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +0 -132
  180. data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
  181. data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +0 -197
  182. data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +0 -259
  183. data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +0 -247
  184. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
  185. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +0 -262
  186. data/generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss +0 -51
  187. data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +0 -585
  188. data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +0 -460
  189. data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +0 -275
  190. data/generators/foundation5/public/stylesheets/foundation/components/_icon-bar.scss +0 -293
  191. data/generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss +0 -57
  192. data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +0 -222
  193. data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +0 -61
  194. data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +0 -106
  195. data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +0 -34
  196. data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +0 -513
  197. data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +0 -368
  198. data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +0 -162
  199. data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +0 -95
  200. data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +0 -150
  201. data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +0 -79
  202. data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +0 -168
  203. data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +0 -222
  204. data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +0 -116
  205. data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +0 -191
  206. data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +0 -123
  207. data/generators/foundation5/public/stylesheets/foundation/components/_switches.scss +0 -230
  208. data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +0 -135
  209. data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +0 -123
  210. data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +0 -66
  211. data/generators/foundation5/public/stylesheets/foundation/components/_toolbar.scss +0 -70
  212. data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +0 -142
  213. data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +0 -685
  214. data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +0 -525
  215. data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +0 -408
  216. data/generators/foundation5/public/stylesheets/foundation.css +0 -6138
  217. data/generators/foundation5/public/stylesheets/foundation.css.scss +0 -45
  218. data/generators/foundation5/public/stylesheets/normalize.css +0 -357
  219. data/lib/locomotive/wagon/generators/site/foundation4.rb +0 -34
@@ -0,0 +1,158 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ // [TODO] Check how plugin confirms disabled or vertical status
6
+ // [TODO] Check if transition: all; is necessary
7
+
8
+ ////
9
+ /// @group slider
10
+ ////
11
+
12
+ /// Default height of the slider.
13
+ /// @type Number
14
+ $slider-height: 0.5rem !default;
15
+
16
+ /// Default slider width of a vertical slider.
17
+ /// @type Number
18
+ $slider-width-vertical: $slider-height !default;
19
+
20
+ /// Default background color of the slider's track.
21
+ /// @type Color
22
+ $slider-background: $light-gray !default;
23
+
24
+ /// Default color of the active fill color of the slider.
25
+ /// @type Color
26
+ $slider-fill-background: $medium-gray !default;
27
+
28
+ /// Default height of the handle of the slider.
29
+ /// @type Number
30
+ $slider-handle-height: 1.4rem !default;
31
+
32
+ /// Default width of the handle of the slider.
33
+ /// @type Number
34
+ $slider-handle-width: 1.4rem !default;
35
+
36
+ /// Default color of the handle for the slider.
37
+ /// @type Color
38
+ $slider-handle-background: $primary-color !default;
39
+
40
+ /// Default fade amount of a disabled slider.
41
+ /// @type Number
42
+ $slider-opacity-disabled: 0.25 !default;
43
+
44
+ /// Default radius for slider.
45
+ /// @type Number
46
+ $slider-radius: $global-radius !default;
47
+
48
+ /// Transition properties to apply to the slider handle and fill.
49
+ /// @type Transition
50
+ $slider-transition: all 0.2s ease-in-out !default;
51
+
52
+ /// Adds the general styles for sliders.
53
+ @mixin slider-container {
54
+ position: relative;
55
+ height: $slider-height;
56
+ margin-top: 1.25rem;
57
+ margin-bottom: 2.25rem;
58
+ background-color: $slider-background;
59
+ cursor: pointer;
60
+ user-select: none;
61
+ touch-action: none;
62
+ }
63
+
64
+ /// Adds the general styles for active fill for sliders.
65
+ @mixin slider-fill {
66
+ position: absolute;
67
+ top: 0;
68
+ left: 0;
69
+ display: inline-block;
70
+ max-width: 100%;
71
+ height: $slider-height;
72
+ background-color: $slider-fill-background;
73
+ transition: $slider-transition;
74
+
75
+ &.is-dragging {
76
+ transition: all 0s linear;
77
+ }
78
+ }
79
+
80
+ /// Adds the general styles for the slider handles.
81
+ @mixin slider-handle {
82
+ @include disable-mouse-outline;
83
+ @include v-align-middle;
84
+ position: absolute;
85
+ left: 0;
86
+ z-index: 1;
87
+ display: inline-block;
88
+ width: $slider-handle-width;
89
+ height: $slider-handle-height;
90
+ background-color: $slider-handle-background;
91
+ transition: $slider-transition;
92
+ touch-action: manipulation;
93
+ border-radius: $slider-radius;
94
+
95
+ &:hover {
96
+ background-color: scale-color($slider-handle-background, $lightness: -15%);
97
+ }
98
+
99
+ &.is-dragging {
100
+ transition: all 0s linear;
101
+ }
102
+ }
103
+
104
+ @mixin slider-disabled {
105
+ opacity: $slider-opacity-disabled;
106
+ cursor: not-allowed;
107
+ }
108
+
109
+ @mixin slider-vertical {
110
+ display: inline-block;
111
+ width: $slider-width-vertical;
112
+ height: 12.5rem;
113
+ margin: 0 1.25rem;
114
+ transform: scale(1, -1);
115
+
116
+ .slider-fill {
117
+ top: 0;
118
+ width: $slider-width-vertical;
119
+ max-height: 100%;
120
+ }
121
+
122
+ .slider-handle {
123
+ position: absolute;
124
+ top: 0;
125
+ left: 50%;
126
+ width: $slider-handle-height;
127
+ height: $slider-handle-width;
128
+ transform: translateX(-50%);
129
+ }
130
+ }
131
+
132
+ @mixin foundation-slider {
133
+ // Container
134
+ .slider {
135
+ @include slider-container;
136
+ }
137
+
138
+ // Fill area
139
+ .slider-fill {
140
+ @include slider-fill;
141
+ }
142
+
143
+ // Draggable handle
144
+ .slider-handle {
145
+ @include slider-handle;
146
+ }
147
+
148
+ // Disabled state
149
+ .slider.disabled,
150
+ .slider[disabled] {
151
+ @include slider-disabled;
152
+ }
153
+
154
+ // Vertical slider
155
+ .slider.vertical {
156
+ @include slider-vertical;
157
+ }
158
+ }
@@ -0,0 +1,38 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @mixin foundation-sticky {
6
+ .sticky-container {
7
+ position: relative;
8
+ }
9
+
10
+ .sticky {
11
+ position: absolute;
12
+ z-index: 0;
13
+ transform: translate3d(0,0,0);
14
+ }
15
+
16
+ .sticky.is-stuck {
17
+ position: fixed;
18
+ z-index: 5;
19
+
20
+ &.is-at-top {
21
+ top: 0;
22
+ }
23
+
24
+ &.is-at-bottom {
25
+ bottom: 0;
26
+ }
27
+ }
28
+
29
+ .sticky.is-anchored {
30
+ position: absolute;
31
+ left: auto;
32
+ right: auto;
33
+
34
+ &.is-at-bottom {
35
+ bottom: 0;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,231 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group switch
7
+ ////
8
+
9
+ /// Background color of a switch.
10
+ /// @type Color
11
+ $switch-background: $medium-gray !default;
12
+
13
+ /// Background active color of a switch.
14
+ /// @type Color
15
+ $switch-background-active: $primary-color !default;
16
+
17
+ /// Height of a switch, with no class applied.
18
+ /// @type Number
19
+ $switch-height: 2rem !default;
20
+
21
+ /// Height of a switch with .tiny class.
22
+ /// @type Number
23
+ $switch-height-tiny: 1.5rem !default;
24
+
25
+ /// Height of a switch with .small class.
26
+ /// @type Number
27
+ $switch-height-small: 1.75rem !default;
28
+
29
+ /// Height of a switch with .large class.
30
+ /// @type Number
31
+ $switch-height-large: 2.5rem !default;
32
+
33
+ /// Border radius of the switch
34
+ /// @type Number
35
+ $switch-radius: $global-radius;
36
+
37
+ /// border around a modal.
38
+ /// @type Number
39
+ $switch-margin: $global-margin !default;
40
+
41
+ /// Background color for the switch container and paddle.
42
+ /// @type Color
43
+ $switch-paddle-background: $white !default;
44
+
45
+ /// Spacing between a switch paddle and the edge of the body.
46
+ /// @type Number
47
+ $switch-paddle-offset: 0.25rem !default;
48
+
49
+ /// border radius of the switch paddle
50
+ /// @type Number
51
+ $switch-paddle-radius: $global-radius !default;
52
+
53
+ /// switch transition.
54
+ /// @type Number
55
+ $switch-paddle-transition: all 0.25s ease-out !default;
56
+
57
+ // make them variables
58
+ // ask about accessibility on label
59
+ // change class name for text
60
+
61
+ /// Adds styles for a switch container. Apply this to a container class.
62
+ @mixin switch-container {
63
+ margin-bottom: $switch-margin;
64
+ outline: 0;
65
+ position: relative;
66
+ user-select: none;
67
+
68
+ // These properties cascade down to the switch text
69
+ color: $white;
70
+ font-weight: bold;
71
+ font-size: rem-calc(14);
72
+ }
73
+
74
+ /// Adds styles for a switch input. Apply this to an `<input>` within a switch.
75
+ @mixin switch-input {
76
+ opacity: 0;
77
+ position: absolute;
78
+ }
79
+
80
+ /// Adds styles for the background and paddle of a switch. Apply this to a `<label>` within a switch.
81
+ @mixin switch-paddle {
82
+ background: $switch-background;
83
+ cursor: pointer;
84
+ display: block;
85
+ position: relative;
86
+ width: 4rem;
87
+ height: $switch-height;
88
+ transition: $switch-paddle-transition;
89
+ border-radius: $switch-radius;
90
+
91
+ // Resetting these <label> presets so type styles cascade down
92
+ color: inherit;
93
+ font-weight: inherit;
94
+
95
+ // Needed to override specificity
96
+ input + & {
97
+ margin: 0;
98
+ }
99
+
100
+ // The paddle itself
101
+ &::after {
102
+ background: $switch-paddle-background;
103
+ content: '';
104
+ display: block;
105
+ position: absolute;
106
+ height: 1.5rem;
107
+ #{$global-left}: 0.25rem;
108
+ top: 0.25rem;
109
+ width: 1.5rem;
110
+ transition: $switch-paddle-transition;
111
+ transform: translate3d(0, 0, 0);
112
+ }
113
+
114
+ // Change the visual style when the switch is active
115
+ input:checked ~ & {
116
+ background: $switch-background-active;
117
+
118
+ &::after {
119
+ #{$global-left}: 2.25rem;
120
+ }
121
+ }
122
+
123
+ input:focus ~ & {
124
+ @include disable-mouse-outline;
125
+ }
126
+ }
127
+
128
+ /// Adds base styles for active/inactive text inside a switch. Apply this to text elements inside the switch `<label>`.
129
+ @mixin switch-text {
130
+ position: absolute;
131
+ top: 50%;
132
+ transform: translateY(-50%);
133
+ }
134
+
135
+ /// Adds styles for the active state text within a switch.
136
+ @mixin switch-text-active {
137
+ #{$global-left}: 8%;
138
+ display: none;
139
+
140
+ input:checked + label > & {
141
+ display: block;
142
+ }
143
+ }
144
+
145
+ /// Adds styles for the inactive state text within a switch.
146
+ @mixin switch-text-inactive {
147
+ #{$global-right}: 15%;
148
+
149
+ input:checked + label > & {
150
+ display: none;
151
+ }
152
+ }
153
+
154
+ /// Changes the size of a switch by modifying the size of the body and paddle. Apply this to a switch container.
155
+ /// @param {Number} $font-size [1rem] - Font size of label text within the switch.
156
+ /// @param {Number} $width [4rem] - Width of the switch body.
157
+ /// @param {Number} $height [2rem] - Height of the switch body.
158
+ /// @param {Number} $paddle-width [1.5rem] - Width of the switch paddle.
159
+ /// @param {Number} $paddle-offset [0.25rem] - Spacing between the switch paddle and the edge of the switch body.
160
+ @mixin switch-size(
161
+ $font-size: 1rem,
162
+ $width: 4rem,
163
+ $height: 2rem,
164
+ $paddle-width: 1.5rem,
165
+ $paddle-offset: 0.25rem
166
+ ) {
167
+ $paddle-height: $height - ($paddle-offset * 2);
168
+ $paddle-left-active: $width - $paddle-width - $paddle-offset;
169
+
170
+ .switch-paddle {
171
+ width: $width;
172
+ height: $height;
173
+ font-size: $font-size;
174
+ }
175
+
176
+ .switch-paddle::after {
177
+ width: $paddle-width;
178
+ height: $paddle-height;
179
+ }
180
+
181
+ input:checked ~ .switch-paddle:after {
182
+ #{$global-left}: $paddle-left-active;
183
+ }
184
+ }
185
+
186
+ @mixin foundation-switch {
187
+ // Container class
188
+ .switch {
189
+ @include switch-container;
190
+ }
191
+
192
+ // <input> element
193
+ .switch-input {
194
+ @include switch-input;
195
+ }
196
+
197
+ // <label> element
198
+ .switch-paddle {
199
+ @include switch-paddle;
200
+ }
201
+
202
+ // Base label text styles
203
+ %switch-text {
204
+ @include switch-text;
205
+ }
206
+
207
+ // Active label text styles
208
+ .switch-active {
209
+ @extend %switch-text;
210
+ @include switch-text-active;
211
+ }
212
+
213
+ // Inactive label text styles
214
+ .switch-inactive {
215
+ @extend %switch-text;
216
+ @include switch-text-inactive;
217
+ }
218
+
219
+ // Switch sizes
220
+ .switch.tiny {
221
+ @include switch-size(rem-calc(10), 3rem, $switch-height-tiny, 1rem, $switch-paddle-offset);
222
+ }
223
+
224
+ .switch.small {
225
+ @include switch-size(rem-calc(12), 3.5rem, $switch-height-small, 1.25rem, $switch-paddle-offset);
226
+ }
227
+
228
+ .switch.large {
229
+ @include switch-size(rem-calc(16), 5rem, $switch-height-large, 2rem, $switch-paddle-offset);
230
+ }
231
+ }
@@ -0,0 +1,212 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ // scss-lint:disable MergeableSelector, QualifyingElement
6
+
7
+ ////
8
+ /// @group table
9
+ ////
10
+
11
+ /// Defualt color for table background.
12
+ /// @type Color
13
+ $table-background: $white !default;
14
+
15
+ /// Defualt scale for darkening the striped table rows and the table border.
16
+ /// @type Number
17
+ $table-color-scale: 5% !default;
18
+
19
+ /// Defualt style for table border.
20
+ /// @type List
21
+ $table-border: 1px solid smart-scale($table-background, $table-color-scale) !default;
22
+
23
+ /// Defualt padding for table.
24
+ /// @type Number
25
+ $table-padding: rem-calc(8 10 10) !default;
26
+
27
+ /// Defualt scale for darkening the table rows on hover.
28
+ /// @type Number
29
+ $table-hover-scale: 2% !default;
30
+
31
+ /// Defualt color of standard rows on hover.
32
+ /// @type List
33
+ $table-row-hover: darken($table-background, $table-hover-scale) !default;
34
+
35
+ /// Defualt color of striped rows on hover.
36
+ /// @type List
37
+ $table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale) !default;
38
+
39
+ /// Defualt background color for striped rows.
40
+ /// @type Color
41
+ $table-striped-background: smart-scale($table-background, $table-color-scale) !default;
42
+
43
+ /// Defualt value for showing the stripe on rows of the tables, excluding the header and footer If even, the even rows will have a background color. If odd, the odd rows will have a background color. If empty, or anyother value, the table rows will have no striping.
44
+ /// @type Keyoword
45
+ $table-stripe: even !default;
46
+
47
+ /// Defualt color for header background.
48
+ /// @type Color
49
+ $table-head-background: smart-scale($table-background, $table-color-scale / 2) !default;
50
+
51
+ /// Defualt color for footer background.
52
+ /// @type Color
53
+ $table-foot-background: smart-scale($table-background, $table-color-scale) !default;
54
+
55
+ /// Defualt font color for header.
56
+ /// @type Color
57
+ $table-head-font-color: $body-font-color !default;
58
+
59
+ /// Defualt value for showing the header when using stacked tables.
60
+ /// @type Boolean
61
+ $show-header-for-stacked: false;
62
+
63
+ /// Adds the general styles for tables.
64
+ /// @param {Keyword} $stripe [$table-stripe] - Uses kewords even, odd, or none to darken rows of the table. The defualt value is even.
65
+ @mixin table($stripe: $table-stripe) {
66
+ margin-bottom: $global-margin;
67
+ border-radius: $global-radius;
68
+
69
+ @at-root {
70
+ thead,
71
+ tbody,
72
+ tfoot {
73
+ border: $table-border;
74
+ background-color: $table-background;
75
+ }
76
+
77
+ // Caption
78
+ caption {
79
+ font-weight: $global-weight-bold;
80
+ padding: $table-padding;
81
+ }
82
+
83
+ // Table head and foot
84
+ thead,
85
+ tfoot {
86
+ background: $table-head-background;
87
+ color: $table-head-font-color;
88
+
89
+ // Rows within head and foot
90
+ tr {
91
+ background: transparent;
92
+ }
93
+
94
+ // Cells within head and foot
95
+ th,
96
+ td {
97
+ padding: $table-padding;
98
+ font-weight: $global-weight-bold;
99
+ text-align: #{$global-left};
100
+ }
101
+ }
102
+
103
+ // Table rows
104
+ tbody {
105
+ tr {
106
+ // If stripe is set to even, darken the even rows.
107
+ @if $stripe == even {
108
+ &:nth-child(even) {
109
+ background-color: $table-striped-background;
110
+ }
111
+ }
112
+
113
+ // If stripe is set to odd, darken the odd rows.
114
+ @else if $stripe == odd {
115
+ &:nth-child(odd) {
116
+ background-color: $table-striped-background;
117
+ }
118
+ }
119
+ }
120
+
121
+ th,
122
+ td {
123
+ padding: $table-padding;
124
+ }
125
+ }
126
+ }
127
+ }
128
+
129
+ /// Adds the ability to horizontally scroll the table when the content overflows horizontally.
130
+ @mixin table-scroll {
131
+ display: block;
132
+ width: 100%;
133
+ overflow-y: scroll;
134
+ }
135
+
136
+ /// Slightly darkens the table rows on hover.
137
+ @mixin table-hover {
138
+ tr {
139
+ //Darkens the non-striped table rows on hover.
140
+ &:hover {
141
+ background-color: $table-row-hover;
142
+ }
143
+
144
+ //Darkens the even striped table rows.
145
+ @if($table-stripe == even) {
146
+ &:nth-of-type(even):hover {
147
+ background-color: $table-row-stripe-hover;
148
+ }
149
+ }
150
+
151
+ //Darkens the odd striped table rows.
152
+ @elseif($table-stripe == odd) {
153
+ &:nth-of-type(odd):hover {
154
+ background-color: $table-row-stripe-hover;
155
+ }
156
+ }
157
+ }
158
+ }
159
+
160
+ /// Adds styles for a stacked table. Useful for small-screen layouts.
161
+ /// @param {Boolean} $header [$show-header-for-stacked] - Show the first th of header when stacked.
162
+ @mixin table-stack($header: $show-header-for-stacked) {
163
+ @if $header {
164
+ thead {
165
+ th:first-child {
166
+ display: block;
167
+ }
168
+
169
+ th {
170
+ display: none;
171
+ }
172
+ }
173
+ } @else {
174
+ thead {
175
+ display: none;
176
+ }
177
+ }
178
+
179
+ tfoot {
180
+ display: none;
181
+ }
182
+
183
+ tr,
184
+ th,
185
+ td {
186
+ display: block;
187
+ }
188
+
189
+ td {
190
+ border-top: 0;
191
+ }
192
+ }
193
+
194
+ @mixin foundation-table {
195
+ table {
196
+ @include table;
197
+ }
198
+
199
+ table.stack {
200
+ @include breakpoint(medium down) {
201
+ @include table-stack;
202
+ }
203
+ }
204
+
205
+ table.scroll {
206
+ @include table-scroll;
207
+ }
208
+
209
+ table.hover {
210
+ @include table-hover;
211
+ }
212
+ }