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,137 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group tabs
7
+ ////
8
+
9
+ /// Default margin of the tab bar.
10
+ /// @type Number
11
+ $tab-margin: 0 !default;
12
+
13
+ /// Default background color of a tab bar.
14
+ /// @type Color
15
+ $tab-background: $white !default;
16
+
17
+ /// active background color of a tab bar.
18
+ /// @type Color
19
+ $tab-background-active: $light-gray !default;
20
+
21
+ /// Default border color of tab content.
22
+ /// @type Color
23
+ $tab-border: $light-gray !default;
24
+
25
+ /// Default text color for items in a Menu.
26
+ /// @type Color
27
+ $tab-item-color: foreground($tab-background, $primary-color) !default;
28
+
29
+ /// Default background color on hover for items in a Menu.
30
+ $tab-item-background-hover: $white !default;
31
+
32
+ /// Default padding of a a tab item.
33
+ /// @type Number
34
+ $tab-item-padding: 1.25rem 1.5rem !default;
35
+
36
+ /// Maximum number of `expand-n` classes to include in the CSS.
37
+ /// @type Number
38
+ $tab-expand-max: 6 !default;
39
+
40
+ /// Default background color of tab content.
41
+ /// @type Color
42
+ $tab-content-background: $white !default;
43
+
44
+ /// Default border color of tab content.
45
+ /// @type Color
46
+ $tab-content-border: $light-gray !default;
47
+
48
+ /// Default text color of tab content.
49
+ /// @type Color
50
+ $tab-content-color: foreground($tab-background, $primary-color) !default;
51
+
52
+ /// Default padding for tab content.
53
+ /// @type Number | List
54
+ $tab-content-padding: 1rem !default;
55
+
56
+ @mixin foundation-tabs {
57
+ .tabs {
58
+ @include clearfix;
59
+ margin: $tab-margin;
60
+ list-style-type: none;
61
+ background: $tab-background;
62
+ border: 1px solid $tab-content-border;
63
+
64
+ // Simple
65
+ &.simple {
66
+ > li > a {
67
+ padding: 0;
68
+
69
+ &:hover {
70
+ background: transparent;
71
+ }
72
+ }
73
+ }
74
+
75
+ // Vertical
76
+ &.vertical {
77
+ > li {
78
+ width: auto;
79
+ float: none;
80
+ display: block;
81
+ }
82
+ }
83
+
84
+ // Primary color
85
+ &.primary {
86
+ background: $primary-color;
87
+
88
+ > li > a {
89
+ color: foreground($primary-color);
90
+
91
+ &:hover,
92
+ &:focus {
93
+ background: smart-scale($primary-color);
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ .tabs-title {
100
+ float: #{$global-left};
101
+
102
+ > a {
103
+ display: block;
104
+ padding: $tab-item-padding;
105
+ line-height: 1;
106
+ font-size: 12px;
107
+ color: $tab-item-color;
108
+
109
+ &:hover,
110
+ &:focus,
111
+ &[aria-selected="true"] {
112
+ background: $tab-background-active;
113
+ }
114
+ }
115
+ }
116
+
117
+ .tabs-content {
118
+ background: $tab-content-background;
119
+ transition: all 0.5s ease;
120
+ border: 1px solid $tab-content-border;
121
+ border-top: 0;
122
+
123
+ &.vertical {
124
+ border: 1px solid $tab-content-border;
125
+ border-#{$global-left}: 0;
126
+ }
127
+ }
128
+
129
+ .tabs-panel {
130
+ display: none;
131
+ padding: $tab-content-padding;
132
+
133
+ &.is-active {
134
+ display: block;
135
+ }
136
+ }
137
+ }
@@ -0,0 +1,54 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group thumbnail
7
+ ////
8
+
9
+ /// Border around thumbnail images.
10
+ /// @type Border
11
+ $thumbnail-border: solid 4px $white !default;
12
+
13
+ /// Bottom margin for thumbnail images.
14
+ /// @type Length
15
+ $thumbnail-margin-bottom: $global-margin !default;
16
+
17
+ /// Box shadow under thumbnail images.
18
+ /// @type Shadow
19
+ $thumbnail-shadow: 0 0 0 1px rgba($black, 0.2) !default;
20
+
21
+ /// Box shadow under thumbnail images.
22
+ /// @type Shadow
23
+ $thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5) !default;
24
+
25
+ /// Transition proprties for thumbnail images.
26
+ /// @type Transition
27
+ $thumbnail-transition: box-shadow 200ms ease-out !default;
28
+
29
+ /// Default radius for thumbnail images.
30
+ /// @type Number
31
+ $thumbnail-radius: $global-radius !default;
32
+
33
+ /// Adds thumbnail styles to an element.
34
+ @mixin thumbnail {
35
+ border: $thumbnail-border;
36
+ box-shadow: $thumbnail-shadow;
37
+ display: inline-block;
38
+ line-height: 0;
39
+ max-width: 100%;
40
+ transition: $thumbnail-transition;
41
+ border-radius: $thumbnail-radius;
42
+ margin-bottom: $thumbnail-margin-bottom;
43
+
44
+ &:hover,
45
+ &:focus {
46
+ box-shadow: $thumbnail-shadow-hover;
47
+ }
48
+ }
49
+
50
+ @mixin foundation-thumbnail {
51
+ .thumbnail {
52
+ @include thumbnail;
53
+ }
54
+ }
@@ -0,0 +1,44 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group title-bar
7
+ ////
8
+
9
+ @mixin foundation-title-bar {
10
+ .title-bar {
11
+ @include clearfix;
12
+ background: $black;
13
+ color: $white;
14
+ padding: 0.5rem;
15
+
16
+ .menu-icon {
17
+ margin-#{$global-left}: 0.25rem;
18
+ margin-#{$global-right}: 0.5rem;
19
+ }
20
+ }
21
+
22
+ .title-bar-left {
23
+ float: left;
24
+ }
25
+
26
+ .title-bar-right {
27
+ float: right;
28
+ text-align: right;
29
+ }
30
+
31
+ .title-bar-title {
32
+ font-weight: bold;
33
+ vertical-align: middle;
34
+ display: inline-block;
35
+ }
36
+
37
+ .menu-icon {
38
+ @include hamburger($color: white, $color-hover: $medium-gray);
39
+ }
40
+
41
+ .menu-icon.dark {
42
+ @include hamburger;
43
+ }
44
+ }
@@ -0,0 +1,110 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group tooltip
7
+ ////
8
+
9
+ /// Default color of the tooltip background.
10
+ /// @type Color
11
+ $tooltip-background-color: $black !default;
12
+
13
+ /// Default color of the tooltip font.
14
+ /// @type Color
15
+ $tooltip-color: $white;
16
+
17
+ /// Default padding of the tooltip background.
18
+ /// @type Number
19
+ $tooltip-padding: 0.75rem !default;
20
+
21
+ /// Default font size of the tooltip text. By default, we recommend a smaller font size than the body copy.
22
+ /// @type Number
23
+ $tooltip-font-size: $small-font-size !default;
24
+
25
+ /// Default pip width for tooltips.
26
+ /// @type Number
27
+ $tooltip-pip-width: 0.75rem !default;
28
+
29
+ /// Default pip height for tooltips. This is helpful for calculating the distance of the tooltip from the tooltip word.
30
+ /// @type Number
31
+ $tooltip-pip-height: $tooltip-pip-width * 0.866 !default;
32
+
33
+ /// Default pip offset for tooltips. This controls how far the pip is indented from the left edge of the tooltip.
34
+ /// @type Number
35
+ $tooltip-pip-offset: 1.25rem !default;
36
+
37
+ /// Default radius for tooltips.
38
+ /// @type Number
39
+ $tooltip-radius: $global-radius !default;
40
+
41
+ @mixin has-tip {
42
+ border-bottom: dotted 1px $dark-gray;
43
+ font-weight: bold;
44
+ position: relative;
45
+ display: inline-block;
46
+
47
+ &:hover {
48
+ cursor: help;
49
+ }
50
+ }
51
+
52
+ @mixin tooltip {
53
+ background-color: $tooltip-background-color;
54
+ color: $tooltip-color;
55
+ font-size: $tooltip-font-size;
56
+ padding: $tooltip-padding;
57
+ position: absolute;
58
+ z-index: 10;
59
+ top: calc(100% + #{$tooltip-pip-height});
60
+ max-width: 10rem !important;
61
+ border-radius: $tooltip-radius;
62
+ // visibility: hidden;
63
+
64
+ &::before {
65
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
66
+ bottom: 100%;
67
+ position: absolute;
68
+ left: 50%;
69
+ transform: translateX(-50%);
70
+ }
71
+
72
+ &.top {
73
+ &::before {
74
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, down);
75
+ top: 100%;
76
+ bottom: auto;
77
+ }
78
+ }
79
+
80
+ &.left {
81
+ &::before {
82
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, right);
83
+ bottom: auto;
84
+ left: 100%;
85
+ top: 50%;
86
+ transform: translateY(-50%);
87
+ }
88
+ }
89
+
90
+ &.right {
91
+ &::before {
92
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, left);
93
+ bottom: auto;
94
+ left: auto;
95
+ right: 100%;
96
+ top: 50%;
97
+ transform: translateY(-50%);
98
+ }
99
+ }
100
+ }
101
+
102
+ @mixin foundation-tooltip {
103
+ .has-tip {
104
+ @include has-tip;
105
+ }
106
+
107
+ .tooltip {
108
+ @include tooltip;
109
+ }
110
+ }
@@ -0,0 +1,57 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group top-bar
7
+ ////
8
+
9
+ /// Padding for the top bar.
10
+ /// @type Number
11
+ $topbar-padding: 0.5rem !default;
12
+
13
+ /// Background color for the top bar. This color also cascades to menus within the top bar.
14
+ /// @type Color
15
+ $topbar-background: #eee !default;
16
+
17
+ /// Color for links inside a top bar menu.
18
+ /// @type Color
19
+ $topbar-link-color: #fff !default;
20
+
21
+ /// Width of `<input>` elements inside the top bar.
22
+ /// @type Number
23
+ $topbar-input-width: 200px !default;
24
+
25
+ /// Adds styles for a top bar container.
26
+ @mixin top-bar-container {
27
+ @include clearfix;
28
+ padding: $topbar-padding;
29
+
30
+ &, ul {
31
+ background-color: $topbar-background;
32
+ }
33
+
34
+ input {
35
+ width: $topbar-input-width;
36
+ margin-#{$global-right}: 1rem;
37
+ }
38
+ }
39
+
40
+ @mixin foundation-top-bar {
41
+ // Top bar container
42
+ .top-bar {
43
+ @include top-bar-container;
44
+ }
45
+
46
+ // Sub-sections
47
+ // Stack on small screens
48
+ @include breakpoint(medium) {
49
+ .top-bar-left {
50
+ float: left;
51
+ }
52
+
53
+ .top-bar-right {
54
+ float: right
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,131 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ /// Hide an element by default, only displaying it above a certain screen size.
6
+ /// @param {Keyword} $size - Breakpoint to use. **Must be a breakpoint defined in `$breakpoints`.**
7
+ @mixin show-for($size) {
8
+ $size: map-get($breakpoints, $size);
9
+ $size: -zf-bp-to-em($size) - (1/16);
10
+
11
+ @include breakpoint($size down) {
12
+ display: none !important;
13
+ }
14
+ }
15
+
16
+ /// Hide an element by default, only displaying it within a certain breakpoint.
17
+ /// @param {Keyword} $size - Breakpoint to use. **Must be a breakpoint defined in `$breakpoints`.**
18
+ @mixin show-for-only($size) {
19
+ $lower-bound-size: map-get($breakpoints, $size);
20
+ $upper-bound-size: -zf-map-next($breakpoints, $size);
21
+
22
+ // more often than not this will be correct, just one time round the loop it won't so set in scope here
23
+ $lower-bound: -zf-bp-to-em($lower-bound-size) - (1/16);
24
+ // test actual lower-bound-size, if 0 set it to 0em
25
+ @if $lower-bound-size == 0 {
26
+ $lower-bound: -zf-bp-to-em($lower-bound-size);
27
+ }
28
+
29
+ @if $upper-bound-size == null {
30
+ @media screen and (max-width: $lower-bound) {
31
+ display: none !important;
32
+ }
33
+ }
34
+ @else {
35
+ $upper-bound: -zf-bp-to-em($upper-bound-size);
36
+ @media screen and (max-width: $lower-bound), screen and (min-width: $upper-bound) {
37
+ display: none !important;
38
+ }
39
+ }
40
+ }
41
+
42
+
43
+ /// Show an element by default, and hide it above a certain screen size.
44
+ /// @param {Keyword} $size - Breakpoint to use. **Must be a breakpoint defined in `$breakpoints`.**
45
+ @mixin hide-for($size) {
46
+ @include breakpoint($size) {
47
+ display: none !important;
48
+ }
49
+ }
50
+
51
+ /// Show an element by default, and hide it above a certain screen size.
52
+ /// @param {Keyword} $size - Breakpoint to use. **Must be a breakpoint defined in `$breakpoints`.**
53
+ @mixin hide-for-only($size) {
54
+ @include breakpoint($size only) {
55
+ display: none !important;
56
+ }
57
+ }
58
+
59
+ @mixin foundation-visibility-classes {
60
+ // Basic hiding classes
61
+ .hide {
62
+ display: none !important;
63
+ }
64
+
65
+ .invisible {
66
+ visibility: hidden;
67
+ }
68
+
69
+ // Responsive visibility classes
70
+ @each $size in $breakpoint-classes {
71
+ @if $size != small {
72
+ .hide-for-#{$size} {
73
+ @include hide-for($size);
74
+ }
75
+
76
+ .show-for-#{$size} {
77
+ @include show-for($size);
78
+ }
79
+ }
80
+
81
+ .hide-for-#{$size}-only {
82
+ @include hide-for-only($size);
83
+ }
84
+
85
+ .show-for-#{$size}-only {
86
+ @include show-for-only($size);
87
+ }
88
+ }
89
+
90
+ // Screen reader visibility classes
91
+ // Need a "hide-for-sr" class? Add aria-hidden="true" to the element
92
+ .show-for-sr,
93
+ .show-on-focus {
94
+ @include element-invisible;
95
+ }
96
+
97
+ // Only display the element when it's focused
98
+ .show-on-focus {
99
+ &:active,
100
+ &:focus {
101
+ @include element-invisible-off;
102
+ }
103
+ }
104
+
105
+ // Landscape and portrait visibility
106
+ .show-for-landscape,
107
+ .hide-for-portrait {
108
+ display: block !important;
109
+
110
+ @include breakpoint(landscape) {
111
+ display: block !important;
112
+ }
113
+
114
+ @include breakpoint(portrait) {
115
+ display: none !important;
116
+ }
117
+ }
118
+
119
+ .hide-for-landscape,
120
+ .show-for-portrait {
121
+ display: none !important;
122
+
123
+ @include breakpoint(landscape) {
124
+ display: none !important;
125
+ }
126
+
127
+ @include breakpoint(portrait) {
128
+ display: block !important;
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,36 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group forms
7
+ ////
8
+
9
+ @mixin foundation-form-checkbox {
10
+ [type="file"],
11
+ [type="checkbox"],
12
+ [type="radio"] {
13
+ margin: 0 0 $form-spacing;
14
+ }
15
+
16
+ // Styles for input/label siblings
17
+ [type="checkbox"] + label,
18
+ [type="radio"] + label {
19
+ display: inline-block;
20
+ margin-#{$global-left}: $form-spacing * 0.5;
21
+ margin-#{$global-right}: $form-spacing;
22
+ margin-bottom: 0;
23
+ vertical-align: baseline;
24
+ }
25
+
26
+ // Styles for inputs inside labels
27
+ label > [type="checkbox"],
28
+ label > [type="label"] {
29
+ margin-#{$global-right}: $form-spacing * 0.5;
30
+ }
31
+
32
+ // Normalize file input width
33
+ [type="file"] {
34
+ width: 100%;
35
+ }
36
+ }
@@ -0,0 +1,81 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group abide
7
+ ////
8
+
9
+ /// Sets if error styles should be added to inputs.
10
+ /// @type Boolean
11
+ $abide-inputs: true !default;
12
+
13
+ /// Sets if error styles should be added to labels.
14
+ /// @type Boolean
15
+ $abide-labels: true !default;
16
+
17
+ /// Background color to use for invalid text inputs.
18
+ /// @type Color
19
+ $input-background-invalid: $alert-color !default;
20
+
21
+ /// Color to use for labels of invalid inputs.
22
+ /// @type Color
23
+ $form-label-color-invalid: $alert-color !default;
24
+
25
+ /// Default font color for form error text.
26
+ /// @type Color
27
+ $input-error-color: $alert-color !default;
28
+
29
+ /// Default font size for form error text.
30
+ /// @type Number
31
+ $input-error-font-size: rem-calc(12) !default;
32
+
33
+ /// Default font weight for form error text.
34
+ /// @type Keyword
35
+ $input-error-font-weight: $global-weight-bold !default;
36
+
37
+ /// Styles the background and border of an input field to have an error state.
38
+ /// @param {Color} $background [$alert-color] - Color to use for the background and border.
39
+ @mixin form-input-error(
40
+ $background: $alert-color
41
+ ) {
42
+ &:not(:focus) {
43
+ background-color: rgba($background, 0.1);
44
+ border-color: $background;
45
+ }
46
+ }
47
+
48
+ /// Adds error styles to a form element, using the values in the settings file.
49
+ @mixin form-error {
50
+ display: none;
51
+ margin-top: $form-spacing * -0.5;
52
+ margin-bottom: $form-spacing;
53
+ font-size: $input-error-font-size;
54
+ font-weight: $input-error-font-weight;
55
+ color: $input-error-color;
56
+ }
57
+
58
+ @mixin foundation-form-error {
59
+ @if $abide-inputs {
60
+ // Error class for invalid inputs
61
+ .is-invalid-input {
62
+ @include form-input-error;
63
+ }
64
+ }
65
+
66
+ @if $abide-labels {
67
+ // Error class for labels of invalid outputs
68
+ .is-invalid-label {
69
+ color: $form-label-color-invalid;
70
+ }
71
+ }
72
+
73
+ // Form error element
74
+ .form-error {
75
+ @include form-error;
76
+
77
+ &.is-visible {
78
+ display: block;
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,53 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group forms
7
+ ////
8
+
9
+ /// Default border around custom fieldsets.
10
+ /// @type Border
11
+ $fieldset-border: 1px solid $medium-gray !default;
12
+
13
+ /// Default padding inside custom fieldsets.
14
+ /// @type Number
15
+ $fieldset-padding: rem-calc(20) !default;
16
+
17
+ /// Default margin around custom fieldsets.
18
+ /// @type Number
19
+ $fieldset-margin: rem-calc(18 0) !default;
20
+
21
+ /// Default padding between the legend text and fieldset border.
22
+ /// @type Number
23
+ $legend-padding: rem-calc(0 3) !default;
24
+
25
+ @mixin fieldset {
26
+ border: $fieldset-border;
27
+ padding: $fieldset-padding;
28
+ margin: $fieldset-margin;
29
+
30
+ legend {
31
+ // Covers up the fieldset's border to create artificial padding
32
+ background: $body-background;
33
+ padding: $legend-padding;
34
+ margin: 0;
35
+ margin-#{$global-left}: rem-calc(-3);
36
+ }
37
+ }
38
+
39
+ @mixin foundation-form-fieldset {
40
+ fieldset {
41
+ border: 0;
42
+ padding: 0;
43
+ margin: 0;
44
+ }
45
+
46
+ legend {
47
+ margin-bottom: $form-spacing * 0.5;
48
+ }
49
+
50
+ .fieldset {
51
+ @include fieldset;
52
+ }
53
+ }