va_common 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +4 -0
  4. data/CODE_OF_CONDUCT.md +13 -0
  5. data/Gemfile +4 -0
  6. data/README.md +66 -0
  7. data/Rakefile +1 -0
  8. data/app/assets/fonts/merriweather-bold-webfont.eot +0 -0
  9. data/app/assets/fonts/merriweather-bold-webfont.svg +294 -0
  10. data/app/assets/fonts/merriweather-bold-webfont.ttf +0 -0
  11. data/app/assets/fonts/merriweather-bold-webfont.woff +0 -0
  12. data/app/assets/fonts/merriweather-bold-webfont.woff2 +0 -0
  13. data/app/assets/fonts/merriweather-italic-webfont.eot +0 -0
  14. data/app/assets/fonts/merriweather-italic-webfont.svg +283 -0
  15. data/app/assets/fonts/merriweather-italic-webfont.ttf +0 -0
  16. data/app/assets/fonts/merriweather-italic-webfont.woff +0 -0
  17. data/app/assets/fonts/merriweather-italic-webfont.woff2 +0 -0
  18. data/app/assets/fonts/merriweather-light-webfont.eot +0 -0
  19. data/app/assets/fonts/merriweather-light-webfont.svg +299 -0
  20. data/app/assets/fonts/merriweather-light-webfont.ttf +0 -0
  21. data/app/assets/fonts/merriweather-light-webfont.woff +0 -0
  22. data/app/assets/fonts/merriweather-light-webfont.woff2 +0 -0
  23. data/app/assets/fonts/merriweather-regular-webfont.eot +0 -0
  24. data/app/assets/fonts/merriweather-regular-webfont.svg +294 -0
  25. data/app/assets/fonts/merriweather-regular-webfont.ttf +0 -0
  26. data/app/assets/fonts/merriweather-regular-webfont.woff +0 -0
  27. data/app/assets/fonts/merriweather-regular-webfont.woff2 +0 -0
  28. data/app/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
  29. data/app/assets/fonts/sourcesanspro-bold-webfont.svg +965 -0
  30. data/app/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
  31. data/app/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
  32. data/app/assets/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
  33. data/app/assets/fonts/sourcesanspro-italic-webfont.eot +0 -0
  34. data/app/assets/fonts/sourcesanspro-italic-webfont.svg +853 -0
  35. data/app/assets/fonts/sourcesanspro-italic-webfont.ttf +0 -0
  36. data/app/assets/fonts/sourcesanspro-italic-webfont.woff +0 -0
  37. data/app/assets/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
  38. data/app/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
  39. data/app/assets/fonts/sourcesanspro-light-webfont.svg +915 -0
  40. data/app/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
  41. data/app/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
  42. data/app/assets/fonts/sourcesanspro-light-webfont.woff2 +0 -0
  43. data/app/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
  44. data/app/assets/fonts/sourcesanspro-regular-webfont.svg +989 -0
  45. data/app/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
  46. data/app/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
  47. data/app/assets/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
  48. data/app/assets/images/design/background/thread.png +0 -0
  49. data/app/assets/images/design/logo/logo-alt-hover.png +0 -0
  50. data/app/assets/images/design/logo/logo-alt.png +0 -0
  51. data/app/assets/images/design/logo/logo-hover.png +0 -0
  52. data/app/assets/images/design/logo/logo-small.png +0 -0
  53. data/app/assets/images/design/logo/logo.png +0 -0
  54. data/app/assets/images/design/logo/og-image.jpg +0 -0
  55. data/app/assets/images/design/seal/seal-footer.png +0 -0
  56. data/app/assets/images/design/seal/seal-footer.svg +1 -0
  57. data/app/assets/images/design/seal/seal.png +0 -0
  58. data/app/assets/images/design/seal/stars.png +0 -0
  59. data/app/assets/images/icons/apple-touch-icon-114x114.png +0 -0
  60. data/app/assets/images/icons/apple-touch-icon-152x152.png +0 -0
  61. data/app/assets/images/icons/apple-touch-icon-72x72.png +0 -0
  62. data/app/assets/images/icons/apple-touch-icon.png +0 -0
  63. data/app/assets/images/icons/favicon.ico +0 -0
  64. data/app/assets/images/icons/va.png +0 -0
  65. data/app/assets/images/icons/watermark.png +0 -0
  66. data/app/assets/images/icons/wrench.png +0 -0
  67. data/app/assets/images/social-icons/png/facebook25.png +0 -0
  68. data/app/assets/images/social-icons/png/rss25.png +0 -0
  69. data/app/assets/images/social-icons/png/twitter16.png +0 -0
  70. data/app/assets/images/social-icons/png/youtube15.png +0 -0
  71. data/app/assets/images/social-icons/svg/facebook25.svg +11 -0
  72. data/app/assets/images/social-icons/svg/rss25.svg +1 -0
  73. data/app/assets/images/social-icons/svg/twitter16.svg +15 -0
  74. data/app/assets/images/social-icons/svg/youtube15.svg +1 -0
  75. data/app/assets/js/components.js +376 -0
  76. data/app/assets/js/foundation/foundation.abide.js +408 -0
  77. data/app/assets/js/foundation/foundation.accordion.js +88 -0
  78. data/app/assets/js/foundation/foundation.alert.js +43 -0
  79. data/app/assets/js/foundation/foundation.clearing.js +586 -0
  80. data/app/assets/js/foundation/foundation.dropdown.js +463 -0
  81. data/app/assets/js/foundation/foundation.equalizer.js +104 -0
  82. data/app/assets/js/foundation/foundation.interchange.js +359 -0
  83. data/app/assets/js/foundation/foundation.joyride.js +932 -0
  84. data/app/assets/js/foundation/foundation.js +725 -0
  85. data/app/assets/js/foundation/foundation.magellan.js +215 -0
  86. data/app/assets/js/foundation/foundation.offcanvas.js +152 -0
  87. data/app/assets/js/foundation/foundation.orbit.js +476 -0
  88. data/app/assets/js/foundation/foundation.reveal.js +498 -0
  89. data/app/assets/js/foundation/foundation.slider.js +281 -0
  90. data/app/assets/js/foundation/foundation.tab.js +249 -0
  91. data/app/assets/js/foundation/foundation.tooltip.js +339 -0
  92. data/app/assets/js/foundation/foundation.topbar.js +458 -0
  93. data/app/assets/js/foundation.min.js +6376 -0
  94. data/app/assets/js/scripts-no-touch.js +33 -0
  95. data/app/assets/js/scripts-touch.js +33 -0
  96. data/app/assets/js/va_common_main.js +1 -0
  97. data/app/assets/js/vendor/classie.js +80 -0
  98. data/app/assets/js/vendor/html5shiv.js +8 -0
  99. data/app/assets/js/vendor/jquery-1.11.0.min.js +4 -0
  100. data/app/assets/js/vendor/jquery.js +9789 -0
  101. data/app/assets/js/vendor/jquery.smooth-scroll.js +255 -0
  102. data/app/assets/js/vendor/jquery.stellar.js +651 -0
  103. data/app/assets/js/vendor/jquery.tipsy.js +258 -0
  104. data/app/assets/js/vendor/menu.js +40 -0
  105. data/app/assets/js/vendor/modernizr.custom.js +4 -0
  106. data/app/assets/js/vendor/nwmatcher-1.2.5-min.js +7 -0
  107. data/app/assets/js/vendor/respond.min.js +6 -0
  108. data/app/assets/js/vendor/scroll-settings.js +3 -0
  109. data/app/assets/js/vendor/selectivizr-1.0.3b.js +560 -0
  110. data/app/assets/js/vendor/stellar-settings.js +8 -0
  111. data/app/assets/js/vendor/svg-injector.js +450 -0
  112. data/app/assets/js/vendor/tota11y.min.js +28 -0
  113. data/app/assets/js/vendor/wow.min.js +2 -0
  114. data/app/assets/stylesheets/_va.scss +2377 -0
  115. data/app/assets/stylesheets/components/_accordions.scss +98 -0
  116. data/app/assets/stylesheets/core/_base.scss +20 -0
  117. data/app/assets/stylesheets/core/_defaults.scss +92 -0
  118. data/app/assets/stylesheets/core/_grid-settings.scss +10 -0
  119. data/app/assets/stylesheets/core/_grid.scss +116 -0
  120. data/app/assets/stylesheets/core/_utilities.scss +105 -0
  121. data/app/assets/stylesheets/core/_variables.scss +88 -0
  122. data/app/assets/stylesheets/elements/_buttons.scss +189 -0
  123. data/app/assets/stylesheets/elements/_figure.scss +9 -0
  124. data/app/assets/stylesheets/elements/_inputs.scss +328 -0
  125. data/app/assets/stylesheets/elements/_labels.scss +39 -0
  126. data/app/assets/stylesheets/elements/_list.scss +82 -0
  127. data/app/assets/stylesheets/elements/_table.scss +39 -0
  128. data/app/assets/stylesheets/elements/_typography.scss +220 -0
  129. data/app/assets/stylesheets/foundation/_functions.scss +146 -0
  130. data/app/assets/stylesheets/foundation/_settings.scss +1467 -0
  131. data/app/assets/stylesheets/foundation/_variables.scss +1286 -0
  132. data/app/assets/stylesheets/foundation/components/_accordion.scss +157 -0
  133. data/app/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
  134. data/app/assets/stylesheets/foundation/components/_block-grid.scss +132 -0
  135. data/app/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
  136. data/app/assets/stylesheets/foundation/components/_button-groups.scss +200 -0
  137. data/app/assets/stylesheets/foundation/components/_buttons.scss +259 -0
  138. data/app/assets/stylesheets/foundation/components/_clearing.scss +256 -0
  139. data/app/assets/stylesheets/foundation/components/_dropdown-buttons.scss +131 -0
  140. data/app/assets/stylesheets/foundation/components/_dropdown.scss +262 -0
  141. data/app/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
  142. data/app/assets/stylesheets/foundation/components/_forms.scss +570 -0
  143. data/app/assets/stylesheets/foundation/components/_global.scss +481 -0
  144. data/app/assets/stylesheets/foundation/components/_grid.scss +289 -0
  145. data/app/assets/stylesheets/foundation/components/_icon-bar.scss +358 -0
  146. data/app/assets/stylesheets/foundation/components/_inline-lists.scss +57 -0
  147. data/app/assets/stylesheets/foundation/components/_joyride.scss +222 -0
  148. data/app/assets/stylesheets/foundation/components/_keystrokes.scss +61 -0
  149. data/app/assets/stylesheets/foundation/components/_labels.scss +106 -0
  150. data/app/assets/stylesheets/foundation/components/_magellan.scss +34 -0
  151. data/app/assets/stylesheets/foundation/components/_offcanvas.scss +515 -0
  152. data/app/assets/stylesheets/foundation/components/_orbit.scss +368 -0
  153. data/app/assets/stylesheets/foundation/components/_pagination.scss +162 -0
  154. data/app/assets/stylesheets/foundation/components/_panels.scss +101 -0
  155. data/app/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
  156. data/app/assets/stylesheets/foundation/components/_progress-bars.scss +79 -0
  157. data/app/assets/stylesheets/foundation/components/_range-slider.scss +169 -0
  158. data/app/assets/stylesheets/foundation/components/_reveal.scss +202 -0
  159. data/app/assets/stylesheets/foundation/components/_side-nav.scss +116 -0
  160. data/app/assets/stylesheets/foundation/components/_split-buttons.scss +199 -0
  161. data/app/assets/stylesheets/foundation/components/_sub-nav.scss +123 -0
  162. data/app/assets/stylesheets/foundation/components/_switches.scss +238 -0
  163. data/app/assets/stylesheets/foundation/components/_tables.scss +135 -0
  164. data/app/assets/stylesheets/foundation/components/_tabs.scss +123 -0
  165. data/app/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
  166. data/app/assets/stylesheets/foundation/components/_toolbar.scss +70 -0
  167. data/app/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
  168. data/app/assets/stylesheets/foundation/components/_top-bar.scss +691 -0
  169. data/app/assets/stylesheets/foundation/components/_type.scss +525 -0
  170. data/app/assets/stylesheets/foundation/components/_visibility.scss +408 -0
  171. data/app/assets/stylesheets/functions/_new-breakpoint.scss +49 -0
  172. data/app/assets/stylesheets/functions/_private.scss +114 -0
  173. data/app/assets/stylesheets/lib/_normalize.scss +427 -0
  174. data/app/assets/stylesheets/lib/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  175. data/app/assets/stylesheets/lib/bourbon/_bourbon.scss +87 -0
  176. data/app/assets/stylesheets/lib/bourbon/addons/_border-color.scss +26 -0
  177. data/app/assets/stylesheets/lib/bourbon/addons/_border-radius.scss +48 -0
  178. data/app/assets/stylesheets/lib/bourbon/addons/_border-style.scss +25 -0
  179. data/app/assets/stylesheets/lib/bourbon/addons/_border-width.scss +25 -0
  180. data/app/assets/stylesheets/lib/bourbon/addons/_buttons.scss +64 -0
  181. data/app/assets/stylesheets/lib/bourbon/addons/_clearfix.scss +25 -0
  182. data/app/assets/stylesheets/lib/bourbon/addons/_ellipsis.scss +30 -0
  183. data/app/assets/stylesheets/lib/bourbon/addons/_font-stacks.scss +31 -0
  184. data/app/assets/stylesheets/lib/bourbon/addons/_hide-text.scss +27 -0
  185. data/app/assets/stylesheets/lib/bourbon/addons/_margin.scss +26 -0
  186. data/app/assets/stylesheets/lib/bourbon/addons/_padding.scss +26 -0
  187. data/app/assets/stylesheets/lib/bourbon/addons/_position.scss +48 -0
  188. data/app/assets/stylesheets/lib/bourbon/addons/_prefixer.scss +66 -0
  189. data/app/assets/stylesheets/lib/bourbon/addons/_retina-image.scss +25 -0
  190. data/app/assets/stylesheets/lib/bourbon/addons/_size.scss +51 -0
  191. data/app/assets/stylesheets/lib/bourbon/addons/_text-inputs.scss +112 -0
  192. data/app/assets/stylesheets/lib/bourbon/addons/_timing-functions.scss +34 -0
  193. data/app/assets/stylesheets/lib/bourbon/addons/_triangle.scss +63 -0
  194. data/app/assets/stylesheets/lib/bourbon/addons/_word-wrap.scss +29 -0
  195. data/app/assets/stylesheets/lib/bourbon/css3/_animation.scss +43 -0
  196. data/app/assets/stylesheets/lib/bourbon/css3/_appearance.scss +3 -0
  197. data/app/assets/stylesheets/lib/bourbon/css3/_backface-visibility.scss +3 -0
  198. data/app/assets/stylesheets/lib/bourbon/css3/_background-image.scss +42 -0
  199. data/app/assets/stylesheets/lib/bourbon/css3/_background.scss +55 -0
  200. data/app/assets/stylesheets/lib/bourbon/css3/_border-image.scss +59 -0
  201. data/app/assets/stylesheets/lib/bourbon/css3/_calc.scss +4 -0
  202. data/app/assets/stylesheets/lib/bourbon/css3/_columns.scss +47 -0
  203. data/app/assets/stylesheets/lib/bourbon/css3/_filter.scss +4 -0
  204. data/app/assets/stylesheets/lib/bourbon/css3/_flex-box.scss +287 -0
  205. data/app/assets/stylesheets/lib/bourbon/css3/_font-face.scss +24 -0
  206. data/app/assets/stylesheets/lib/bourbon/css3/_font-feature-settings.scss +4 -0
  207. data/app/assets/stylesheets/lib/bourbon/css3/_hidpi-media-query.scss +10 -0
  208. data/app/assets/stylesheets/lib/bourbon/css3/_hyphens.scss +4 -0
  209. data/app/assets/stylesheets/lib/bourbon/css3/_image-rendering.scss +14 -0
  210. data/app/assets/stylesheets/lib/bourbon/css3/_keyframes.scss +36 -0
  211. data/app/assets/stylesheets/lib/bourbon/css3/_linear-gradient.scss +38 -0
  212. data/app/assets/stylesheets/lib/bourbon/css3/_perspective.scss +8 -0
  213. data/app/assets/stylesheets/lib/bourbon/css3/_placeholder.scss +8 -0
  214. data/app/assets/stylesheets/lib/bourbon/css3/_radial-gradient.scss +39 -0
  215. data/app/assets/stylesheets/lib/bourbon/css3/_selection.scss +42 -0
  216. data/app/assets/stylesheets/lib/bourbon/css3/_text-decoration.scss +19 -0
  217. data/app/assets/stylesheets/lib/bourbon/css3/_transform.scss +15 -0
  218. data/app/assets/stylesheets/lib/bourbon/css3/_transition.scss +71 -0
  219. data/app/assets/stylesheets/lib/bourbon/css3/_user-select.scss +3 -0
  220. data/app/assets/stylesheets/lib/bourbon/functions/_assign-inputs.scss +11 -0
  221. data/app/assets/stylesheets/lib/bourbon/functions/_contains-falsy.scss +20 -0
  222. data/app/assets/stylesheets/lib/bourbon/functions/_contains.scss +26 -0
  223. data/app/assets/stylesheets/lib/bourbon/functions/_is-length.scss +11 -0
  224. data/app/assets/stylesheets/lib/bourbon/functions/_is-light.scss +21 -0
  225. data/app/assets/stylesheets/lib/bourbon/functions/_is-number.scss +11 -0
  226. data/app/assets/stylesheets/lib/bourbon/functions/_is-size.scss +13 -0
  227. data/app/assets/stylesheets/lib/bourbon/functions/_modular-scale.scss +69 -0
  228. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-em.scss +13 -0
  229. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-rem.scss +15 -0
  230. data/app/assets/stylesheets/lib/bourbon/functions/_shade.scss +24 -0
  231. data/app/assets/stylesheets/lib/bourbon/functions/_strip-units.scss +17 -0
  232. data/app/assets/stylesheets/lib/bourbon/functions/_tint.scss +24 -0
  233. data/app/assets/stylesheets/lib/bourbon/functions/_transition-property-name.scss +22 -0
  234. data/app/assets/stylesheets/lib/bourbon/functions/_unpack.scss +27 -0
  235. data/app/assets/stylesheets/lib/bourbon/helpers/_convert-units.scss +21 -0
  236. data/app/assets/stylesheets/lib/bourbon/helpers/_directional-values.scss +96 -0
  237. data/app/assets/stylesheets/lib/bourbon/helpers/_font-source-declaration.scss +43 -0
  238. data/app/assets/stylesheets/lib/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  239. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-angle-parser.scss +25 -0
  240. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  241. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-positions-parser.scss +61 -0
  242. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  243. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-arg-parser.scss +69 -0
  244. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  245. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-positions-parser.scss +18 -0
  246. data/app/assets/stylesheets/lib/bourbon/helpers/_render-gradients.scss +26 -0
  247. data/app/assets/stylesheets/lib/bourbon/helpers/_shape-size-stripper.scss +10 -0
  248. data/app/assets/stylesheets/lib/bourbon/helpers/_str-to-num.scss +50 -0
  249. data/app/assets/stylesheets/lib/bourbon/settings/_asset-pipeline.scss +7 -0
  250. data/app/assets/stylesheets/lib/bourbon/settings/_prefixer.scss +9 -0
  251. data/app/assets/stylesheets/lib/bourbon/settings/_px-to-em.scss +1 -0
  252. data/app/assets/stylesheets/lib/neat/_neat-helpers.scss +8 -0
  253. data/app/assets/stylesheets/lib/neat/_neat.scss +23 -0
  254. data/app/assets/stylesheets/lib/neat/functions/_new-breakpoint.scss +49 -0
  255. data/app/assets/stylesheets/lib/neat/functions/_private.scss +114 -0
  256. data/app/assets/stylesheets/lib/neat/grid/_box-sizing.scss +15 -0
  257. data/app/assets/stylesheets/lib/neat/grid/_direction-context.scss +33 -0
  258. data/app/assets/stylesheets/lib/neat/grid/_display-context.scss +28 -0
  259. data/app/assets/stylesheets/lib/neat/grid/_fill-parent.scss +22 -0
  260. data/app/assets/stylesheets/lib/neat/grid/_media.scss +92 -0
  261. data/app/assets/stylesheets/lib/neat/grid/_omega.scss +87 -0
  262. data/app/assets/stylesheets/lib/neat/grid/_outer-container.scss +38 -0
  263. data/app/assets/stylesheets/lib/neat/grid/_pad.scss +25 -0
  264. data/app/assets/stylesheets/lib/neat/grid/_private.scss +35 -0
  265. data/app/assets/stylesheets/lib/neat/grid/_row.scss +52 -0
  266. data/app/assets/stylesheets/lib/neat/grid/_shift.scss +50 -0
  267. data/app/assets/stylesheets/lib/neat/grid/_span-columns.scss +94 -0
  268. data/app/assets/stylesheets/lib/neat/grid/_to-deprecate.scss +97 -0
  269. data/app/assets/stylesheets/lib/neat/grid/_visual-grid.scss +42 -0
  270. data/app/assets/stylesheets/lib/neat/settings/_disable-warnings.scss +13 -0
  271. data/app/assets/stylesheets/lib/neat/settings/_grid.scss +51 -0
  272. data/app/assets/stylesheets/lib/neat/settings/_visual-grid.scss +27 -0
  273. data/app/assets/stylesheets/va_common_main.css.scss +18 -0
  274. data/bin/console +14 -0
  275. data/bin/setup +7 -0
  276. data/lib/generators/files/_footer.html.erb +89 -0
  277. data/lib/generators/files/_header.html.erb +7 -0
  278. data/lib/generators/va_common_generator.rb +6 -0
  279. data/lib/generators/va_footer_generator.rb +7 -0
  280. data/lib/generators/va_header_generator.rb +7 -0
  281. data/lib/va_common/engine.rb +4 -0
  282. data/lib/va_common/version.rb +3 -0
  283. data/lib/va_common.rb +2 -0
  284. data/va_common.gemspec +22 -0
  285. metadata +354 -0
@@ -0,0 +1,289 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-grid-classes: $include-html-classes !default;
11
+ $include-xl-html-grid-classes: false !default;
12
+
13
+ $row-width: rem-calc(1000) !default;
14
+ $total-columns: 12 !default;
15
+
16
+ $last-child-float: $opposite-direction !default;
17
+
18
+ //
19
+ // Grid Functions
20
+ //
21
+
22
+ // Deprecated: We'll drop support for this in 5.1, use grid-calc()
23
+ @function gridCalc($colNumber, $totalColumns) {
24
+ @warn "gridCalc() is deprecated, use grid-calc()";
25
+ @return grid-calc($colNumber, $totalColumns);
26
+ }
27
+
28
+ // @FUNCTION
29
+ // $colNumber - Found in settings file
30
+ // $totalColumns - Found in settings file
31
+ @function grid-calc($colNumber, $totalColumns) {
32
+ @return percentage(($colNumber / $totalColumns));
33
+ }
34
+
35
+ //
36
+ // @mixins
37
+ //
38
+
39
+ // For creating container, nested, and collapsed rows.
40
+ //
41
+ //
42
+ // $behavior - Any special behavior for this row? Default: false. Options: nest, collapse, nest-collapse, false.
43
+ @mixin grid-row($behavior: false) {
44
+
45
+ // use @include grid-row(nest); to include a nested row
46
+ @if $behavior == nest {
47
+ width: auto;
48
+ margin-#{$default-float}: -($column-gutter/2);
49
+ margin-#{$opposite-direction}: -($column-gutter/2);
50
+ margin-top: 0;
51
+ margin-bottom: 0;
52
+ max-width: none;
53
+ }
54
+
55
+ // use @include grid-row(collapse); to collapsed a container row margins
56
+ @else if $behavior == collapse {
57
+ width: 100%;
58
+ margin: 0;
59
+ max-width: $row-width;
60
+ }
61
+
62
+ // use @include grid-row(nest-collapse); to collapse outer margins on a nested row
63
+ @else if $behavior == nest-collapse {
64
+ width: auto;
65
+ margin: 0;
66
+ max-width: none;
67
+ }
68
+
69
+ // use @include grid-row; to use a container row
70
+ @else {
71
+ width: 100%;
72
+ margin-#{$default-float}: auto;
73
+ margin-#{$opposite-direction}: auto;
74
+ margin-top: 0;
75
+ margin-bottom: 0;
76
+ max-width: $row-width;
77
+ }
78
+
79
+ // Clearfix for all rows
80
+ @include clearfix();
81
+ }
82
+
83
+ // Creates a column, should be used inside of a media query to control layouts
84
+ //
85
+ // $columns - The number of columns this should be
86
+ // $last-column - Is this the last column? Default: false.
87
+ // $center - Center these columns? Default: false.
88
+ // $offset - # of columns to offset. Default: false.
89
+ // $push - # of columns to push. Default: false.
90
+ // $pull - # of columns to pull. Default: false.
91
+ // $collapse - Get rid of gutter padding on column? Default: false.
92
+ // $float - Should this float? Default: true. Options: true, false, left, right.
93
+ @mixin grid-column(
94
+ $columns:false,
95
+ $last-column:false,
96
+ $center:false,
97
+ $offset:false,
98
+ $push:false,
99
+ $pull:false,
100
+ $collapse:false,
101
+ $float:true,
102
+ $position:false) {
103
+
104
+ // If positioned for default .column, include relative position
105
+ // push and pull require position set
106
+ @if $position or $push or $pull {
107
+ position: relative;
108
+ }
109
+
110
+ // If collapsed, get rid of gutter padding
111
+ @if $collapse {
112
+ padding-left: 0;
113
+ padding-right: 0;
114
+ }
115
+
116
+ // Gutter padding whenever a column isn't set to collapse
117
+ // (use $collapse:null to do nothing)
118
+ @else if $collapse == false {
119
+ padding-left: ($column-gutter / 2);
120
+ padding-right: ($column-gutter / 2);
121
+ }
122
+
123
+ // If a column number is given, calculate width
124
+ @if $columns {
125
+ width: grid-calc($columns, $total-columns);
126
+
127
+ // If last column, float naturally instead of to the right
128
+ @if $last-column { float: $opposite-direction; }
129
+ }
130
+
131
+ // Source Ordering, adds left/right depending on which you use.
132
+ @if $push { #{$default-float}: grid-calc($push, $total-columns); #{$opposite-direction}: auto; }
133
+ @if $pull { #{$opposite-direction}: grid-calc($pull, $total-columns); #{$default-float}: auto; }
134
+
135
+ @if $float {
136
+ @if $float == left or $float == true { float: $default-float; }
137
+ @else if $float == right { float: $opposite-direction; }
138
+ @else { float: none; }
139
+ }
140
+
141
+ // If centered, get rid of float and add appropriate margins
142
+ @if $center {
143
+ margin-#{$default-float}: auto;
144
+ margin-#{$opposite-direction}: auto;
145
+ float: none;
146
+ }
147
+
148
+ // If offset, calculate appropriate margins
149
+ @if $offset { margin-#{$default-float}: grid-calc($offset, $total-columns) !important; }
150
+
151
+ }
152
+
153
+ // Create presentational classes for grid
154
+ //
155
+ // $size - Name of class to use, i.e. "large" will generate .large-1, .large-2, etc.
156
+ @mixin grid-html-classes($size) {
157
+
158
+ @for $i from 0 through $total-columns - 1 {
159
+ .#{$size}-push-#{$i} {
160
+ @include grid-column($push:$i, $collapse:null, $float:false);
161
+ }
162
+ .#{$size}-pull-#{$i} {
163
+ @include grid-column($pull:$i, $collapse:null, $float:false);
164
+ }
165
+ }
166
+
167
+ .column,
168
+ .columns { @include grid-column($columns:false, $position:true); }
169
+
170
+
171
+ @for $i from 1 through $total-columns {
172
+ .#{$size}-#{$i} { @include grid-column($columns:$i,$collapse:null,$float:false); }
173
+ }
174
+
175
+ @for $i from 0 through $total-columns - 1 {
176
+ .#{$size}-offset-#{$i} { @include grid-column($offset:$i, $collapse:null,$float:false); }
177
+ }
178
+
179
+ .#{$size}-reset-order {
180
+ margin-#{$default-float}: 0;
181
+ margin-#{$opposite-direction}: 0;
182
+ left: auto;
183
+ right: auto;
184
+ float: $default-float;
185
+ }
186
+
187
+ .column.#{$size}-centered,
188
+ .columns.#{$size}-centered { @include grid-column($center:true, $collapse:null, $float:false); }
189
+
190
+ .column.#{$size}-uncentered,
191
+ .columns.#{$size}-uncentered {
192
+ margin-#{$default-float}: 0;
193
+ margin-#{$opposite-direction}: 0;
194
+ float: $default-float;
195
+ }
196
+
197
+ // Fighting [class*="column"] + [class*="column"]:last-child
198
+ .column.#{$size}-centered:last-child,
199
+ .columns.#{$size}-centered:last-child{
200
+ float: none;
201
+ }
202
+
203
+ // Fighting .column.<previous-size>-centered:last-child
204
+ .column.#{$size}-uncentered:last-child,
205
+ .columns.#{$size}-uncentered:last-child {
206
+ float: $default-float;
207
+ }
208
+
209
+ .column.#{$size}-uncentered.opposite,
210
+ .columns.#{$size}-uncentered.opposite {
211
+ float: $opposite-direction;
212
+ }
213
+
214
+ .row {
215
+ &.#{$size}-collapse {
216
+ > .column,
217
+ > .columns { @include grid-column($collapse:true, $float:false); }
218
+
219
+ .row {margin-left:0; margin-right:0;}
220
+ }
221
+ &.#{$size}-uncollapse {
222
+ > .column,
223
+ > .columns {
224
+ @include grid-column;
225
+ }
226
+ }
227
+ }
228
+ }
229
+
230
+ @include exports("grid") {
231
+ @if $include-html-grid-classes {
232
+ .row {
233
+ @include grid-row;
234
+
235
+ &.collapse {
236
+ > .column,
237
+ > .columns { @include grid-column($collapse:true, $float:false); }
238
+
239
+ .row {margin-left:0; margin-right:0;}
240
+ }
241
+
242
+ .row { @include grid-row($behavior:nest);
243
+ &.collapse { @include grid-row($behavior:nest-collapse); }
244
+ }
245
+ }
246
+
247
+ .column,
248
+ .columns { @include grid-column($columns:$total-columns); }
249
+
250
+ [class*="column"] + [class*="column"]:last-child { float: $last-child-float; }
251
+ [class*="column"] + [class*="column"].end { float: $default-float; }
252
+
253
+ @media #{$small-up} {
254
+ @include grid-html-classes($size:small);
255
+ }
256
+
257
+ @media #{$medium-up} {
258
+ @include grid-html-classes($size:medium);
259
+ // Old push and pull classes
260
+ @for $i from 0 through $total-columns - 1 {
261
+ .push-#{$i} {
262
+ @include grid-column($push:$i, $collapse:null, $float:false);
263
+ }
264
+ .pull-#{$i} {
265
+ @include grid-column($pull:$i, $collapse:null, $float:false);
266
+ }
267
+ }
268
+ }
269
+ @media #{$large-up} {
270
+ @include grid-html-classes($size:large);
271
+ @for $i from 0 through $total-columns - 1 {
272
+ .push-#{$i} {
273
+ @include grid-column($push:$i, $collapse:null, $float:false);
274
+ }
275
+ .pull-#{$i} {
276
+ @include grid-column($pull:$i, $collapse:null, $float:false);
277
+ }
278
+ }
279
+ }
280
+ }
281
+ @if $include-xl-html-grid-classes {
282
+ @media #{$xlarge-up} {
283
+ @include grid-html-classes($size:xlarge);
284
+ }
285
+ @media #{$xxlarge-up} {
286
+ @include grid-html-classes($size:xxlarge);
287
+ }
288
+ }
289
+ }
@@ -0,0 +1,358 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+
8
+ // @name
9
+ // @dependencies _global.scss
10
+
11
+ $include-html-icon-bar-classes: $include-html-classes !default;
12
+
13
+ // @variables
14
+
15
+ // We use these to style the icon-bar and items
16
+ $icon-bar-bg: $oil !default;
17
+ $icon-bar-font-color: $white !default;
18
+ $icon-bar-font-color-hover: $icon-bar-font-color !default;
19
+ $icon-bar-font-size: 1rem !default;
20
+ $icon-bar-hover-color: $primary-color !default;
21
+ $icon-bar-icon-color: $white !default;
22
+ $icon-bar-icon-color-hover: $icon-bar-icon-color !default;
23
+ $icon-bar-icon-size: 1.875rem !default;
24
+ $icon-bar-image-width: 1.875rem !default;
25
+ $icon-bar-image-height: 1.875rem !default;
26
+ $icon-bar-active-color: $primary-color !default;
27
+ $icon-bar-item-padding: 1.25rem !default;
28
+
29
+ // We use this to set default opacity and cursor for disabled icons.
30
+ $icon-bar-disabled-opacity: 0.7 !default;
31
+ $icon-bar-disabled-cursor: $cursor-disabled-value !default;
32
+
33
+
34
+ //
35
+ // @mixins
36
+ //
37
+
38
+ // We use this mixin to create the base styles for our Icon bar element.
39
+ //
40
+ @mixin icon-bar-base() {
41
+
42
+ width: 100%;
43
+ font-size: 0;
44
+ display: inline-block;
45
+
46
+ & > * {
47
+ text-align: center;
48
+ font-size: $icon-bar-font-size;
49
+ width: 25%;
50
+ margin: 0 auto;
51
+ display: block;
52
+ padding: $icon-bar-item-padding;
53
+ float: left;
54
+
55
+ i, img {
56
+ display: block;
57
+ margin: 0 auto;
58
+
59
+ & + label {
60
+ margin-top: .0625rem;
61
+ }
62
+ }
63
+
64
+ i {
65
+ font-size: $icon-bar-icon-size;
66
+ vertical-align: middle;
67
+ }
68
+
69
+ img {
70
+ width: $icon-bar-image-width;
71
+ height: $icon-bar-image-height;
72
+ }
73
+ }
74
+
75
+ &.label-right > * {
76
+
77
+ i, img {
78
+ margin: 0 .0625rem 0 0;
79
+ display: inline-block;
80
+
81
+ & + label {
82
+ margin-top: 0;
83
+ }
84
+ }
85
+
86
+ label { display: inline-block; }
87
+ }
88
+
89
+ &.vertical.label-right > * {
90
+ text-align: left;
91
+ }
92
+
93
+ &.vertical, &.small-vertical{
94
+ height: 100%;
95
+ width: auto;
96
+
97
+ .item {
98
+ width: auto;
99
+ margin: auto;
100
+ float: none;
101
+ }
102
+ }
103
+
104
+ &.medium-vertical {
105
+ @media #{$medium-up} {
106
+ height: 100%;
107
+ width: auto;
108
+
109
+ .item {
110
+ width: auto;
111
+ margin: auto;
112
+ float: none;
113
+ }
114
+ }
115
+ }
116
+ &.large-vertical {
117
+ @media #{$large-up} {
118
+ height: 100%;
119
+ width: auto;
120
+
121
+ .item {
122
+ width: auto;
123
+ margin: auto;
124
+ float: none;
125
+ }
126
+ }
127
+ }
128
+ }
129
+
130
+ // We use this mixin to create the size styles for icon bars.
131
+ @mixin icon-bar-size(
132
+ $padding: $icon-bar-item-padding,
133
+ $font-size: $icon-bar-font-size,
134
+ $icon-size: $icon-bar-icon-size,
135
+ $image-width: $icon-bar-image-width,
136
+ $image-height: $icon-bar-image-height) {
137
+
138
+ & > * {
139
+ font-size: $font-size;
140
+ padding: $padding;
141
+
142
+ i, img {
143
+
144
+ & + label {
145
+ margin-top: .0625rem;
146
+ }
147
+ }
148
+
149
+ i {
150
+ font-size: $icon-size;
151
+ }
152
+
153
+ img {
154
+ width: $image-width;
155
+ height: $image-height;
156
+ }
157
+ }
158
+
159
+ }
160
+
161
+ @mixin icon-bar-style(
162
+ $bar-bg:$icon-bar-bg,
163
+ $bar-font-color:$icon-bar-font-color,
164
+ $bar-font-color-hover:$icon-bar-font-color-hover,
165
+ $bar-hover-color:$icon-bar-hover-color,
166
+ $bar-icon-color:$icon-bar-icon-color,
167
+ $bar-icon-color-hover:$icon-bar-icon-color-hover,
168
+ $bar-active-color:$icon-bar-active-color,
169
+ $base-style:true,
170
+ $disabled:false) {
171
+
172
+ @if $base-style {
173
+
174
+ background: $bar-bg;
175
+
176
+ & > * {
177
+ label { color: $bar-font-color; }
178
+
179
+ i { color: $bar-icon-color; }
180
+ }
181
+
182
+ & > a:hover {
183
+
184
+ background: $bar-hover-color;
185
+
186
+ label { color: $bar-font-color-hover; }
187
+
188
+ i { color: $bar-icon-color-hover; }
189
+ }
190
+
191
+ & > a.active {
192
+
193
+ background: $bar-active-color;
194
+
195
+ label { color: $bar-font-color-hover; }
196
+
197
+ i { color: $bar-icon-color-hover; }
198
+ }
199
+ }
200
+ @if $disabled {
201
+ .item.disabled {
202
+ opacity: $icon-bar-disabled-opacity;
203
+ cursor: $icon-bar-disabled-cursor;
204
+ >* {
205
+ opacity: $icon-bar-disabled-opacity;
206
+ cursor: $icon-bar-disabled-cursor;
207
+ }
208
+ }
209
+ }
210
+
211
+ }
212
+
213
+ // We use this to quickly create icon bars with a single mixin
214
+ // $height - The overall calculated height of the icon bar (horizontal)
215
+ // $bar-bg - the background color of the bar
216
+ // $bar-font-color - the font color
217
+ // $bar-hover-color - okay these are pretty obvious variables
218
+ // $bar-icon-color - maybe we could skip explaining them all? Okay this one does change icon color if you use an icon font
219
+ // $bar-active-color - the color of an active / hover state
220
+ // $base-style - Apply base styles? Default: true.
221
+ // $disabled - Allow disabled icons? Default: false.
222
+
223
+ @mixin icon-bar(
224
+ $bar-bg:$icon-bar-bg,
225
+ $bar-font-color:$icon-bar-font-color,
226
+ $bar-font-color-hover:$icon-bar-font-color-hover,
227
+ $bar-hover-color:$icon-bar-hover-color,
228
+ $bar-icon-color:$icon-bar-icon-color,
229
+ $bar-icon-color-hover:$icon-bar-icon-color-hover,
230
+ $bar-active-color:$icon-bar-active-color,
231
+ $padding: $icon-bar-item-padding,
232
+ $font-size: $icon-bar-font-size,
233
+ $icon-size: $icon-bar-icon-size,
234
+ $image-width: $icon-bar-image-width,
235
+ $image-height: $icon-bar-image-height,
236
+ $base-style:true,
237
+ $disabled:false) {
238
+ @include icon-bar-base();
239
+ @include icon-bar-size($padding, $font-size, $icon-size, $image-width, $image-height);
240
+ @include icon-bar-style($bar-bg, $bar-font-color, $bar-font-color-hover, $bar-hover-color, $bar-icon-color, $bar-icon-color-hover, $bar-active-color, $base-style, $disabled);
241
+ }
242
+
243
+ @include exports("icon-bar") {
244
+ @if $include-html-icon-bar-classes {
245
+ .icon-bar {
246
+ @include icon-bar;
247
+ }
248
+ }
249
+ }
250
+
251
+ @if $include-html-icon-bar-classes {
252
+
253
+ // toolbar styles
254
+
255
+ .icon-bar {
256
+
257
+ // Counts
258
+
259
+ &.two-up {
260
+ .item { width: 50%; }
261
+ &.vertical .item, &.small-vertical .item { width: auto; }
262
+ &.medium-vertical .item {
263
+ @media #{$medium-up} {
264
+ width: auto;
265
+ }
266
+ }
267
+ &.large-vertical .item {
268
+ @media #{$large-up} {
269
+ width: auto;
270
+ }
271
+ }
272
+ }
273
+ &.three-up {
274
+ .item { width: 33.3333%; }
275
+ &.vertical .item, &.small-vertical .item { width: auto; }
276
+ &.medium-vertical .item {
277
+ @media #{$medium-up} {
278
+ width: auto;
279
+ }
280
+ }
281
+ &.large-vertical .item {
282
+ @media #{$large-up} {
283
+ width: auto;
284
+ }
285
+ }
286
+ }
287
+ &.four-up {
288
+ .item { width: 25%; }
289
+ &.vertical .item, &.small-vertical .item { width: auto; }
290
+ &.medium-vertical .item {
291
+ @media #{$medium-up} {
292
+ width: auto;
293
+ }
294
+ }
295
+ &.large-vertical .item {
296
+ @media #{$large-up} {
297
+ width: auto;
298
+ }
299
+ }
300
+ }
301
+ &.five-up {
302
+ .item { width: 20%; }
303
+ &.vertical .item, &.small-vertical .item { width: auto; }
304
+ &.medium-vertical .item {
305
+ @media #{$medium-up} {
306
+ width: auto;
307
+ }
308
+ }
309
+ &.large-vertical .item {
310
+ @media #{$large-up} {
311
+ width: auto;
312
+ }
313
+ }
314
+ }
315
+ &.six-up {
316
+ .item { width: 16.66667%; }
317
+ &.vertical .item, &.small-vertical .item { width: auto; }
318
+ &.medium-vertical .item {
319
+ @media #{$medium-up} {
320
+ width: auto;
321
+ }
322
+ }
323
+ &.large-vertical .item {
324
+ @media #{$large-up} {
325
+ width: auto;
326
+ }
327
+ }
328
+ }
329
+ &.seven-up {
330
+ .item { width: 14.28571%; }
331
+ &.vertical .item, &.small-vertical .item { width: auto; }
332
+ &.medium-vertical .item {
333
+ @media #{$medium-up} {
334
+ width: auto;
335
+ }
336
+ }
337
+ &.large-vertical .item {
338
+ @media #{$large-up} {
339
+ width: auto;
340
+ }
341
+ }
342
+ }
343
+ &.eight-up {
344
+ .item { width: 12.5%; }
345
+ &.vertical .item, &.small-vertical .item { width: auto; }
346
+ &.medium-vertical .item {
347
+ @media #{$medium-up} {
348
+ width: auto;
349
+ }
350
+ }
351
+ &.large-vertical .item {
352
+ @media #{$large-up} {
353
+ width: auto;
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
@@ -0,0 +1,57 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-inline-list-classes: $include-html-classes !default;
11
+
12
+ // We use this to control the margins and padding of the inline list.
13
+ $inline-list-top-margin: 0 !default;
14
+ $inline-list-opposite-margin: 0 !default;
15
+ $inline-list-bottom-margin: rem-calc(17) !default;
16
+ $inline-list-default-float-margin: rem-calc(-22) !default;
17
+ $inline-list-default-float-list-margin: rem-calc(22) !default;
18
+
19
+ $inline-list-padding: 0 !default;
20
+
21
+ // We use this to control the overflow of the inline list.
22
+ $inline-list-overflow: hidden !default;
23
+
24
+ // We use this to control the list items
25
+ $inline-list-display: block !default;
26
+
27
+ // We use this to control any elements within list items
28
+ $inline-list-children-display: block !default;
29
+
30
+ //
31
+ // @mixins
32
+ //
33
+ // We use this mixin to create inline lists
34
+ @mixin inline-list {
35
+ margin: $inline-list-top-margin auto $inline-list-bottom-margin auto;
36
+ margin-#{$default-float}: $inline-list-default-float-margin;
37
+ margin-#{$opposite-direction}: $inline-list-opposite-margin;
38
+ padding: $inline-list-padding;
39
+ list-style: none;
40
+ overflow: $inline-list-overflow;
41
+
42
+ & > li {
43
+ list-style: none;
44
+ float: $default-float;
45
+ margin-#{$default-float}: $inline-list-default-float-list-margin;
46
+ display: $inline-list-display;
47
+ &>* { display: $inline-list-children-display; }
48
+ }
49
+ }
50
+
51
+ @include exports("inline-list") {
52
+ @if $include-html-inline-list-classes {
53
+ .inline-list {
54
+ @include inline-list();
55
+ }
56
+ }
57
+ }