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,408 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import "global";
6
-
7
- //
8
- // Foundation Visibility Classes
9
- //
10
- $include-html-visibility-classes: $include-html-classes !default;
11
- $include-accessibility-classes: true !default;
12
- $include-table-visibility-classes: true !default;
13
- $include-legacy-visibility-classes: true !default;
14
-
15
- //
16
- // Media Class Names
17
- //
18
- // Visibility Breakpoints
19
- $visibility-breakpoint-sizes:
20
- small,
21
- medium,
22
- large,
23
- xlarge,
24
- xxlarge;
25
-
26
- $visibility-breakpoint-queries:
27
- unquote($small-up),
28
- unquote($medium-up),
29
- unquote($large-up),
30
- unquote($xlarge-up),
31
- unquote($xxlarge-up);
32
-
33
- @mixin visibility-loop {
34
- @each $current-visibility-breakpoint in $visibility-breakpoint-sizes {
35
- $visibility-inherit-list: ();
36
- $visibility-none-list: ();
37
-
38
- $visibility-visible-list: ();
39
- $visibility-hidden-list: ();
40
-
41
- $visibility-table-list: ();
42
- $visibility-table-header-group-list: ();
43
- $visibility-table-row-group-list: ();
44
- $visibility-table-row-list: ();
45
- $visibility-table-cell-list: ();
46
-
47
- @each $visibility-comparison-breakpoint in $visibility-breakpoint-sizes {
48
- @if index($visibility-breakpoint-sizes, $visibility-comparison-breakpoint) < index($visibility-breakpoint-sizes, $current-visibility-breakpoint) {
49
- // Smaller than current breakpoint
50
-
51
- $visibility-inherit-list: append($visibility-inherit-list, unquote(
52
- '.hide-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
53
- ), comma);
54
- $visibility-none-list: append($visibility-none-list, unquote(
55
- '.show-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
56
- ), comma);
57
- $visibility-visible-list: append($visibility-visible-list, unquote(
58
- '.hidden-for-#{$visibility-comparison-breakpoint}-only, .visible-for-#{$visibility-comparison-breakpoint}-up'
59
- ), comma);
60
- $visibility-hidden-list: append($visibility-hidden-list, unquote(
61
- '.visible-for-#{$visibility-comparison-breakpoint}-only, .hidden-for-#{$visibility-comparison-breakpoint}-up'
62
- ), comma);
63
- $visibility-table-list: append($visibility-table-list, unquote(
64
- 'table.hide-for-#{$visibility-comparison-breakpoint}-only, table.show-for-#{$visibility-comparison-breakpoint}-up'
65
- ), comma);
66
- $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
67
- 'thead.hide-for-#{$visibility-comparison-breakpoint}-only, thead.show-for-#{$visibility-comparison-breakpoint}-up'
68
- ), comma);
69
- $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
70
- 'tbody.hide-for-#{$visibility-comparison-breakpoint}-only, tbody.show-for-#{$visibility-comparison-breakpoint}-up'
71
- ), comma);
72
- $visibility-table-row-list: append($visibility-table-row-list, unquote(
73
- 'tr.hide-for-#{$visibility-comparison-breakpoint}-only, tr.show-for-#{$visibility-comparison-breakpoint}-up'
74
- ), comma);
75
- $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
76
- 'th.hide-for-#{$visibility-comparison-breakpoint}-only, td.hide-for-#{$visibility-comparison-breakpoint}-only, th.show-for-#{$visibility-comparison-breakpoint}-up, td.show-for-#{$visibility-comparison-breakpoint}-up'
77
- ), comma);
78
-
79
- // Foundation 4 compatibility:
80
- // Include .show/hide-for-[size] and .show/hide-for-[size]-down classes
81
- // for small, medium, and large breakpoints only
82
- @if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false {
83
- $visibility-inherit-list: append($visibility-inherit-list, unquote(
84
- '.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
85
- ), comma);
86
- $visibility-none-list: append($visibility-none-list, unquote(
87
- '.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
88
- ), comma);
89
- $visibility-visible-list: append($visibility-visible-list, unquote(
90
- '.hidden-for-#{$visibility-comparison-breakpoint}, .hidden-for-#{$visibility-comparison-breakpoint}-down'
91
- ), comma);
92
- $visibility-hidden-list: append($visibility-hidden-list, unquote(
93
- '.visible-for-#{$visibility-comparison-breakpoint}, .visible-for-#{$visibility-comparison-breakpoint}-down'
94
- ), comma);
95
- $visibility-table-list: append($visibility-table-list, unquote(
96
- 'table.hide-for-#{$visibility-comparison-breakpoint}, table.hide-for-#{$visibility-comparison-breakpoint}-down'
97
- ), comma);
98
- $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
99
- 'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.hide-for-#{$visibility-comparison-breakpoint}-down'
100
- ), comma);
101
- $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
102
- 'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.hide-for-#{$visibility-comparison-breakpoint}-down'
103
- ), comma);
104
- $visibility-table-row-list: append($visibility-table-row-list, unquote(
105
- 'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.hide-for-#{$visibility-comparison-breakpoint}-down'
106
- ), comma);
107
- $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
108
- 'th.hide-for-#{$visibility-comparison-breakpoint}, td.hide-for-#{$visibility-comparison-breakpoint}, th.hide-for-#{$visibility-comparison-breakpoint}-down, td.hide-for-#{$visibility-comparison-breakpoint}-down'
109
- ), comma);
110
- }
111
-
112
- } @else if index($visibility-breakpoint-sizes, $visibility-comparison-breakpoint) > index($visibility-breakpoint-sizes, $current-visibility-breakpoint) {
113
- // Larger than current breakpoint
114
-
115
- $visibility-inherit-list: append($visibility-inherit-list, unquote(
116
- '.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
117
- ), comma);
118
- $visibility-none-list: append($visibility-none-list, unquote(
119
- '.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
120
- ), comma);
121
- $visibility-visible-list: append($visibility-visible-list, unquote(
122
- '.hidden-for-#{$visibility-comparison-breakpoint}-only, .hidden-for-#{$visibility-comparison-breakpoint}-up'
123
- ), comma);
124
- $visibility-hidden-list: append($visibility-hidden-list, unquote(
125
- '.visible-for-#{$visibility-comparison-breakpoint}-only, .visible-for-#{$visibility-comparison-breakpoint}-up'
126
- ), comma);
127
- $visibility-table-list: append($visibility-table-list, unquote(
128
- 'table.hide-for-#{$visibility-comparison-breakpoint}-only, table.hide-for-#{$visibility-comparison-breakpoint}-up'
129
- ), comma);
130
- $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
131
- 'thead.hide-for-#{$visibility-comparison-breakpoint}-only, thead.hide-for-#{$visibility-comparison-breakpoint}-up'
132
- ), comma);
133
- $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
134
- 'tbody.hide-for-#{$visibility-comparison-breakpoint}-only, tbody.hide-for-#{$visibility-comparison-breakpoint}-up'
135
- ), comma);
136
- $visibility-table-row-list: append($visibility-table-row-list, unquote(
137
- 'tr.hide-for-#{$visibility-comparison-breakpoint}-only, tr.hide-for-#{$visibility-comparison-breakpoint}-up'
138
- ), comma);
139
- $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
140
- 'th.hide-for-#{$visibility-comparison-breakpoint}-only, td.hide-for-#{$visibility-comparison-breakpoint}-only, th.hide-for-#{$visibility-comparison-breakpoint}-up, td.hide-for-#{$visibility-comparison-breakpoint}-up'
141
- ), comma);
142
-
143
- // Foundation 4 compatibility:
144
- // Include .show/hide-for-[size] and .show/hide-for-[size]-down classes
145
- // for small, medium, and large breakpoints only
146
- @if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false {
147
- $visibility-inherit-list: append($visibility-inherit-list, unquote(
148
- '.hide-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
149
- ), comma);
150
- $visibility-none-list: append($visibility-none-list, unquote(
151
- '.show-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
152
- ), comma);
153
- $visibility-visible-list: append($visibility-visible-list, unquote(
154
- '.hidden-for-#{$visibility-comparison-breakpoint}, .visible-for-#{$visibility-comparison-breakpoint}-down'
155
- ), comma);
156
- $visibility-hidden-list: append($visibility-hidden-list, unquote(
157
- '.visible-for-#{$visibility-comparison-breakpoint}, .hidden-for-#{$visibility-comparison-breakpoint}-down'
158
- ), comma);
159
- $visibility-table-list: append($visibility-table-list, unquote(
160
- 'table.hide-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down'
161
- ), comma);
162
- $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
163
- 'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down'
164
- ), comma);
165
- $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
166
- 'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down'
167
- ), comma);
168
- $visibility-table-row-list: append($visibility-table-row-list, unquote(
169
- 'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down'
170
- ), comma);
171
- $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
172
- 'th.hide-for-#{$visibility-comparison-breakpoint}, td.hide-for-#{$visibility-comparison-breakpoint}, th.show-for-#{$visibility-comparison-breakpoint}-down, td.show-for-#{$visibility-comparison-breakpoint}-down'
173
- ), comma);
174
- }
175
-
176
- } @else {
177
- // Current breakpoint
178
-
179
- $visibility-inherit-list: append($visibility-inherit-list, unquote(
180
- '.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
181
- ), comma);
182
- $visibility-none-list: append($visibility-none-list, unquote(
183
- '.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
184
- ), comma);
185
- $visibility-visible-list: append($visibility-visible-list, unquote(
186
- '.visible-for-#{$visibility-comparison-breakpoint}-only, .visible-for-#{$visibility-comparison-breakpoint}-up'
187
- ), comma);
188
- $visibility-hidden-list: append($visibility-hidden-list, unquote(
189
- '.hidden-for-#{$visibility-comparison-breakpoint}-only, .hidden-for-#{$visibility-comparison-breakpoint}-up'
190
- ), comma);
191
- $visibility-table-list: append($visibility-table-list, unquote(
192
- 'table.show-for-#{$visibility-comparison-breakpoint}-only, table.show-for-#{$visibility-comparison-breakpoint}-up'
193
- ), comma);
194
- $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
195
- 'thead.show-for-#{$visibility-comparison-breakpoint}-only, thead.show-for-#{$visibility-comparison-breakpoint}-up'
196
- ), comma);
197
- $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
198
- 'tbody.show-for-#{$visibility-comparison-breakpoint}-only, tbody.show-for-#{$visibility-comparison-breakpoint}-up'
199
- ), comma);
200
- $visibility-table-row-list: append($visibility-table-row-list, unquote(
201
- 'tr.show-for-#{$visibility-comparison-breakpoint}-only, tr.show-for-#{$visibility-comparison-breakpoint}-up'
202
- ), comma);
203
- $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
204
- 'th.show-for-#{$visibility-comparison-breakpoint}-only, td.show-for-#{$visibility-comparison-breakpoint}-only, th.show-for-#{$visibility-comparison-breakpoint}-up, td.show-for-#{$visibility-comparison-breakpoint}-up'
205
- ), comma);
206
-
207
- // Foundation 4 compatibility:
208
- // Include .show/hide-for-[size] and .show/hide-for-[size]-down classes
209
- // for small, medium, and large breakpoints only
210
- @if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false {
211
- $visibility-inherit-list: append($visibility-inherit-list, unquote(
212
- '.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
213
- ), comma);
214
- $visibility-none-list: append($visibility-none-list, unquote(
215
- '.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
216
- ), comma);
217
- $visibility-visible-list: append($visibility-visible-list, unquote(
218
- '.visible-for-#{$visibility-comparison-breakpoint}, .visible-for-#{$visibility-comparison-breakpoint}-down'
219
- ), comma);
220
- $visibility-hidden-list: append($visibility-hidden-list, unquote(
221
- '.hidden-for-#{$visibility-comparison-breakpoint}, .hidden-for-#{$visibility-comparison-breakpoint}-down'
222
- ), comma);
223
- $visibility-table-list: append($visibility-table-list, unquote(
224
- 'table.show-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down'
225
- ), comma);
226
- $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
227
- 'thead.show-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down'
228
- ), comma);
229
- $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
230
- 'tbody.show-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down'
231
- ), comma);
232
- $visibility-table-row-list: append($visibility-table-row-list, unquote(
233
- 'tr.show-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down'
234
- ), comma);
235
- $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
236
- 'th.show-for-#{$visibility-comparison-breakpoint}, td.show-for-#{$visibility-comparison-breakpoint}, th.show-for-#{$visibility-comparison-breakpoint}-down, td.show-for-#{$visibility-comparison-breakpoint}-down'
237
- ), comma);
238
- }
239
- }
240
- }
241
-
242
- /* #{$current-visibility-breakpoint} displays */
243
- @media #{nth($visibility-breakpoint-queries, index($visibility-breakpoint-sizes, $current-visibility-breakpoint))} {
244
- #{$visibility-inherit-list} {
245
- display: inherit !important;
246
- }
247
- #{$visibility-none-list} {
248
- display: none !important;
249
- }
250
- @if $include-accessibility-classes != false {
251
- #{$visibility-visible-list} {
252
- @include element-invisible-off;
253
- }
254
- #{$visibility-hidden-list} {
255
- @include element-invisible;
256
- }
257
- }
258
- @if $include-table-visibility-classes != false {
259
- #{$visibility-table-list} {
260
- display: table !important;
261
- }
262
- #{$visibility-table-header-group-list} {
263
- display: table-header-group !important;
264
- }
265
- #{$visibility-table-row-group-list} {
266
- display: table-row-group !important;
267
- }
268
- #{$visibility-table-row-list} {
269
- display: table-row !important;
270
- }
271
- #{$visibility-table-cell-list} {
272
- display: table-cell !important;
273
- }
274
- }
275
- }
276
- }
277
- }
278
-
279
-
280
- @if $include-html-visibility-classes != false {
281
-
282
- @include visibility-loop;
283
-
284
- /* Orientation targeting */
285
- .show-for-landscape,
286
- .hide-for-portrait { display: inherit !important; }
287
- .hide-for-landscape,
288
- .show-for-portrait { display: none !important; }
289
-
290
- /* Specific visibility for tables */
291
- table {
292
- &.hide-for-landscape,
293
- &.show-for-portrait { display: table !important; }
294
- }
295
- thead {
296
- &.hide-for-landscape,
297
- &.show-for-portrait { display: table-header-group !important; }
298
- }
299
- tbody {
300
- &.hide-for-landscape,
301
- &.show-for-portrait { display: table-row-group !important; }
302
- }
303
- tr {
304
- &.hide-for-landscape,
305
- &.show-for-portrait { display: table-row !important; }
306
- }
307
- td,
308
- th {
309
- &.hide-for-landscape,
310
- &.show-for-portrait { display: table-cell !important; }
311
- }
312
-
313
- @media #{$landscape} {
314
- .show-for-landscape,
315
- .hide-for-portrait { display: inherit !important; }
316
- .hide-for-landscape,
317
- .show-for-portrait { display: none !important; }
318
-
319
- /* Specific visibility for tables */
320
- table {
321
- &.show-for-landscape,
322
- &.hide-for-portrait { display: table !important; }
323
- }
324
- thead {
325
- &.show-for-landscape,
326
- &.hide-for-portrait { display: table-header-group !important; }
327
- }
328
- tbody {
329
- &.show-for-landscape,
330
- &.hide-for-portrait { display: table-row-group !important; }
331
- }
332
- tr {
333
- &.show-for-landscape,
334
- &.hide-for-portrait { display: table-row !important; }
335
- }
336
- td,
337
- th {
338
- &.show-for-landscape,
339
- &.hide-for-portrait { display: table-cell !important; }
340
- }
341
- }
342
-
343
- @media #{$portrait} {
344
- .show-for-portrait,
345
- .hide-for-landscape { display: inherit !important; }
346
- .hide-for-portrait,
347
- .show-for-landscape { display: none !important; }
348
-
349
- /* Specific visibility for tables */
350
- table {
351
- &.show-for-portrait,
352
- &.hide-for-landscape { display: table !important; }
353
- }
354
- thead {
355
- &.show-for-portrait,
356
- &.hide-for-landscape { display: table-header-group !important; }
357
- }
358
- tbody {
359
- &.show-for-portrait,
360
- &.hide-for-landscape { display: table-row-group !important; }
361
- }
362
- tr {
363
- &.show-for-portrait,
364
- &.hide-for-landscape { display: table-row !important; }
365
- }
366
- td,
367
- th {
368
- &.show-for-portrait,
369
- &.hide-for-landscape { display: table-cell !important; }
370
- }
371
- }
372
-
373
- /* Touch-enabled device targeting */
374
- .show-for-touch { display: none !important; }
375
- .hide-for-touch { display: inherit !important; }
376
- .touch .show-for-touch { display: inherit !important; }
377
- .touch .hide-for-touch { display: none !important; }
378
-
379
- /* Specific visibility for tables */
380
- table.hide-for-touch { display: table !important; }
381
- .touch table.show-for-touch { display: table !important; }
382
- thead.hide-for-touch { display: table-header-group !important; }
383
- .touch thead.show-for-touch { display: table-header-group !important; }
384
- tbody.hide-for-touch { display: table-row-group !important; }
385
- .touch tbody.show-for-touch { display: table-row-group !important; }
386
- tr.hide-for-touch { display: table-row !important; }
387
- .touch tr.show-for-touch { display: table-row !important; }
388
- td.hide-for-touch { display: table-cell !important; }
389
- .touch td.show-for-touch { display: table-cell !important; }
390
- th.hide-for-touch { display: table-cell !important; }
391
- .touch th.show-for-touch { display: table-cell !important; }
392
-
393
-
394
- /* Print visibility */
395
- @media print {
396
- .show-for-print { display: block; }
397
- .hide-for-print { display: none; }
398
-
399
- table.show-for-print { display: table !important; }
400
- thead.show-for-print { display: table-header-group !important; }
401
- tbody.show-for-print { display: table-row-group !important; }
402
- tr.show-for-print { display: table-row !important; }
403
- td.show-for-print { display: table-cell !important; }
404
- th.show-for-print { display: table-cell !important; }
405
-
406
- }
407
-
408
- }