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
@@ -1,685 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import "global";
6
- @import "grid";
7
- @import "buttons";
8
- @import "forms";
9
-
10
- //
11
- // Top Bar Variables
12
- //
13
- $include-html-top-bar-classes: $include-html-classes !default;
14
-
15
- // Background color for the top bar
16
- $topbar-bg-color: $oil !default;
17
- $topbar-bg: $topbar-bg-color !default;
18
-
19
- // Height and margin
20
- $topbar-height: 45px !default;
21
- $topbar-margin-bottom: 0 !default;
22
-
23
- // Controlling the styles for the title in the top bar
24
- $topbar-title-weight: $font-weight-normal !default;
25
- $topbar-title-font-size: rem-calc(17) !default;
26
-
27
- // Set the link colors and styles for top-level nav
28
- $topbar-link-color: $white !default;
29
- $topbar-link-color-hover: $white !default;
30
- $topbar-link-color-active: $white !default;
31
- $topbar-link-color-active-hover: $white !default;
32
- $topbar-link-weight: $font-weight-normal !default;
33
- $topbar-link-font-size: rem-calc(13) !default;
34
- $topbar-link-hover-lightness: -10% !default; // Darken by 10%
35
- $topbar-link-bg: $topbar-bg !default;
36
- $topbar-link-bg-hover: #272727 !default;
37
- $topbar-link-bg-color-hover: $charcoal !default;
38
- $topbar-link-bg-active: $primary-color !default;
39
- $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default;
40
- $topbar-link-font-family: $body-font-family !default;
41
- $topbar-link-text-transform: none !default;
42
- $topbar-link-padding: $topbar-height / 3 !default;
43
- $topbar-back-link-size: rem-calc(18) !default;
44
- $topbar-link-dropdown-padding: 20px !default;
45
- $topbar-button-font-size: 0.75rem !default;
46
- $topbar-button-top: 7px !default;
47
-
48
- // Style the top bar dropdown elements
49
- $topbar-dropdown-bg: $oil !default;
50
- $topbar-dropdown-link-color: $white !default;
51
- $topbar-dropdown-link-color-hover: $topbar-link-color-hover !default;
52
- $topbar-dropdown-link-bg: $oil !default;
53
- $topbar-dropdown-link-weight: $font-weight-normal !default;
54
- $topbar-dropdown-toggle-size: 5px !default;
55
- $topbar-dropdown-toggle-color: $white !default;
56
- $topbar-dropdown-toggle-alpha: 0.4 !default;
57
-
58
- $topbar-dropdown-label-color: $monsoon !default;
59
- $topbar-dropdown-label-text-transform: uppercase !default;
60
- $topbar-dropdown-label-font-weight: $font-weight-bold !default;
61
- $topbar-dropdown-label-font-size: rem-calc(10) !default;
62
- $topbar-dropdown-label-bg: $oil !default;
63
-
64
- // Top menu icon styles
65
- $topbar-menu-link-transform: uppercase !default;
66
- $topbar-menu-link-font-size: rem-calc(13) !default;
67
- $topbar-menu-link-weight: $font-weight-bold !default;
68
- $topbar-menu-link-color: $white !default;
69
- $topbar-menu-icon-color: $white !default;
70
- $topbar-menu-link-color-toggled: $jumbo !default;
71
- $topbar-menu-icon-color-toggled: $jumbo !default;
72
-
73
- // Transitions and breakpoint styles
74
- $topbar-transition-speed: 300ms !default;
75
- // Using rem-calc for the below breakpoint causes issues with top bar
76
- $topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout
77
- $topbar-media-query: $medium-up !default;
78
-
79
- // Divider Styles
80
- $topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%) !default;
81
- $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%) !default;
82
-
83
- // Sticky Class
84
- $topbar-sticky-class: ".sticky" !default;
85
- $topbar-arrows: true !default; //Set false to remove the triangle icon from the menu item
86
- $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text from dropdown subnavigation li
87
-
88
- // Accessibility mixins for hiding and showing the menu dropdown items
89
- @mixin topbar-hide-dropdown {
90
- // Makes an element visually hidden by default, but visible when focused.
91
- display: block;
92
- @include element-invisible();
93
- }
94
-
95
- @mixin topbar-show-dropdown {
96
- display: block;
97
- @include element-invisible-off();
98
- position: absolute !important; // Reset the position from static to absolute
99
- }
100
-
101
- @include exports("top-bar") {
102
-
103
- @if $include-html-top-bar-classes {
104
-
105
- // Used to provide media query values for javascript components.
106
- // This class is generated despite the value of $include-html-top-bar-classes
107
- // to ensure width calculations work correctly.
108
- meta.foundation-mq-topbar {
109
- font-family: "/" + unquote($topbar-media-query) + "/";
110
- width: $topbar-breakpoint;
111
- }
112
-
113
- /* Wrapped around .top-bar to contain to grid width */
114
- .contain-to-grid {
115
- width: 100%;
116
- background: $topbar-bg;
117
-
118
- .top-bar { margin-bottom: $topbar-margin-bottom; }
119
- }
120
-
121
- // Wrapped around .top-bar to make it stick to the top
122
- .fixed {
123
- width: 100%;
124
- #{$default-float}: 0;
125
- position: fixed;
126
- top: 0;
127
- z-index: 99;
128
-
129
- &.expanded:not(.top-bar) {
130
- overflow-y: auto;
131
- height: auto;
132
- width: 100%;
133
- max-height: 100%;
134
-
135
- .title-area {
136
- position: fixed;
137
- width: 100%;
138
- z-index: 99;
139
- }
140
- // Ensure you can scroll the menu on small screens
141
- .top-bar-section {
142
- z-index: 98;
143
- margin-top: $topbar-height;
144
- }
145
- }
146
- }
147
-
148
- .top-bar {
149
- overflow: hidden;
150
- height: $topbar-height;
151
- line-height: $topbar-height;
152
- position: relative;
153
- background: $topbar-bg;
154
- margin-bottom: $topbar-margin-bottom;
155
-
156
- // Topbar Global list Styles
157
- ul {
158
- margin-bottom: 0;
159
- list-style: none;
160
- }
161
-
162
- .row { max-width: none; }
163
-
164
- form,
165
- input { margin-bottom: 0; }
166
-
167
- input { height: 1.8rem; padding-top: .35rem; padding-bottom: .35rem; font-size: $topbar-button-font-size; }
168
-
169
- .button, button {
170
- padding-top: .35rem + rem-calc(1);
171
- padding-bottom: .35rem + rem-calc(1);
172
- margin-bottom: 0;
173
- font-size: $topbar-button-font-size;
174
- // position: relative;
175
- // top: -1px;
176
-
177
- // Corrects a slight misalignment when put next to an input field
178
- @media #{$small-only} {
179
- position: relative;
180
- top: -1px;
181
- }
182
- }
183
-
184
- // Title Area
185
- .title-area {
186
- position: relative;
187
- margin: 0;
188
- }
189
-
190
- .name {
191
- height: $topbar-height;
192
- margin: 0;
193
- font-size: $rem-base;
194
-
195
- h1 {
196
- line-height: $topbar-height;
197
- font-size: $topbar-title-font-size;
198
- margin: 0;
199
- a {
200
- font-weight: $topbar-title-weight;
201
- color: $topbar-link-color;
202
- width: 75%;
203
- display: block;
204
- padding: 0 $topbar-link-padding;
205
- }
206
- }
207
- }
208
-
209
- // Menu toggle button on small devices
210
- .toggle-topbar {
211
- position: absolute;
212
- #{$opposite-direction}: 0;
213
- top: 0;
214
-
215
- a {
216
- color: $topbar-link-color;
217
- text-transform: $topbar-menu-link-transform;
218
- font-size: $topbar-menu-link-font-size;
219
- font-weight: $topbar-menu-link-weight;
220
- position: relative;
221
- display: block;
222
- padding: 0 $topbar-link-padding;
223
- height: $topbar-height;
224
- line-height: $topbar-height;
225
- }
226
-
227
- // Adding the class "menu-icon" will add the 3-line icon people love and adore.
228
- &.menu-icon {
229
- top: 50%;
230
- margin-top: -16px;
231
-
232
- a {
233
- @if $text-direction == rtl {
234
- text-indent: -58px;
235
- }
236
- height: 34px;
237
- line-height: 33px;
238
- padding: 0 $topbar-link-padding+25 0 $topbar-link-padding;
239
- color: $topbar-menu-link-color;
240
- position: relative;
241
-
242
- & {
243
- // @include hamburger icon
244
- //
245
- // We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon
246
- // $width - Width of hamburger icon
247
- // $left - If false, icon will be centered horizontally || explicitly set value in rem
248
- // $top - If false, icon will be centered vertically || explicitly set value in rem
249
- // $thickness - thickness of lines in hamburger icon, set value in px
250
- // $gap - spacing between the lines in hamburger icon, set value in px
251
- // $color - icon color
252
- // $hover-color - icon color during hover, here it isn't set b/c it would override $topbar-menu-icon-color-toggled
253
- // $offcanvas - Set to false of @include in topbar
254
- @include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, "", false);
255
- }
256
- }
257
- }
258
- }
259
-
260
- // Change things up when the top-bar is expanded
261
- &.expanded {
262
- height: auto;
263
- background: transparent;
264
-
265
- .title-area { background: $topbar-bg; }
266
-
267
- .toggle-topbar {
268
- a { color: $topbar-menu-link-color-toggled;
269
- span::after {
270
- // Shh, don't tell, but box-shadows create the menu icon :)
271
- // Change the color of the bars when the menu is expanded, using given thickness from hamburger() above
272
- box-shadow: 0 0px 0 1px $topbar-menu-icon-color-toggled,
273
- 0 7px 0 1px $topbar-menu-icon-color-toggled,
274
- 0 14px 0 1px $topbar-menu-icon-color-toggled;
275
- }
276
- }
277
- }
278
- }
279
- }
280
-
281
- // Right and Left Navigation that stacked by default
282
- .top-bar-section {
283
- #{$default-float}: 0;
284
- position: relative;
285
- width: auto;
286
- @include single-transition($default-float, $topbar-transition-speed);
287
-
288
- ul {
289
- padding: 0;
290
- width: 100%;
291
- height: auto;
292
- display: block;
293
- font-size: $rem-base;
294
- margin: 0;
295
- }
296
-
297
- .divider,
298
- [role="separator"] {
299
- border-top: $topbar-divider-border-top;
300
- clear: both;
301
- height: 1px;
302
- width: 100%;
303
- }
304
-
305
- ul li {
306
- background: $topbar-dropdown-bg;
307
- & > a {
308
- display: block;
309
- width: 100%;
310
- color: $topbar-link-color;
311
- padding: 12px 0 12px 0;
312
- padding-#{$default-float}: $topbar-link-padding;
313
- font-family: $topbar-link-font-family;
314
- font-size: $topbar-link-font-size;
315
- font-weight: $topbar-link-weight;
316
- text-transform: $topbar-link-text-transform;
317
-
318
-
319
- &.button {
320
- font-size: $topbar-link-font-size;
321
- padding-#{$opposite-direction}: $topbar-link-padding;
322
- padding-#{$default-float}: $topbar-link-padding;
323
- @include button-style($bg:$primary-color);
324
- }
325
- &.button.secondary { @include button-style($bg:$secondary-color); }
326
- &.button.success { @include button-style($bg:$success-color); }
327
- &.button.alert { @include button-style($bg:$alert-color); }
328
- &.button.warning { @include button-style($bg:$warning-color); }
329
- }
330
-
331
- > button {
332
- font-size: $topbar-link-font-size;
333
- padding-#{$opposite-direction}: $topbar-link-padding;
334
- padding-#{$default-float}: $topbar-link-padding;
335
- @include button-style($bg:$primary-color);
336
-
337
- &.secondary { @include button-style($bg:$secondary-color); }
338
- &.success { @include button-style($bg:$success-color); }
339
- &.alert { @include button-style($bg:$alert-color); }
340
- &.warning { @include button-style($bg:$warning-color); }
341
- }
342
-
343
- // Apply the hover link color when it has that class
344
- &:hover:not(.has-form) > a {
345
- background-color: $topbar-link-bg-color-hover;
346
- @if ($topbar-link-bg-hover) {
347
- background: $topbar-link-bg-hover;
348
- }
349
- color: $topbar-link-color-hover;
350
-
351
- }
352
-
353
- // Apply the active link color when it has that class
354
- &.active > a {
355
- background: $topbar-link-bg-active;
356
- color: $topbar-link-color-active;
357
- &:hover {
358
- background: $topbar-link-bg-active-hover;
359
- color: $topbar-link-color-active-hover;
360
- }
361
- }
362
- }
363
-
364
- // Add some extra padding for list items contains buttons
365
- .has-form { padding: $topbar-link-padding; }
366
-
367
- // Styling for list items that have a dropdown within them.
368
- .has-dropdown {
369
- position: relative;
370
-
371
- & > a {
372
- &:after {
373
- @if ($topbar-arrows){
374
- @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float);
375
- }
376
- margin-#{$opposite-direction}: $topbar-link-padding;
377
- margin-top: -($topbar-dropdown-toggle-size / 2) - 2;
378
- position: absolute;
379
- top: 50%;
380
- #{$opposite-direction}: 0;
381
- }
382
- }
383
-
384
- &.moved { position: static;
385
- & > .dropdown {
386
- @include topbar-show-dropdown();
387
- width: 100%;
388
- }
389
- & > a:after {
390
- display: none;
391
- }
392
- }
393
- }
394
-
395
- // Styling elements inside of dropdowns
396
- .dropdown {
397
- padding: 0;
398
- position: absolute;
399
- #{$default-float}: 100%;
400
- top: 0;
401
- z-index: 99;
402
- @include topbar-hide-dropdown();
403
-
404
- li {
405
- width: 100%;
406
- height: auto;
407
-
408
- a {
409
- font-weight: $topbar-dropdown-link-weight;
410
- padding: 8px $topbar-link-padding;
411
- &.parent-link {
412
- font-weight: $topbar-link-weight;
413
- }
414
- }
415
-
416
- &.title h5, &.parent-link {
417
- // Back Button
418
- margin-bottom: 0;
419
- margin-top: 0;
420
- font-size: $topbar-back-link-size;
421
- a {
422
- color: $topbar-link-color;
423
- // line-height: $topbar-height / 2;
424
- display: block;
425
- &:hover { background:none; }
426
- }
427
- }
428
- &.has-form { padding: 8px $topbar-link-padding; }
429
- .button, button { top: auto; }
430
- }
431
-
432
- label {
433
- padding: 8px $topbar-link-padding 2px;
434
- margin-bottom: 0;
435
- text-transform: $topbar-dropdown-label-text-transform;
436
- color: $topbar-dropdown-label-color;
437
- font-weight: $topbar-dropdown-label-font-weight;
438
- font-size: $topbar-dropdown-label-font-size;
439
- }
440
- }
441
- }
442
-
443
- .js-generated { display: block; }
444
-
445
-
446
- // Top Bar styles intended for screen sizes above the breakpoint.
447
- @media #{$topbar-media-query} {
448
- .top-bar {
449
- background: $topbar-bg;
450
- @include clearfix;
451
- overflow: visible;
452
-
453
- .toggle-topbar { display: none; }
454
-
455
- .title-area { float: $default-float; }
456
- .name h1 a { width: auto; }
457
-
458
- input,
459
- .button,
460
- button {
461
- font-size: rem-calc(14);
462
- position: relative;
463
- top: $topbar-button-top;
464
- }
465
-
466
- &.expanded { background: $topbar-bg; }
467
- }
468
-
469
- .contain-to-grid .top-bar {
470
- max-width: $row-width;
471
- margin: 0 auto;
472
- margin-bottom: $topbar-margin-bottom;
473
- }
474
-
475
- .top-bar-section {
476
- @include single-transition(none,0,0);
477
- #{$default-float}: 0 !important;
478
-
479
- ul {
480
- width: auto;
481
- height: auto !important;
482
- display: inline;
483
-
484
- li {
485
- float: $default-float;
486
- .js-generated { display: none; }
487
- }
488
- }
489
-
490
- li {
491
- &.hover {
492
- > a:not(.button) {
493
- background-color: $topbar-link-bg-color-hover;
494
- @if ($topbar-link-bg-hover) {
495
- background: $topbar-link-bg-hover;
496
- }
497
- color: $topbar-link-color-hover;
498
- }
499
- }
500
- &:not(.has-form) {
501
- a:not(.button) {
502
- padding: 0 $topbar-link-padding;
503
- line-height: $topbar-height;
504
- background: $topbar-link-bg;
505
- &:hover {
506
- background-color: $topbar-link-bg-color-hover;
507
- @if ($topbar-link-bg-hover) {
508
- background: $topbar-link-bg-hover;
509
- }
510
- }
511
- }
512
- }
513
- &.active:not(.has-form) {
514
- a:not(.button) {
515
- padding: 0 $topbar-link-padding;
516
- line-height: $topbar-height;
517
- color: $topbar-link-color-active;
518
- background: $topbar-link-bg-active;
519
- &:hover {
520
- background: $topbar-link-bg-active-hover;
521
- color: $topbar-link-color-active-hover;
522
- }
523
- }
524
- }
525
- }
526
-
527
- .has-dropdown {
528
-
529
- @if($topbar-arrows){
530
-
531
- & > a {
532
- padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important;
533
- &:after {
534
- @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
535
- margin-top: -($topbar-dropdown-toggle-size / 2);
536
- top: $topbar-height / 2;
537
- }
538
- }
539
-
540
- }
541
-
542
- &.moved { position: relative;
543
- & > .dropdown {
544
- @include topbar-hide-dropdown();
545
- }
546
- }
547
-
548
- &.hover, &.not-click:hover {
549
- & > .dropdown {
550
- @include topbar-show-dropdown();
551
- }
552
- }
553
- > a:focus + .dropdown {
554
- @include topbar-show-dropdown();
555
- }
556
-
557
- .dropdown li.has-dropdown {
558
- & > a {
559
- @if ($topbar-dropdown-arrows){
560
- &:after {
561
- border: none;
562
- content: "\00bb";
563
- top: 1rem;
564
- margin-top: -1px;
565
- #{$opposite-direction}: 5px;
566
- line-height: 1.2;
567
- }
568
- }
569
- }
570
- }
571
-
572
- }
573
-
574
- .dropdown {
575
- #{$default-float}: 0;
576
- top: auto;
577
- background: transparent;
578
- min-width: 100%;
579
-
580
- li {
581
- a {
582
- color: $topbar-dropdown-link-color;
583
- line-height: $topbar-height;
584
- white-space: nowrap;
585
- padding: 12px $topbar-link-padding;
586
- background: $topbar-dropdown-link-bg;
587
- }
588
-
589
- &:not(.has-form):not(.active) {
590
- & > a:not(.button) {
591
- color: $topbar-dropdown-link-color;
592
- background: $topbar-dropdown-link-bg;
593
- }
594
-
595
- &:hover > a:not(.button) {
596
- color: $topbar-dropdown-link-color-hover;
597
- background-color: $topbar-link-bg-color-hover;
598
- @if ($topbar-link-bg-hover) {
599
- background: $topbar-link-bg-hover;
600
- }
601
- }
602
- }
603
-
604
- label {
605
- white-space: nowrap;
606
- background: $topbar-dropdown-label-bg;
607
- }
608
-
609
- // Second Level Dropdowns
610
- .dropdown {
611
- #{$default-float}: 100%;
612
- top: 0;
613
- }
614
- }
615
- }
616
-
617
- & > ul > .divider,
618
- & > ul > [role="separator"] {
619
- border-bottom: none;
620
- border-top: none;
621
- border-#{$opposite-direction}: $topbar-divider-border-bottom;
622
- clear: none;
623
- height: $topbar-height;
624
- width: 0;
625
- }
626
-
627
- .has-form {
628
- background: $topbar-link-bg;
629
- padding: 0 $topbar-height / 3;
630
- height: $topbar-height;
631
- }
632
-
633
- // Position overrides for ul.right and ul.left
634
- .#{$opposite-direction} {
635
- li .dropdown {
636
- #{$default-float}: auto;
637
- #{$opposite-direction}: 0;
638
-
639
- li .dropdown { #{$opposite-direction}: 100%; }
640
- }
641
- }
642
- .#{$default-float} {
643
- li .dropdown {
644
- #{$opposite-direction}: auto;
645
- #{$default-float}: 0;
646
-
647
- li .dropdown { #{$default-float}: 100%; }
648
- }
649
- }
650
- }
651
-
652
- // Degrade gracefully when Javascript is disabled. Displays dropdown and changes
653
- // background & text color on hover.
654
- .no-js .top-bar-section {
655
- ul li {
656
- // Apply the hover link color when it has that class
657
- &:hover > a {
658
- background-color: $topbar-link-bg-color-hover;
659
- @if ($topbar-link-bg-hover) {
660
- background: $topbar-link-bg-hover;
661
- }
662
- color: $topbar-link-color-hover;
663
- }
664
-
665
- // Apply the active link color when it has that class
666
- &:active > a {
667
- background: $topbar-link-bg-active;
668
- color: $topbar-link-color-active;
669
- }
670
- }
671
-
672
- .has-dropdown {
673
- &:hover {
674
- & > .dropdown {
675
- @include topbar-show-dropdown();
676
- }
677
- }
678
- > a:focus + .dropdown {
679
- @include topbar-show-dropdown();
680
- }
681
- }
682
- }
683
- }
684
- }
685
- }