zurb-foundation 3.2.5 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. data/.gitignore +6 -2
  2. data/CHANGELOG.md +1 -26
  3. data/CONTRIBUTING.md +18 -0
  4. data/Gemfile.lock +19 -0
  5. data/Gruntfile.js +27 -0
  6. data/README.md +5 -6
  7. data/{Capfile → docs/Capfile} +0 -1
  8. data/docs/Gemfile +8 -0
  9. data/docs/Gemfile.lock +43 -0
  10. data/docs/Procfile +2 -0
  11. data/docs/README.md +1 -0
  12. data/docs/_sidebar-components.html.erb +109 -0
  13. data/docs/_sidebar.html.erb +109 -0
  14. data/docs/_zurb-jobs.html.erb +5 -0
  15. data/docs/changelog.html.erb +185 -0
  16. data/docs/compile.rb +43 -0
  17. data/docs/components/alert-boxes.html.erb +202 -0
  18. data/docs/components/block-grid.html.erb +118 -0
  19. data/docs/components/breadcrumbs.html.erb +146 -0
  20. data/docs/components/button-groups.html.erb +174 -0
  21. data/docs/components/buttons.html.erb +220 -0
  22. data/docs/components/clearing.html.erb +152 -0
  23. data/docs/components/custom-forms.html.erb +306 -0
  24. data/docs/components/dropdown-buttons.html.erb +233 -0
  25. data/docs/components/dropdown.html.erb +186 -0
  26. data/docs/components/flex-video.html.erb +93 -0
  27. data/docs/components/forms.html.erb +468 -0
  28. data/docs/components/grid.html.erb +355 -0
  29. data/docs/components/inline-lists.html.erb +89 -0
  30. data/docs/components/joyride.html.erb +178 -0
  31. data/docs/components/keystrokes.html.erb +74 -0
  32. data/docs/components/labels.html.erb +98 -0
  33. data/docs/components/magellan.html.erb +84 -0
  34. data/docs/components/orbit.html.erb +262 -0
  35. data/docs/components/pagination.html.erb +181 -0
  36. data/docs/components/panels.html.erb +121 -0
  37. data/docs/components/pricing-tables.html.erb +154 -0
  38. data/docs/components/progress-bars.html.erb +120 -0
  39. data/docs/components/reveal.html.erb +147 -0
  40. data/docs/components/section.html.erb +156 -0
  41. data/docs/components/side-nav.html.erb +122 -0
  42. data/docs/components/split-buttons.html.erb +218 -0
  43. data/docs/components/sub-nav.html.erb +120 -0
  44. data/docs/components/switch.html.erb +288 -0
  45. data/docs/components/tables.html.erb +123 -0
  46. data/docs/components/thumbnails.html.erb +87 -0
  47. data/docs/components/tooltips.html.erb +73 -0
  48. data/docs/components/top-bar.html.erb +219 -0
  49. data/docs/components/type.html.erb +359 -0
  50. data/docs/components/visibility.html.erb +102 -0
  51. data/docs/config.ru +12 -0
  52. data/docs/config/deploy.rb +33 -0
  53. data/docs/controller.rb +43 -0
  54. data/docs/css/_coderay.scss +116 -0
  55. data/docs/css/_settings.scss +1 -0
  56. data/docs/css/docs.scss +174 -0
  57. data/docs/css/normalize.scss +396 -0
  58. data/docs/css/qunit-composite.css +13 -0
  59. data/docs/css/qunit.css +235 -0
  60. data/docs/faq.html.erb +61 -0
  61. data/docs/img/demos/demo1-th.png +0 -0
  62. data/docs/img/demos/demo1.png +0 -0
  63. data/docs/img/demos/demo2-th.png +0 -0
  64. data/docs/img/demos/demo2.png +0 -0
  65. data/docs/img/demos/demo3-th.png +0 -0
  66. data/docs/img/demos/demo3.png +0 -0
  67. data/docs/img/demos/demo4-th.png +0 -0
  68. data/docs/img/demos/demo4.png +0 -0
  69. data/docs/img/demos/demo5-th.png +0 -0
  70. data/docs/img/demos/demo5.png +0 -0
  71. data/docs/index.html.erb +299 -0
  72. data/docs/javascript.html.erb +133 -0
  73. data/docs/js/docs.js +3 -0
  74. data/docs/js/qunit-composite.js +105 -0
  75. data/docs/js/qunit.js +1977 -0
  76. data/docs/js/tests/tabs/simple_tabs.html +57 -0
  77. data/docs/js/tests/tabs/simple_tabs.js +54 -0
  78. data/docs/js/tests/tooltips/tooltips.html +39 -0
  79. data/docs/js/tests/tooltips/tooltips.js +11 -0
  80. data/docs/layout.html.erb +99 -0
  81. data/docs/rails.html.erb +66 -0
  82. data/docs/sass.html.erb +299 -0
  83. data/docs/support.html.erb +134 -0
  84. data/foundation.gemspec +2 -4
  85. data/index.html +3 -23
  86. data/js/foundation/foundation.alerts.js +50 -0
  87. data/js/foundation/foundation.clearing.js +478 -0
  88. data/{vendor/assets/javascripts/foundation/jquery.cookie.js → js/foundation/foundation.cookie.js} +3 -1
  89. data/js/foundation/foundation.dropdown.js +122 -0
  90. data/js/foundation/foundation.forms.js +403 -0
  91. data/js/foundation/foundation.joyride.js +613 -0
  92. data/js/foundation/foundation.js +331 -0
  93. data/js/foundation/foundation.magellan.js +130 -0
  94. data/js/foundation/foundation.orbit.js +355 -0
  95. data/{vendor/assets/javascripts/foundation/jquery.placeholder.js → js/foundation/foundation.placeholder.js} +4 -2
  96. data/js/foundation/foundation.reveal.js +264 -0
  97. data/js/foundation/foundation.section.js +180 -0
  98. data/js/foundation/foundation.tooltips.js +195 -0
  99. data/js/foundation/foundation.topbar.js +187 -0
  100. data/js/foundation/index.js +16 -0
  101. data/{vendor/assets/javascripts/foundation/modernizr.foundation.js → js/vendor/custom.modernizr.js} +0 -0
  102. data/js/vendor/jquery.js +9597 -0
  103. data/js/vendor/zepto.js +1782 -0
  104. data/lib/foundation/engine.rb +8 -1
  105. data/lib/foundation/generators/install_generator.rb +24 -1
  106. data/lib/foundation/generators/templates/application.html.erb +20 -6
  107. data/lib/foundation/generators/templates/application.html.haml +2 -6
  108. data/lib/foundation/generators/templates/application.html.slim +2 -5
  109. data/lib/foundation/version.rb +1 -1
  110. data/lib/zurb-foundation.rb +7 -9
  111. data/package.json +9 -0
  112. data/scss/foundation.scss +42 -15
  113. data/scss/foundation/_foundation-global.scss +226 -0
  114. data/scss/foundation/components/_alert-boxes.scss +106 -0
  115. data/scss/foundation/components/_block-grid.scss +63 -0
  116. data/scss/foundation/components/_breadcrumbs.scss +117 -0
  117. data/scss/foundation/components/_button-groups.scss +59 -0
  118. data/scss/foundation/components/_buttons.scss +217 -0
  119. data/scss/foundation/components/_clearing.scss +209 -0
  120. data/scss/foundation/components/_custom-forms.scss +232 -0
  121. data/scss/foundation/components/_dropdown-buttons.scss +114 -0
  122. data/scss/foundation/components/_dropdown.scss +137 -0
  123. data/scss/foundation/components/_flex-video.scss +45 -0
  124. data/scss/foundation/components/_forms.scss +309 -0
  125. data/scss/foundation/components/_grid.scss +149 -71
  126. data/scss/foundation/components/_inline-lists.scss +47 -0
  127. data/scss/foundation/components/_joyride.scss +193 -0
  128. data/scss/foundation/components/_keystrokes.scss +56 -0
  129. data/scss/foundation/components/_labels.scss +81 -0
  130. data/scss/foundation/components/_magellan.scss +15 -0
  131. data/scss/foundation/components/_orbit.scss +193 -0
  132. data/scss/foundation/components/_pagination.scss +99 -0
  133. data/scss/foundation/components/_panels.scss +76 -0
  134. data/scss/foundation/components/_pricing-tables.scss +130 -0
  135. data/scss/foundation/components/_progress-bars.scss +68 -0
  136. data/scss/foundation/components/_reveal.scss +131 -0
  137. data/scss/foundation/components/_section.scss +194 -0
  138. data/scss/foundation/components/_side-nav.scss +68 -0
  139. data/scss/foundation/components/_split-buttons.scss +159 -0
  140. data/scss/foundation/components/_sub-nav.scss +67 -0
  141. data/scss/foundation/components/_switch.scss +242 -0
  142. data/scss/foundation/components/_tables.scss +80 -0
  143. data/scss/foundation/components/_thumbs.scss +45 -0
  144. data/scss/foundation/components/_tooltips.scss +113 -0
  145. data/scss/foundation/components/_top-bar.scss +443 -0
  146. data/scss/foundation/components/_type.scss +411 -0
  147. data/scss/foundation/components/_visibility.scss +117 -0
  148. data/scss/normalize.scss +396 -0
  149. data/templates/project/config.rb +26 -0
  150. data/templates/project/index.html +28 -43
  151. data/templates/project/manifest.rb +21 -28
  152. data/templates/project/scss/_settings.scss +4 -243
  153. data/templates/project/scss/app.scss +37 -44
  154. data/templates/project/scss/normalize.scss +396 -0
  155. data/test/stylesheets/styles.css +955 -0
  156. metadata +144 -153
  157. data/config/deploy.rb +0 -42
  158. data/lib/foundation/generators/layout_generator.rb +0 -28
  159. data/scss/foundation/_settings.scss +0 -281
  160. data/scss/foundation/common/_base.scss +0 -4
  161. data/scss/foundation/common/_forms.scss +0 -117
  162. data/scss/foundation/common/_globals.scss +0 -35
  163. data/scss/foundation/common/_ratios.scss +0 -19
  164. data/scss/foundation/common/_typography.scss +0 -104
  165. data/scss/foundation/components/modules/_all.scss +0 -10
  166. data/scss/foundation/components/modules/_buttons.scss +0 -178
  167. data/scss/foundation/components/modules/_clearing.scss +0 -61
  168. data/scss/foundation/components/modules/_joyride.scss +0 -33
  169. data/scss/foundation/components/modules/_mqueries.scss +0 -458
  170. data/scss/foundation/components/modules/_navbar.scss +0 -74
  171. data/scss/foundation/components/modules/_offcanvas.scss +0 -55
  172. data/scss/foundation/components/modules/_orbit.scss +0 -90
  173. data/scss/foundation/components/modules/_reveal.scss +0 -34
  174. data/scss/foundation/components/modules/_tabs.scss +0 -67
  175. data/scss/foundation/components/modules/_topbar.scss +0 -167
  176. data/scss/foundation/components/modules/_ui.scss +0 -292
  177. data/scss/foundation/functions/_all.scss +0 -2
  178. data/scss/foundation/functions/_convert-number-to-word.scss +0 -10
  179. data/scss/foundation/functions/_grid-calc.scss +0 -5
  180. data/scss/foundation/functions/modular-scale.scss +0 -3
  181. data/scss/foundation/mixins/_all.scss +0 -5
  182. data/scss/foundation/mixins/_clearfix.scss +0 -13
  183. data/scss/foundation/mixins/_css-triangle.scss +0 -22
  184. data/scss/foundation/mixins/_font-size.scss +0 -13
  185. data/scss/foundation/mixins/_respond-to.scss +0 -11
  186. data/scss/foundation/mixins/_semantic-grid.scss +0 -66
  187. data/test/buttons.html +0 -189
  188. data/test/clearing.html +0 -85
  189. data/test/config.rb +0 -11
  190. data/test/elements.html +0 -490
  191. data/test/forms.html +0 -371
  192. data/test/grid.html +0 -543
  193. data/test/images/orbit-demo/demo1.jpeg +0 -0
  194. data/test/images/orbit-demo/demo2.jpeg +0 -0
  195. data/test/images/orbit-demo/demo3.jpeg +0 -0
  196. data/test/images/orbit-demo/slider-background.jpeg +0 -0
  197. data/test/index.html +0 -83
  198. data/test/joyride.html +0 -127
  199. data/test/magellan.html +0 -112
  200. data/test/navigation.html +0 -269
  201. data/test/orbit.html +0 -112
  202. data/test/reveal.html +0 -91
  203. data/test/scss/_settings.scss +0 -245
  204. data/test/scss/styles.scss +0 -50
  205. data/test/tabs.html +0 -197
  206. data/test/template.html +0 -52
  207. data/test/topbar-login.html +0 -194
  208. data/test/topbar.html +0 -139
  209. data/test/type.html +0 -188
  210. data/vendor/assets/images/foundation/orbit/bullets.jpg +0 -0
  211. data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
  212. data/vendor/assets/images/foundation/orbit/left-arrow.png +0 -0
  213. data/vendor/assets/images/foundation/orbit/loading.gif +0 -0
  214. data/vendor/assets/images/foundation/orbit/mask-black.png +0 -0
  215. data/vendor/assets/images/foundation/orbit/pause-black.png +0 -0
  216. data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
  217. data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
  218. data/vendor/assets/images/foundation/orbit/rotator-black.png +0 -0
  219. data/vendor/assets/images/foundation/orbit/timer-black.png +0 -0
  220. data/vendor/assets/javascripts/foundation/app.js +0 -41
  221. data/vendor/assets/javascripts/foundation/index.js +0 -19
  222. data/vendor/assets/javascripts/foundation/jquery.event.move.js +0 -580
  223. data/vendor/assets/javascripts/foundation/jquery.event.swipe.js +0 -130
  224. data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +0 -47
  225. data/vendor/assets/javascripts/foundation/jquery.foundation.alerts.js +0 -20
  226. data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +0 -83
  227. data/vendor/assets/javascripts/foundation/jquery.foundation.clearing.js +0 -413
  228. data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +0 -502
  229. data/vendor/assets/javascripts/foundation/jquery.foundation.joyride.js +0 -639
  230. data/vendor/assets/javascripts/foundation/jquery.foundation.magellan.js +0 -96
  231. data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +0 -27
  232. data/vendor/assets/javascripts/foundation/jquery.foundation.navigation.js +0 -55
  233. data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +0 -919
  234. data/vendor/assets/javascripts/foundation/jquery.foundation.reveal.js +0 -794
  235. data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +0 -66
  236. data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +0 -211
  237. data/vendor/assets/javascripts/foundation/jquery.foundation.topbar.js +0 -174
  238. data/vendor/assets/javascripts/foundation/jquery.js +0 -9555
  239. data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +0 -50
@@ -1,61 +0,0 @@
1
- //-------------------------
2
- // Clearing Styles
3
- //-------------------------
4
- .clearing-blackout { background: $clearingOldBrowserBg; background: $clearingBg; position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 999;
5
- .clearing-close { display: block; }
6
- }
7
-
8
- .clearing-container { position: relative; z-index: 999; height: 100%; overflow: hidden; }
9
-
10
- .visible-img { height: $clearingActiveImgHeight; position: relative;
11
- img { position: absolute; left: 50%; top: 50%; margin-left: -50%; max-height: 100%; max-width: 100%; }
12
- .clearing-caption { color: $clearingCaptionFontColor; margin-bottom: 0; text-align: center; position: absolute; bottom: 0; background: $clearingCaptionOldBrowserBg; background: $clearingCaptionBg; width: 100%; padding: 10px 100px; }
13
- }
14
-
15
- .clearing-close { z-index: 999; position: absolute; top: 10px; right: 20px; font-size: 30px; line-height: 1; color: $clearingCloseColor; display: none;
16
- &:hover, &:focus { color: #ccc; }
17
- }
18
- .clearing-main-left, .clearing-main-right { position: absolute; top: 50%; margin-top: -16px; }
19
- .clearing-main-left.disabled, .clearing-main-right.disabled { opacity: 0.5; }
20
- .clearing-main-left:active, .clearing-main-right:active { margin-top: -15px; }
21
- .clearing-main-left { left: 10px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,right); }
22
- .clearing-main-right { right: 10px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,left); }
23
-
24
- ul[data-clearing].block-grid.three-up > li:nth-child(3n+1) { clear: none; }
25
-
26
- ul[data-clearing] li { cursor: pointer; display: block;
27
- &.clearing-feature ~ li { display: none; }
28
- }
29
-
30
- .clearing-assembled .clearing-container {
31
- .carousel { background: $clearingCarouselOldBrowserBg; background: $clearingCarouselBg; height: $clearingCarouselHeight; margin-top: 5px; }
32
- .visible-img { background: $clearingImgOldBrowserBg; background: $clearingImgBg; overflow: hidden; }
33
- ul[data-clearing] { z-index: 999; width: 200%; height: 100%; margin-left: 0; position: relative; left: 0;
34
- li { display: block; width: $clearingCarouselThumbWidth; height: inherit; padding: 0; float: left; overflow: hidden; background: #222; margin-right: 1px; position: relative;
35
- &.fix-height {
36
- img { min-height: 100%; height: 100%; max-width: none; }
37
- }
38
- img { cursor: pointer !important; min-width: 100% !important; }
39
- &.visible { border-top: $clearingCarouselThumbActiveBorder; }
40
- }
41
- }
42
- }
43
-
44
- /* Overrides clear:both; when using block-grid with Clearing. Also overrided .th styling when Clearing is open */
45
- ul.block-grid[data-clearing] { overflow: visible; }
46
- .clearing-blackout {
47
- ul.block-grid[data-clearing] {
48
- @for $i from 1 through $blockGridElements {
49
- &.#{convert-number-to-word($i)}-up {
50
- &>li {
51
- @if $i > 1 { &:nth-child(#{$i}n+1) { clear: none; } }
52
- }
53
- }
54
- }
55
- }
56
- .th img { border: none; @include box-shadow(0 0 0 0 rgba(#000,0)); @include border-radius(0); }
57
- &:hover, &:focus {
58
- img { @include box-shadow(0 0 0 0 rgba(0,0,0,0)); }
59
- }
60
- }
61
-
@@ -1,33 +0,0 @@
1
- #joyRideTipContent { display: none; }
2
-
3
- /* Default styles for the container */
4
- .joyride-tip-guide { display: none; position: absolute; background: $tipBgIE8; background: $tipBg; color: $tipFontColor; width: $tipDefaultWidth; z-index: 101; top: 0; left: 0; font-family: inherit; font-weight: normal; @include border-radius($tipBorderRadius); }
5
- .joyride-content-wrapper { padding: $tipPadding; }
6
-
7
- /* Add a little css triangle pip, older browser just miss out on the fanciness of it */
8
- .joyride-tip-guide {
9
- span.joyride-nub { display: block; position: absolute; left: 22px; width: 0; height: 0; border: solid $tipNubSize;
10
- &.top { border-color: $tipBgIE8; border-color: $tipBg; border-top-color: transparent !important; border-left-color: transparent !important; border-right-color: transparent !important; top: -($tipNubSize*2); bottom: none; }
11
- &.bottom { border-color: $tipBgIE8; border-color: $tipBg !important; border-bottom-color: transparent !important; border-left-color: transparent !important; border-right-color: transparent !important; bottom: -($tipNubSize*2); bottom: none; }
12
- &.right { border-color: $tipBgIE8; border-color: $tipBg !important; border-top-color: transparent !important; border-right-color: transparent !important; border-bottom-color: transparent !important; top: 22px; bottom: none; left: auto; right: -($tipNubSize*2); }
13
- &.left { border-color: $tipBgIE8; border-color: $tipBg !important; border-top-color: transparent !important; border-left-color: transparent !important; border-bottom-color: transparent !important; top: 22px; left: -($tipNubSize*2); right: auto; bottom: none; }
14
- }
15
- }
16
-
17
- /* Typography */
18
- .joyride-tip-guide h1,
19
- .joyride-tip-guide h2,
20
- .joyride-tip-guide h3,
21
- .joyride-tip-guide h4,
22
- .joyride-tip-guide h5,
23
- .joyride-tip-guide h6 { line-height: 1.25; margin: 0; font-weight: $tipHeaderWeight; color: $tipFontColor }
24
- .joyride-tip-guide p { margin: 0 0 18px 0; font-size: $tipFontSize; line-height: 1.3; }
25
-
26
- .joyride-timer-indicator-wrap { width: $tipTimerWidth; height: $tipTimerHeight; border: $tipTimerBorder; position: absolute; right: 17px; bottom: 16px; }
27
- .joyride-timer-indicator { display: block; width: 0; height: inherit; background: $tipTimerColor; }
28
-
29
- .joyride-close-tip { position: absolute; right: 10px; top: 10px; color: $tipCloseColor !important; text-decoration: none; font-size: $tipCloseSize; font-weight: $tipCloseWeight; line-height: .5 !important;
30
- &:hover, &:focus { color: #eee !important; }
31
- }
32
-
33
- .joyride-modal-bg { position: fixed; height: 100%; width: 100%; background: transparent; background: $tipScreenFill; z-index: 100; display: none; top: 0; left: 0; cursor: pointer; }
@@ -1,458 +0,0 @@
1
- /* Visibility Classes ---------------------- */
2
- /* */
3
- /* Standard (large) display targeting */
4
- .show-for-small,
5
- .show-for-medium,
6
- .show-for-medium-down,
7
- .hide-for-large,
8
- .hide-for-large-up,
9
- .show-for-xlarge,
10
- .show-for-print { display: none !important; }
11
-
12
- .hide-for-small,
13
- .hide-for-medium,
14
- .hide-for-medium-down,
15
- .show-for-large,
16
- .show-for-large-up,
17
- .hide-for-xlarge,
18
- .hide-for-print { display: inherit !important; }
19
-
20
- /* Very large display targeting */
21
- @media only screen and (min-width: $screenXlarge) {
22
- .hide-for-small,
23
- .hide-for-medium,
24
- .hide-for-medium-down,
25
- .hide-for-large,
26
- .show-for-large-up,
27
- .show-for-xlarge { display: inherit !important; }
28
-
29
- .show-for-small,
30
- .show-for-medium,
31
- .show-for-medium-down,
32
- .show-for-large,
33
- .hide-for-large-up,
34
- .hide-for-xlarge { display: none !important; }
35
- }
36
-
37
- /* Medium display targeting */
38
- @media only screen and (max-width: $screenMedium) and (min-width: $screenSmall) {
39
- .hide-for-small,
40
- .show-for-medium,
41
- .show-for-medium-down,
42
- .hide-for-large,
43
- .hide-for-large-up,
44
- .hide-for-xlarge { display: inherit !important; }
45
-
46
- .show-for-small,
47
- .hide-for-medium,
48
- .hide-for-medium-down,
49
- .show-for-large,
50
- .show-for-large-up,
51
- .show-for-xlarge { display: none !important; }
52
- }
53
-
54
- /* Small display targeting */
55
- @media only screen and (max-width: $screenSmall - 1) {
56
- .show-for-small,
57
- .hide-for-medium,
58
- .show-for-medium-down,
59
- .hide-for-large,
60
- .hide-for-large-up,
61
- .hide-for-xlarge { display: inherit !important; }
62
-
63
- .hide-for-small,
64
- .show-for-medium,
65
- .hide-for-medium-down,
66
- .show-for-large,
67
- .show-for-large-up,
68
- .show-for-xlarge { display: none !important; }
69
- }
70
-
71
- /* Orientation targeting */
72
- .show-for-landscape,
73
- .hide-for-portrait { display: inherit !important; }
74
- .hide-for-landscape,
75
- .show-for-portrait { display: none !important; }
76
-
77
- @media screen and (orientation: landscape) {
78
- .show-for-landscape,
79
- .hide-for-portrait { display: inherit !important; }
80
- .hide-for-landscape,
81
- .show-for-portrait { display: none !important; }
82
- }
83
-
84
- @media screen and (orientation: portrait) {
85
- .show-for-portrait,
86
- .hide-for-landscape { display: inherit !important; }
87
- .hide-for-portrait,
88
- .show-for-landscape { display: none !important; }
89
- }
90
-
91
- /* Touch-enabled device targeting */
92
- .show-for-touch { display: none !important; }
93
- .hide-for-touch { display: inherit !important; }
94
- .touch .show-for-touch { display: inherit !important; }
95
- .touch .hide-for-touch { display: none !important; }
96
-
97
- /* Specific overrides for elements that require something other than display: block */
98
-
99
- table.show-for-xlarge,
100
- table.show-for-large,
101
- table.hide-for-small,
102
- table.hide-for-medium { display: table !important; }
103
-
104
- @media only screen and (max-width: $screenMedium) and (min-width: $screenSmall) {
105
- .touch table.hide-for-xlarge,
106
- .touch table.hide-for-large,
107
- .touch table.hide-for-small,
108
- .touch table.show-for-medium { display: table !important; }
109
- }
110
-
111
- @media only screen and (max-width: $screenSmall - 1) {
112
- table.hide-for-xlarge,
113
- table.hide-for-large,
114
- table.hide-for-medium,
115
- table.show-for-small { display: table !important; }
116
- }
117
-
118
-
119
- /* 1280 tablet ------------ */
120
- @media only screen and (max-device-width: 1280px) {
121
-
122
- /* NavBar --- */
123
- /* */
124
- .touch .nav-bar li.has-flyout>a { padding-#{$defaultOpposite}: 36px !important; }
125
-
126
- }
127
-
128
- /* Covering almost all ----- */
129
- @media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px), only screen and (max-width: 767px) {
130
- .flex-video { padding-top: 0; }
131
- }
132
-
133
- /* Between Medium and Small */
134
- @media only screen and (max-width: $screenMedium) and (min-width: $screenSmall) {
135
-
136
- /* NavBar --- */
137
- /* */
138
- .touch .nav-bar li {
139
- a { font-size: ms(0) - 1; }
140
- &.has-flyout {
141
- &>a.flyout-toggle { padding: ($navBarHeight / 2) !important; }
142
- &>a { padding-#{$defaultOpposite}: ($navBarHeight - 4) !important; }
143
- }
144
- }
145
-
146
- /* Clearing --- */
147
- /* */
148
- .clearing-main-right, .clearing-main-left {
149
- height: 100%;
150
- width: 40px;
151
- top: 0;
152
- border: none;
153
- &:before { position: absolute; top: 50%; }
154
- }
155
- .clearing-main-left {
156
- left: 0;
157
- &:before { left: 5px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,right); }
158
- }
159
- .clearing-main-right {
160
- height: 100%;
161
- right: 0;
162
- &:before { @include cssTriangle($clearingArrowSize,$clearingArrowColor,left); }
163
- }
164
-
165
- }
166
-
167
- /* Small Devices ------------ */
168
- @media only screen and (max-width: $screenSmall - 1) {
169
-
170
- /* Global Misc --- */
171
- /* */
172
- .left, .right { float: none; }
173
- body { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; width: 100%; min-width: 0; margin-#{$defaultFloat}: 0; margin-#{$defaultOpposite}: 0; padding-#{$defaultFloat}: 0; padding-#{$defaultOpposite}: 0; }
174
-
175
- /* The Grid --- */
176
- /* */
177
- .row { width: auto; min-width: 0; margin-#{$defaultFloat}: 0; margin-#{$defaultOpposite}: 0; }
178
- .column, .columns { width: auto !important; float: none; }
179
- .column:last-child, .columns:last-child { float: none; }
180
- [class*="column"] + [class*="column"]:last-child { float: none; }
181
- .column:before, .columns:before, .column:after, .columns:after { content:""; display:table; }
182
- .column:after, .columns:after { clear: both; }
183
-
184
- // Placeholder classes for mobile grid overrides
185
- %no-default-margin { margin-#{$defaultFloat}: 0 !important; }
186
- %default-auto { #{$defaultFloat}: auto; }
187
- %opposite-auto { #{$defaultOpposite}: auto; }
188
-
189
- @for $i from 1 through $totalColumns - 2 {
190
- .offset-by-#{convert-number-to-word($i)} { @extend %no-default-margin; }
191
- }
192
- @for $i from 2 through $totalColumns - 2 {
193
- .push-#{convert-number-to-word($i)} { @extend %default-auto; }
194
- .pull-#{convert-number-to-word($i)} { @extend %opposite-auto; }
195
- }
196
-
197
- /* Mobile 4-column Grid */
198
- @for $i from 1 through $mobileTotalColumns {
199
- .row {
200
- .mobile-#{convert-number-to-word($i)} { width: gridCalc($i, $mobileTotalColumns) !important; float: $defaultFloat; padding: 0 ($columnGutter/2);
201
- &:last-child { float: $defaultOpposite; }
202
- &.end { float: $defaultFloat; }
203
- }
204
- &.collapse {
205
- .mobile-#{convert-number-to-word($i)} { padding: 0; }
206
- }
207
- }
208
- }
209
- @for $i from 1 through $mobileTotalColumns - 1 {
210
- .push-#{convert-number-to-word($i)}-mobile { #{$defaultFloat}: gridCalc($i, $mobileTotalColumns); }
211
- .pull-#{convert-number-to-word($i)}-mobile { #{$defaultOpposite}: gridCalc($i, $mobileTotalColumns); }
212
- }
213
-
214
- /* Block Grids --- */
215
- /* */
216
- .block-grid.mobile {
217
- &>li { float: none; width: 100%; margin-#{$defaultFloat}: 0; }
218
- }
219
-
220
- .block-grid {
221
- &>li { clear: none; }
222
- @for $i from 1 through $blockGridElements {
223
- &.mobile-#{convert-number-to-word($i)}-up>li {
224
- width: 100%/$i;
225
- @if $i > 1 { &:nth-child(#{$i}n+1) { clear: both; } }
226
- }
227
- }
228
- }
229
-
230
- /* Forms --- */
231
- /* */
232
-
233
- /* Label alignment */
234
- label.right { text-align: left; }
235
- /* Extend width of all inputs */
236
- @for $i from 1 through $totalColumns {
237
- input[type="text"].#{convert-number-to-word($i)},
238
- input[type="password"].#{convert-number-to-word($i)},
239
- input[type="date"].#{convert-number-to-word($i)},
240
- input[type="datetime"].#{convert-number-to-word($i)},
241
- input[type="email"].#{convert-number-to-word($i)},
242
- input[type="number"].#{convert-number-to-word($i)},
243
- input[type="search"].#{convert-number-to-word($i)},
244
- input[type="tel"].#{convert-number-to-word($i)},
245
- input[type="time"].#{convert-number-to-word($i)},
246
- input[type="url"].#{convert-number-to-word($i)},
247
- textarea.#{convert-number-to-word($i)} {
248
- width: 100% !important;
249
- }
250
- }
251
-
252
- // /* Typography --- */
253
- // /* */
254
-
255
- // Coming Soon
256
-
257
- /* Buttons --- */
258
- /* */
259
-
260
- /* Basic overrides */
261
- .button { display: block; }
262
- button.button, input[type="submit"].button, input[type="reset"].button { width: 100%; padding-#{$defaultFloat}: 0; padding-#{$defaultOpposite}: 0; }
263
- /* Button Groups */
264
- .button-group {
265
- button.button, input[type="submit"].button { width: auto; padding: $btnBase ($btnBase * 2) ($btnBase + 1);
266
- &.large { padding: ($largeBtnBase) ($largeBtnBase * 2) ($largeBtnBase + 1); }
267
- &.medium { padding: $btnBase ($btnBase * 2) ($btnBase + 1); }
268
- &.small { padding: ($smallBtnBase) ($smallBtnBase * 2) ($smallBtnBase + 1); }
269
- &.tiny { padding: ($tinyBtnBase) ($tinyBtnBase * 2) ($tinyBtnBase + 1); }
270
- }
271
- &.even button.button, &.even input[type="submit"].button { width: 100%; padding-#{$defaultFloat}: 0; padding-#{$defaultOpposite}: 0; }
272
- }
273
-
274
- /* Navbar --- */
275
- /* */
276
- .nav-bar { height: auto;
277
- &>li { float: none; display: block; border-right: none; }
278
- &>li>a.main { text-align: $defaultFloat; border-top: 1px solid #ddd; border-#{$defaultOpposite}: none; }
279
- &>li:first-child>a.main { border-top: none; }
280
- &>li.has-flyout>a.flyout-toggle { position: absolute; #{$defaultOpposite}: 0; top: 0; padding: ($navBarHeight / 2)+2; z-index: 2; display: block; }
281
- &>li.has-flyout.is-touch>a.flyout-toggle span { content: ""; width: 0; height: 0; display: block; }
282
- &>li.has-flyout>a.flyout-toggle:hover span { border-top-color: #141414; }
283
- &.vertical>li.has-flyout>.flyout { left: 0; }
284
- }
285
- .flyout { position: relative; width: 100% !important; top: auto; margin-#{$defaultOpposite}: -2px; border-width: 1px 1px 0 1px;
286
- &.right { float: none; right: auto; #{$defaultFloat}: -1px; }
287
- &.small, &.large { width: 100% !important; }
288
- p:last-child { margin-bottom: 18px; }
289
- }
290
-
291
- /* Reveal --- */
292
- /* */
293
- .reveal-modal-bg { position: absolute; }
294
- .reveal-modal,
295
- .reveal-modal.small,
296
- .reveal-modal.medium,
297
- .reveal-modal.large,
298
- .reveal-modal.xlarge { width: 80%; top: 15px; #{$defaultFloat}: 50%; margin-#{$defaultFloat}: -40%; padding: 20px; height: auto; }
299
-
300
- /* Clearing --- */
301
- /* */
302
- .clearing-container { margin: 0; }
303
- .clearing-close { z-index: 99; font-size: ms(4); top: 0px; right: 5px; }
304
- .clearing-caption { position: fixed; bottom: 0; left: 0; padding: 10px !important; line-height: 1.3; }
305
- .clearing-main-right, .clearing-main-left { display: none; }
306
- .clearing-blackout.clearing-assembled {
307
- .visible-img, .clearing-container { height: 100%; }
308
- ul[data-clearing] { display: none; }
309
- }
310
-
311
- /* Joyride --- */
312
- /* */
313
- .joyride-tip-guide { width: 95% !important; left: 2.5% !important; @include border-radius($tipBorderRadius); }
314
- .joyride-tip-guide-wrapper { width: 100%; }
315
-
316
- /* Tabs --- */
317
- /* */
318
- .tabs.mobile { width: auto; margin: 20px -20px 40px; border-bottom: solid 1px #ccc; height: auto; margin: 20px -15px 0px -15px;
319
- dt, li, dd { float: none; height: auto; }
320
- dd a, li a { font-size: ms(0) + 1; display: block; width: auto; height: auto; padding: 18px 20px; margin: 0; color: #555; line-height: 1; border: none; border-#{$defaultFloat}: none; border-#{$defaultOpposite}: none; border-top: 1px solid #ccc; background: #fff; }
321
- dd a.active, li a.active { border: none; background: $mainColor; color: #fff; margin: 0; position: static; top: 0; height: auto; }
322
- dd:first-child a.active, li:first-child a.active { margin: 0; }
323
- &+.tabs-content.contained { margin-#{$defaultFloat}:-15px; margin-#{$defaultOpposite}:-15px; }
324
- .section-title { padding-#{$defaultFloat}: 20px !important; }
325
- }
326
-
327
- .contained.mobile { margin-bottom: 0; }
328
- .contained.tabs.mobile dd a, .contained.tabs.mobile li a { padding: 18px 20px; }
329
- .tabs.mobile + ul.contained { margin-#{$defaultFloat}: -20px; margin-#{$defaultOpposite}: -20px; border-width: 0 0 1px 0; }
330
-
331
- /* UI Elements --- */
332
- /* */
333
- /* Tooltips */
334
- .tooltip {
335
- font-size: $tooltipFontSizeScreenSm;
336
- line-height: 1.4;
337
- padding: 7px 10px 9px 10px;
338
- left: 50% !important;
339
- max-width: 80% !important;
340
- margin-left: -40%;
341
- font-size: 110%;
342
- }
343
- .tooltip > .nub, .tooltip.top > .nub, .tooltip.left > .nub, .tooltip.right > .nub {
344
- border-color: transparent transparent $tooltipBackgroundColor transparent;
345
- border-color: transparent transparent rgba($tooltipBackgroundColor,$tooltipBgOpacityScreenSm) transparent;
346
- top: -12px;
347
- left: 10px;
348
- }
349
- }
350
-
351
- /* Topbar Specific Breakpoint that you can customize */
352
- @media only screen and (max-width: $topBarBreakPoint) {
353
-
354
- .top-bar { margin-bottom: 0; overflow: hidden; height: $topBarHeightMobile; background: $topBarDropBgColor;
355
- .js-generated { display: block; }
356
-
357
- /* Override contain to grid stuff for breakpoint */
358
- .contain-to-grid & { width: auto; }
359
-
360
- /* Setting up the sliding area */
361
- section { left: 0; position: relative; width: auto; @include single-transition(left,300ms,0); }
362
- ul { width: 100%; height: 100%; margin-bottom: 0; display: block;
363
- &>li { float: none;
364
- &.active, &:hover { background: darken($topBarDropBgColor, 5%); }
365
- /* Branding and name */
366
- &.name { height: $topBarHeightMobile;
367
- h1 { line-height: 1;
368
- a { color: $topBarLinkColor; display: block; line-height: $topBarHeightMobile !important; padding-left: $topBarHeightMobile / 3; height: $topBarHeightMobile; }
369
- }
370
- }
371
- &:hover, &.active { a { color: $topBarDropLinkColor; } }
372
- a:not(.button) { color: $topBarDropLinkColor; }
373
-
374
- /* Dropdown Toggle */
375
- &.toggle-topbar { cursor: pointer; display: block; height: $topBarHeightMobile; position: absolute; right: 0; top: 0; width: 50%;
376
- a { @include cssTriangle($topBarNavToggleSize, $topBarNavToggleColor, top); padding: 0; position: absolute; top: 50%; right: $topBarHeightMobile / 2; margin-top: -($topBarNavToggleSize / 2); }
377
- @if $topBarBreakPoint == 9999px { a { right: ($topBarHeight / 2) + ($columnGutter / 2);} }
378
- &:hover { background: inherit; }
379
- }
380
- &.toggle-topbar a { padding: 0 !important; }
381
-
382
- /* Divider for breakpoint */
383
- &.divider { border-bottom: solid 1px lighten($topBarDropBgColor, 10%); border-top: solid 1px darken($topBarDropBgColor, 15%); clear: both; height: 1px !important; margin: 8px 0 !important; width: 100%; }
384
-
385
- /* Search Overrides for breakpoint size */
386
- &.search { padding: 0 $topBarHeight / 2;
387
- form { width: 100%;
388
- input[type=text] { width: 75%; }
389
- .button { top: -1px; width: 25%; }
390
- }
391
- }
392
-
393
- /* Dropdown Level 1 */
394
- &.has-dropdown {
395
- a { padding-right: $topBarHeight * .75;
396
- &:after { @include cssTriangle($topBarDropToggleSize, rgba($topBarDropToggleColor, $topBarDropToggleAlpha), left); margin-right: $topBarHeight / 3; margin-top: -($topBarDropToggleSize / 2) - 2; position: absolute; top: 50%; }
397
- }
398
- &:hover >.dropdown { display: block; visibility: hidden; }
399
- .dropdown { visibility: hidden; z-index: 0 !important; }
400
- &.moved { position: static;
401
- &>.dropdown { top: 0; visibility: visible;
402
- li {
403
- label { margin-bottom: 6px; padding-top: 6px !important; font-size: ms(0) - 3; }
404
- &:not(.title) { padding-bottom: 0;
405
- a { padding: 8px $topBarHeightMobile / 2; font-size: ms(0); }
406
- }
407
- a, label { padding: 0 $topBarHeight / 2; }
408
- a:hover { background: lighten($topBarBgColor, 10%); display: block; }
409
- &.divider { border-bottom: solid 1px rgba(255,255,255,0.1); margin-top: 8px !important; margin-bottom: 8px !important; }
410
- }
411
- }
412
- .back.title { padding-bottom: 0;
413
- a:before { position: absolute; top: 50%; left: ($topBarHeight / 2) - $topBarDropToggleSize; margin-top: -$topBarDropToggleSize; width: 0; height: 0; @include cssTriangle($topBarDropToggleSize, $topBarDropToggleColor, right); }
414
- h5 { margin: 0; padding-left: $topBarDropToggleSize * 3; position: relative;
415
- a { background: transparent; padding-top: 8px; padding-bottom: 8px; font-size: ms(2); font-weight: $topBarTitleWeight; }
416
- }
417
- }
418
- }
419
- }
420
-
421
- /* Dropdown Level 2 */
422
- &.has-dropdown .dropdown li { background: transparent;
423
- &.has-dropdown {
424
- .dropdown { left: 100% !important; top: 0; right: auto !important; }
425
- &>a { padding-right: $topBarHeight * .75;
426
- &:after { content: ""; margin-right: $topBarHeightMobile / 3; @include cssTriangle($topBarDropToggleSize, rgba($topBarDropToggleColor, $topBarDropToggleAlpha), left); position: absolute; top: 50%; margin-top: -($topBarDropToggleSize / 2) - 2; }
427
- li a {
428
- &:hover { background: lighten($topBarBgColor, 10%); }
429
- }
430
- }
431
- &.moved { position: static;
432
- .dropdown { top: 0; visibility: visible; }
433
- }
434
- &:hover { display: block; }
435
- }
436
- }
437
- }
438
- &.left, &.right { float: none; width: 100%;
439
- &>li { display: block; float: none; margin: 0 !important;
440
- &.has-dropdown {
441
- .dropdown { left: 100% !important; top: 0; right: auto !important; }
442
- }
443
- }
444
- }
445
- }
446
- section > ul li a:not(.button) { padding-left: $topBarHeightMobile / 2 !important; }
447
-
448
- /* When the Small Nav is Showing */
449
- &.expanded { height: 100%;
450
- ul li.toggle-topbar a { @include cssTriangle($topBarNavToggleSize, darken($topBarNavToggleColor, 20%), bottom); top: auto; bottom: 50%; margin-bottom: -($topBarNavToggleSize / 2); }
451
- }
452
- }
453
- .top-bar ul li.has-button { padding: 5px $topBarHeightMobile / 3; }
454
- .top-bar ul li .button.small { margin: 0 !important; display: inline-block; width: 100%; }
455
- .top-bar ul > li.has-button {
456
- a.button { margin: 0; }
457
- }
458
- }