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,197 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group global
7
+ ////
8
+
9
+ /// Global width of your site. Used by the grid to determine row width.
10
+ /// @type Number
11
+ $global-width: rem-calc(1200) !default;
12
+
13
+ /// Font size attribute applied to `<html>` and `<body>`. We use 100% by default so the value is inherited from the user's browser settings.
14
+ /// @type Number
15
+ $global-font-size: 100% !default;
16
+
17
+ /// Default line height for all type. `$global-lineheight` is 24px while `$global-font-size` is 16px
18
+ /// @type Number
19
+ $global-lineheight: 1.5 !default;
20
+
21
+ /// Primary color for interactive components like links and buttons.
22
+ /// @type Color
23
+ $primary-color: #2199e8 !default;
24
+
25
+ /// Secondary color, used with components that support the `.secondary` class.
26
+ /// @type Color
27
+ $secondary-color: #777 !default;
28
+
29
+ /// Color to indicate a positive status or action, used with the `.success` class.
30
+ /// @type Color
31
+ $success-color: #3adb76 !default;
32
+
33
+ /// Color to indicate a caution status or action, used with the `.warning` class.
34
+ /// @type Color
35
+ $warning-color: #ffae00 !default;
36
+
37
+ /// Color to indicate a negative status or action, used with the `.alert` class.
38
+ /// @type Color
39
+ $alert-color: #ec5840 !default;
40
+
41
+ /// Color used for light gray UI items.
42
+ /// @type Color
43
+ $light-gray: #e6e6e6 !default;
44
+
45
+ /// Color used for medium gray UI items.
46
+ /// @type Color
47
+ $medium-gray: #cacaca !default;
48
+
49
+ /// Color used for dark gray UI items.
50
+ /// @type Color
51
+ $dark-gray: #8a8a8a !default;
52
+
53
+ /// Color used for black ui items.
54
+ /// @type Color
55
+ $black: #0a0a0a !default;
56
+
57
+ /// Color used for white ui items.
58
+ /// @type Color
59
+ $white: #fefefe !default;
60
+
61
+ /// Background color of the body.
62
+ /// @type Color
63
+ $body-background: $white !default;
64
+
65
+ /// Text color of the body.
66
+ /// @type Color
67
+ $body-font-color: $black !default;
68
+
69
+ /// Font stack of the body.
70
+ /// @type List
71
+ $body-font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif !default;
72
+
73
+ /// Set to `true` to enable antialiased type, using the `-webkit-font-smoothing` and `-moz-osx-font-smoothing` CSS properties.
74
+ /// @type Boolean
75
+ $body-antialiased: true !default;
76
+
77
+ /// Text direction for the document. Set to `rtl` to reverse the orientation and direction of all components.
78
+ /// @type Keyword
79
+ $text-direction: ltr !default;
80
+
81
+ /// Global value used for margin on components.
82
+ /// @type Number
83
+ $global-margin: 1rem !default;
84
+
85
+ /// Global value used for padding on components.
86
+ /// @type Number
87
+ $global-padding: 1rem !default;
88
+
89
+ /// Global value used for margin between components.
90
+ /// @type Number
91
+ $global-margin: 1rem !default;
92
+
93
+ /// Global font weight used for normal type.
94
+ /// @type Keyword | Number
95
+ $global-weight-normal: normal !default;
96
+
97
+ /// Global font weight used for bold type.
98
+ /// @type Keyword | Number
99
+ $global-weight-bold: bold !default;
100
+
101
+ /// Global value used for all elements that have a border radius.
102
+ /// @type Number
103
+ $global-radius: 0 !default;
104
+
105
+ /// Sets the text direction of the CSS. Can be either `ltr` or `rtl`.
106
+ $global-text-direction: ltr !default;
107
+
108
+ // Internal variables used for text direction
109
+ $global-left: if($global-text-direction == rtl, right, left);
110
+ $global-right: if($global-text-direction == rtl, left, right);
111
+
112
+ // Internal map used to iterate through colors, to generate CSS classes with less code
113
+ $foundation-colors: (
114
+ primary: $primary-color,
115
+ secondary: $secondary-color,
116
+ success: $success-color,
117
+ alert: $alert-color,
118
+ warning: $warning-color,
119
+ );
120
+
121
+ @mixin foundation-global-styles {
122
+ html,
123
+ body {
124
+ font-size: $global-font-size;
125
+ box-sizing: border-box;
126
+ }
127
+
128
+ // Set box-sizing globally to handle padding and border widths
129
+ *,
130
+ *:before,
131
+ *:after {
132
+ box-sizing: inherit;
133
+ }
134
+
135
+ // Default body styles
136
+ body {
137
+ padding: 0;
138
+ margin: 0;
139
+ font-family: $body-font-family;
140
+ font-weight: $global-weight-normal;
141
+ line-height: $global-lineheight;
142
+ color: $body-font-color;
143
+ background: $body-background;
144
+
145
+ @if ($body-antialiased) {
146
+ -webkit-font-smoothing: antialiased;
147
+ -moz-osx-font-smoothing: grayscale;
148
+ }
149
+ }
150
+
151
+ img {
152
+ // Grid defaults to get images and embeds to work properly
153
+ max-width: 100%;
154
+ height: auto;
155
+ -ms-interpolation-mode: bicubic;
156
+
157
+ // Get rid of gap under images by making them display: inline-block; by default
158
+ display: inline-block;
159
+ vertical-align: middle;
160
+ }
161
+
162
+ // Make sure textarea takes on height automatically
163
+ textarea {
164
+ height: auto;
165
+ min-height: 50px;
166
+ border-radius: $global-radius;
167
+ }
168
+
169
+ // Make select elements are 100% width by default
170
+ select {
171
+ width: 100%;
172
+ border-radius: $global-radius;
173
+ }
174
+
175
+ // Styles Google Maps and MapQuest embeds properly
176
+ // scss-lint:disable IdSelector
177
+ #map_canvas,
178
+ .map_canvas,
179
+ .mqa-display {
180
+ img,
181
+ embed,
182
+ object {
183
+ max-width: none !important;
184
+ }
185
+ }
186
+
187
+ // Reset <button> styles created by most browsers
188
+ button {
189
+ -webkit-appearance: none;
190
+ -moz-appearance: none;
191
+ background: transparent;
192
+ padding: 0;
193
+ border: 0;
194
+ border-radius: $global-radius;
195
+ line-height: 1;
196
+ }
197
+ }
@@ -0,0 +1,28 @@
1
+ ////
2
+ /// @group accordion-menu
3
+ ////
4
+
5
+ /// Sets if accordion menus have the default arrow styles.
6
+ /// @type Boolean
7
+ $accordionmenu-arrows: true;
8
+
9
+ @mixin foundation-accordion-menu {
10
+ @if $accordionmenu-arrows {
11
+ .is-accordion-submenu-parent > a {
12
+ position: relative;
13
+
14
+ &::after {
15
+ @include css-triangle(6px, $primary-color, down);
16
+ position: absolute;
17
+ top: 50%;
18
+ margin-top: -4px;
19
+ right: 1rem;
20
+ }
21
+ }
22
+
23
+ .is-accordion-submenu-parent[aria-expanded="true"] > a::after {
24
+ transform-origin: 50% 50%;
25
+ transform: scaleY(-1);
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,112 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group accordion
7
+ ////
8
+
9
+ /// Default background color of an accordion group.
10
+ /// @type Color
11
+ $accordion-background: $white;
12
+
13
+ /// If `true`, adds plus and minus icons to the side of each accordion title.
14
+ /// @type Boolean
15
+ $accordion-plusminus: true;
16
+
17
+ /// Default text color for items in a Menu.
18
+ /// @type Color
19
+ $accordion-item-color: foreground($accordion-background, $primary-color);
20
+
21
+ /// Default background color on hover for items in a Menu.
22
+ /// @type Color
23
+ $accordion-item-background-hover: $light-gray !default;
24
+
25
+ /// Default padding of an accordion item.
26
+ /// @type Number | List
27
+ $accordion-item-padding: 1.25rem 1rem !default;
28
+
29
+ /// Default background color of tab content.
30
+ /// @type Color
31
+ $accordion-content-background: $white !default;
32
+
33
+ /// Default border color of tab content.
34
+ /// @type Color
35
+ $accordion-content-border: 1px solid $light-gray !default;
36
+
37
+ /// Default text color of tab content.
38
+ /// @type Color
39
+ $accordion-content-color: foreground($accordion-background, $primary-color);
40
+
41
+ /// Default padding for tab content.
42
+ /// @type Number | List
43
+ $accordion-content-padding: 1rem !default;
44
+
45
+ /// Adds styles for an accordion container. Apply this to the same element that gets `data-accordion`.
46
+ @mixin accordion-container {
47
+ list-style-type: none;
48
+ background: $accordion-background;
49
+ border: $accordion-content-border;
50
+ border-radius: $global-radius;
51
+ margin-#{$global-left}: 0;
52
+ }
53
+
54
+ /// Adds styles for the title of an accordion item. Apply this to the link within an accordion item.
55
+ @mixin accordion-title {
56
+ display: block;
57
+ padding: $accordion-item-padding;
58
+ line-height: 1;
59
+ font-size: rem-calc(12);
60
+ color: $accordion-item-color;
61
+ position: relative;
62
+ border-bottom: $accordion-content-border;
63
+
64
+ &:hover,
65
+ &:focus {
66
+ background-color: $accordion-item-background-hover;
67
+ }
68
+
69
+ // Remove the border on the last title
70
+ :last-child > & {
71
+ border-bottom-width: 0;
72
+ }
73
+
74
+ @if $accordion-plusminus {
75
+ &::before {
76
+ content: '+';
77
+ position: absolute;
78
+ #{$global-right}: 1rem;
79
+ top: 50%;
80
+ margin-top: -0.5rem;
81
+ }
82
+
83
+ .is-active > &::before {
84
+ content: '–';
85
+ }
86
+ }
87
+ }
88
+
89
+ /// Adds styles for accordion content. Apply this to the content pane below an accordion item's title.
90
+ @mixin accordion-content {
91
+ padding: $accordion-item-padding;
92
+ display: none;
93
+ border-bottom: $accordion-content-border;
94
+ }
95
+
96
+ @mixin foundation-accordion {
97
+ .accordion {
98
+ @include accordion-container;
99
+ }
100
+
101
+ .accordion-item {
102
+ // This class doesn't need styles!
103
+ }
104
+
105
+ .accordion-title {
106
+ @include accordion-title;
107
+ }
108
+
109
+ .accordion-content {
110
+ @include accordion-content;
111
+ }
112
+ }
@@ -0,0 +1,55 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group badge
7
+ ////
8
+
9
+ /// Default background color for badges.
10
+ /// @type Color
11
+ $badge-background: $primary-color !default;
12
+
13
+ /// Default text color for badges.
14
+ /// @type Color
15
+ $badge-color: foreground($badge-background) !default;
16
+
17
+ /// Default padding inside badges.
18
+ /// @type Number
19
+ $badge-padding: 0.3em !default;
20
+
21
+ /// Minimum width of a badge.
22
+ /// @type Number
23
+ $badge-minwidth: 2.1em !default;
24
+
25
+ /// Default font size for badges.
26
+ /// @type Number
27
+ $badge-font-size: 0.6rem !default;
28
+
29
+ /// Generates the base styles for a badge.
30
+ @mixin badge {
31
+ display: inline-block;
32
+ padding: $badge-padding;
33
+ min-width: $badge-minwidth;
34
+ font-size: $badge-font-size;
35
+ text-align: center;
36
+ border-radius: 50%;
37
+ }
38
+
39
+ @mixin foundation-badge {
40
+ .badge {
41
+ @include badge;
42
+
43
+ background: $badge-background;
44
+ color: $badge-color;
45
+
46
+ @each $name, $color in $foundation-colors {
47
+ @if $name != primary {
48
+ &.#{$name} {
49
+ background: $color;
50
+ color: foreground($color);
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,94 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group breadcrumbs
7
+ ////
8
+
9
+ /// Margin around a breadcrumbs container.
10
+ /// @type Number
11
+ $breadcrumbs-margin: 0 0 $global-margin 0 !default;
12
+
13
+ /// Font size of breadcrumb links.
14
+ /// @type Number
15
+ $breadcrumbs-item-font-size: rem-calc(11) !default;
16
+
17
+ /// Color of breadcrumb links.
18
+ /// @type Color
19
+ $breadcrumbs-item-color: $primary-color !default;
20
+
21
+ /// Color of the active breadcrumb link.
22
+ /// @type Color
23
+ $breadcrumbs-item-color-current: $black !default;
24
+
25
+ /// Opacity of disabled breadcrumb links.
26
+ /// @type Number
27
+ $breadcrumbs-item-color-disabled: $medium-gray !default;
28
+
29
+ /// Margin between breadcrumb items.
30
+ /// @type Number
31
+ $breadcrumbs-item-margin: 0.75rem !default;
32
+
33
+ /// If `true`, makes breadcrumb links uppercase.
34
+ /// @type Boolean
35
+ $breadcrumbs-item-uppercase: true !default;
36
+
37
+ /// If `true`, adds a slash between breadcrumb links.
38
+ /// @type Boolean
39
+ $breadcrumbs-item-slash: true !default;
40
+
41
+ /// Adds styles for a breadcrumbs container, along with the styles for the `<li>` and `<a>` elements inside of it.
42
+ @mixin breadcrumbs-container {
43
+ @include clearfix;
44
+ list-style: none;
45
+ margin: $breadcrumbs-margin;
46
+
47
+ // Item wrapper
48
+ li {
49
+ float: #{$global-left};
50
+ color: $breadcrumbs-item-color-current;
51
+ font-size: $breadcrumbs-item-font-size;
52
+ cursor: default;
53
+
54
+ @if $breadcrumbs-item-uppercase {
55
+ text-transform: uppercase;
56
+ }
57
+
58
+ @if $breadcrumbs-item-slash {
59
+ // Need to escape the backslash
60
+ $slash: if($global-text-direction == 'ltr', '/', '\\');
61
+
62
+ &:not(:last-child)::after {
63
+ color: $medium-gray;
64
+ content: $slash;
65
+ margin: 0 $breadcrumbs-item-margin;
66
+ position: relative;
67
+ top: 1px;
68
+ opacity: 1;
69
+ }
70
+ }
71
+ @else {
72
+ margin-#{$global-right}: $breadcrumbs-item-margin;
73
+ }
74
+ }
75
+
76
+ // Page links
77
+ a {
78
+ color: $breadcrumbs-item-color;
79
+
80
+ &:hover {
81
+ text-decoration: underline;
82
+ }
83
+ }
84
+ }
85
+
86
+ @mixin foundation-breadcrumbs {
87
+ .breadcrumbs {
88
+ @include breadcrumbs-container;
89
+
90
+ .disabled {
91
+ color: $breadcrumbs-item-color-disabled;
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,115 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group button-group
7
+ ////
8
+
9
+ /// Margin for button groups.
10
+ /// @type Number
11
+ $buttongroup-margin: 1rem;
12
+
13
+ /// Margin between buttons in a button group.
14
+ /// @type Border
15
+ $buttongroup-spacing: 1px;
16
+
17
+ /// Selector for the buttons inside a button group.
18
+ /// @type String
19
+ $buttongroup-child-selector: '.button';
20
+
21
+ /// Maximum number of buttons that can be in an even-width button group.
22
+ /// @type Number
23
+ $buttongroup-expand-max: 6;
24
+
25
+ /// Add styles for a button group container.
26
+ /// @param {String} $child-selector [$buttongroup-child-selector] - Selector for the buttons inside a button group.
27
+ @mixin button-group(
28
+ $child-selector: $buttongroup-child-selector
29
+ ) {
30
+ @include clearfix;
31
+ margin-bottom: $buttongroup-margin;
32
+ font-size: map-get($button-sizes, default);
33
+
34
+ #{$child-selector} {
35
+ float: #{$global-left};
36
+ margin: 0;
37
+ font-size: inherit;
38
+
39
+ &:not(:last-child) {
40
+ border-#{$global-right}: $buttongroup-spacing solid $body-background;
41
+ }
42
+ }
43
+ }
44
+
45
+ /// Creates a full-width button group, making each button equal width.
46
+ /// @param {Keyword|Number} $count [auto] - Number of buttons inside the button group. Set to `auto` to generate CSS that will account for a variable number of buttons.
47
+ /// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside a button group.
48
+ @mixin button-group-expand(
49
+ $count: auto,
50
+ $selector: $buttongroup-child-selector
51
+ ) {
52
+ #{$selector} {
53
+ @if $count == auto {
54
+ @include auto-width($buttongroup-expand-max, $selector);
55
+ }
56
+ @else if type-of($count) == 'number' {
57
+ width: percentage(1 / $count);
58
+ }
59
+ }
60
+ }
61
+
62
+ /// Stacks the buttons in a button group.
63
+ /// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside the button group.
64
+ @mixin button-group-stack(
65
+ $selector: $buttongroup-child-selector
66
+ ) {
67
+ #{$selector} {
68
+ width: 100%;
69
+ border-#{$global-right}: 0;
70
+ }
71
+ }
72
+
73
+ /// Un-stacks the buttons in a button group.
74
+ /// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside the button group.
75
+ @mixin button-group-unstack(
76
+ $selector: $buttongroup-child-selector
77
+ ) {
78
+ #{$selector} {
79
+ width: auto;
80
+
81
+ &:not(:last-child) {
82
+ border-#{$global-right}: $buttongroup-spacing solid $body-background;
83
+ }
84
+ }
85
+ }
86
+
87
+ @mixin foundation-button-group {
88
+ .button-group {
89
+ @include button-group;
90
+
91
+ // Sizes
92
+ &.tiny { font-size: map-get($button-sizes, tiny); }
93
+ &.small { font-size: map-get($button-sizes, small); }
94
+ &.large { font-size: map-get($button-sizes, large); }
95
+ &.expanded { @include button-group-expand; }
96
+
97
+ // Colors
98
+ @each $name, $color in $foundation-colors {
99
+ &.#{$name} #{$buttongroup-child-selector} {
100
+ @include button-style($color, auto, auto);
101
+ }
102
+ }
103
+
104
+ &.stacked,
105
+ &.stacked-for-small {
106
+ @include button-group-stack;
107
+ }
108
+
109
+ &.stacked-for-small {
110
+ @include breakpoint(medium) {
111
+ @include button-group-unstack;
112
+ }
113
+ }
114
+ }
115
+ }