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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/README.md +66 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/merriweather-bold-webfont.eot +0 -0
- data/app/assets/fonts/merriweather-bold-webfont.svg +294 -0
- data/app/assets/fonts/merriweather-bold-webfont.ttf +0 -0
- data/app/assets/fonts/merriweather-bold-webfont.woff +0 -0
- data/app/assets/fonts/merriweather-bold-webfont.woff2 +0 -0
- data/app/assets/fonts/merriweather-italic-webfont.eot +0 -0
- data/app/assets/fonts/merriweather-italic-webfont.svg +283 -0
- data/app/assets/fonts/merriweather-italic-webfont.ttf +0 -0
- data/app/assets/fonts/merriweather-italic-webfont.woff +0 -0
- data/app/assets/fonts/merriweather-italic-webfont.woff2 +0 -0
- data/app/assets/fonts/merriweather-light-webfont.eot +0 -0
- data/app/assets/fonts/merriweather-light-webfont.svg +299 -0
- data/app/assets/fonts/merriweather-light-webfont.ttf +0 -0
- data/app/assets/fonts/merriweather-light-webfont.woff +0 -0
- data/app/assets/fonts/merriweather-light-webfont.woff2 +0 -0
- data/app/assets/fonts/merriweather-regular-webfont.eot +0 -0
- data/app/assets/fonts/merriweather-regular-webfont.svg +294 -0
- data/app/assets/fonts/merriweather-regular-webfont.ttf +0 -0
- data/app/assets/fonts/merriweather-regular-webfont.woff +0 -0
- data/app/assets/fonts/merriweather-regular-webfont.woff2 +0 -0
- data/app/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
- data/app/assets/fonts/sourcesanspro-bold-webfont.svg +965 -0
- data/app/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
- data/app/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
- data/app/assets/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
- data/app/assets/fonts/sourcesanspro-italic-webfont.eot +0 -0
- data/app/assets/fonts/sourcesanspro-italic-webfont.svg +853 -0
- data/app/assets/fonts/sourcesanspro-italic-webfont.ttf +0 -0
- data/app/assets/fonts/sourcesanspro-italic-webfont.woff +0 -0
- data/app/assets/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
- data/app/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
- data/app/assets/fonts/sourcesanspro-light-webfont.svg +915 -0
- data/app/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
- data/app/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
- data/app/assets/fonts/sourcesanspro-light-webfont.woff2 +0 -0
- data/app/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
- data/app/assets/fonts/sourcesanspro-regular-webfont.svg +989 -0
- data/app/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
- data/app/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
- data/app/assets/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
- data/app/assets/images/design/background/thread.png +0 -0
- data/app/assets/images/design/logo/logo-alt-hover.png +0 -0
- data/app/assets/images/design/logo/logo-alt.png +0 -0
- data/app/assets/images/design/logo/logo-hover.png +0 -0
- data/app/assets/images/design/logo/logo-small.png +0 -0
- data/app/assets/images/design/logo/logo.png +0 -0
- data/app/assets/images/design/logo/og-image.jpg +0 -0
- data/app/assets/images/design/seal/seal-footer.png +0 -0
- data/app/assets/images/design/seal/seal-footer.svg +1 -0
- data/app/assets/images/design/seal/seal.png +0 -0
- data/app/assets/images/design/seal/stars.png +0 -0
- data/app/assets/images/icons/apple-touch-icon-114x114.png +0 -0
- data/app/assets/images/icons/apple-touch-icon-152x152.png +0 -0
- data/app/assets/images/icons/apple-touch-icon-72x72.png +0 -0
- data/app/assets/images/icons/apple-touch-icon.png +0 -0
- data/app/assets/images/icons/favicon.ico +0 -0
- data/app/assets/images/icons/va.png +0 -0
- data/app/assets/images/icons/watermark.png +0 -0
- data/app/assets/images/icons/wrench.png +0 -0
- data/app/assets/images/social-icons/png/facebook25.png +0 -0
- data/app/assets/images/social-icons/png/rss25.png +0 -0
- data/app/assets/images/social-icons/png/twitter16.png +0 -0
- data/app/assets/images/social-icons/png/youtube15.png +0 -0
- data/app/assets/images/social-icons/svg/facebook25.svg +11 -0
- data/app/assets/images/social-icons/svg/rss25.svg +1 -0
- data/app/assets/images/social-icons/svg/twitter16.svg +15 -0
- data/app/assets/images/social-icons/svg/youtube15.svg +1 -0
- data/app/assets/js/components.js +376 -0
- data/app/assets/js/foundation/foundation.abide.js +408 -0
- data/app/assets/js/foundation/foundation.accordion.js +88 -0
- data/app/assets/js/foundation/foundation.alert.js +43 -0
- data/app/assets/js/foundation/foundation.clearing.js +586 -0
- data/app/assets/js/foundation/foundation.dropdown.js +463 -0
- data/app/assets/js/foundation/foundation.equalizer.js +104 -0
- data/app/assets/js/foundation/foundation.interchange.js +359 -0
- data/app/assets/js/foundation/foundation.joyride.js +932 -0
- data/app/assets/js/foundation/foundation.js +725 -0
- data/app/assets/js/foundation/foundation.magellan.js +215 -0
- data/app/assets/js/foundation/foundation.offcanvas.js +152 -0
- data/app/assets/js/foundation/foundation.orbit.js +476 -0
- data/app/assets/js/foundation/foundation.reveal.js +498 -0
- data/app/assets/js/foundation/foundation.slider.js +281 -0
- data/app/assets/js/foundation/foundation.tab.js +249 -0
- data/app/assets/js/foundation/foundation.tooltip.js +339 -0
- data/app/assets/js/foundation/foundation.topbar.js +458 -0
- data/app/assets/js/foundation.min.js +6376 -0
- data/app/assets/js/scripts-no-touch.js +33 -0
- data/app/assets/js/scripts-touch.js +33 -0
- data/app/assets/js/va_common_main.js +1 -0
- data/app/assets/js/vendor/classie.js +80 -0
- data/app/assets/js/vendor/html5shiv.js +8 -0
- data/app/assets/js/vendor/jquery-1.11.0.min.js +4 -0
- data/app/assets/js/vendor/jquery.js +9789 -0
- data/app/assets/js/vendor/jquery.smooth-scroll.js +255 -0
- data/app/assets/js/vendor/jquery.stellar.js +651 -0
- data/app/assets/js/vendor/jquery.tipsy.js +258 -0
- data/app/assets/js/vendor/menu.js +40 -0
- data/app/assets/js/vendor/modernizr.custom.js +4 -0
- data/app/assets/js/vendor/nwmatcher-1.2.5-min.js +7 -0
- data/app/assets/js/vendor/respond.min.js +6 -0
- data/app/assets/js/vendor/scroll-settings.js +3 -0
- data/app/assets/js/vendor/selectivizr-1.0.3b.js +560 -0
- data/app/assets/js/vendor/stellar-settings.js +8 -0
- data/app/assets/js/vendor/svg-injector.js +450 -0
- data/app/assets/js/vendor/tota11y.min.js +28 -0
- data/app/assets/js/vendor/wow.min.js +2 -0
- data/app/assets/stylesheets/_va.scss +2377 -0
- data/app/assets/stylesheets/components/_accordions.scss +98 -0
- data/app/assets/stylesheets/core/_base.scss +20 -0
- data/app/assets/stylesheets/core/_defaults.scss +92 -0
- data/app/assets/stylesheets/core/_grid-settings.scss +10 -0
- data/app/assets/stylesheets/core/_grid.scss +116 -0
- data/app/assets/stylesheets/core/_utilities.scss +105 -0
- data/app/assets/stylesheets/core/_variables.scss +88 -0
- data/app/assets/stylesheets/elements/_buttons.scss +189 -0
- data/app/assets/stylesheets/elements/_figure.scss +9 -0
- data/app/assets/stylesheets/elements/_inputs.scss +328 -0
- data/app/assets/stylesheets/elements/_labels.scss +39 -0
- data/app/assets/stylesheets/elements/_list.scss +82 -0
- data/app/assets/stylesheets/elements/_table.scss +39 -0
- data/app/assets/stylesheets/elements/_typography.scss +220 -0
- data/app/assets/stylesheets/foundation/_functions.scss +146 -0
- data/app/assets/stylesheets/foundation/_settings.scss +1467 -0
- data/app/assets/stylesheets/foundation/_variables.scss +1286 -0
- data/app/assets/stylesheets/foundation/components/_accordion.scss +157 -0
- data/app/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
- data/app/assets/stylesheets/foundation/components/_block-grid.scss +132 -0
- data/app/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
- data/app/assets/stylesheets/foundation/components/_button-groups.scss +200 -0
- data/app/assets/stylesheets/foundation/components/_buttons.scss +259 -0
- data/app/assets/stylesheets/foundation/components/_clearing.scss +256 -0
- data/app/assets/stylesheets/foundation/components/_dropdown-buttons.scss +131 -0
- data/app/assets/stylesheets/foundation/components/_dropdown.scss +262 -0
- data/app/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
- data/app/assets/stylesheets/foundation/components/_forms.scss +570 -0
- data/app/assets/stylesheets/foundation/components/_global.scss +481 -0
- data/app/assets/stylesheets/foundation/components/_grid.scss +289 -0
- data/app/assets/stylesheets/foundation/components/_icon-bar.scss +358 -0
- data/app/assets/stylesheets/foundation/components/_inline-lists.scss +57 -0
- data/app/assets/stylesheets/foundation/components/_joyride.scss +222 -0
- data/app/assets/stylesheets/foundation/components/_keystrokes.scss +61 -0
- data/app/assets/stylesheets/foundation/components/_labels.scss +106 -0
- data/app/assets/stylesheets/foundation/components/_magellan.scss +34 -0
- data/app/assets/stylesheets/foundation/components/_offcanvas.scss +515 -0
- data/app/assets/stylesheets/foundation/components/_orbit.scss +368 -0
- data/app/assets/stylesheets/foundation/components/_pagination.scss +162 -0
- data/app/assets/stylesheets/foundation/components/_panels.scss +101 -0
- data/app/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
- data/app/assets/stylesheets/foundation/components/_progress-bars.scss +79 -0
- data/app/assets/stylesheets/foundation/components/_range-slider.scss +169 -0
- data/app/assets/stylesheets/foundation/components/_reveal.scss +202 -0
- data/app/assets/stylesheets/foundation/components/_side-nav.scss +116 -0
- data/app/assets/stylesheets/foundation/components/_split-buttons.scss +199 -0
- data/app/assets/stylesheets/foundation/components/_sub-nav.scss +123 -0
- data/app/assets/stylesheets/foundation/components/_switches.scss +238 -0
- data/app/assets/stylesheets/foundation/components/_tables.scss +135 -0
- data/app/assets/stylesheets/foundation/components/_tabs.scss +123 -0
- data/app/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
- data/app/assets/stylesheets/foundation/components/_toolbar.scss +70 -0
- data/app/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
- data/app/assets/stylesheets/foundation/components/_top-bar.scss +691 -0
- data/app/assets/stylesheets/foundation/components/_type.scss +525 -0
- data/app/assets/stylesheets/foundation/components/_visibility.scss +408 -0
- data/app/assets/stylesheets/functions/_new-breakpoint.scss +49 -0
- data/app/assets/stylesheets/functions/_private.scss +114 -0
- data/app/assets/stylesheets/lib/_normalize.scss +427 -0
- data/app/assets/stylesheets/lib/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
- data/app/assets/stylesheets/lib/bourbon/_bourbon.scss +87 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_border-color.scss +26 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_border-radius.scss +48 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_border-style.scss +25 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_border-width.scss +25 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_buttons.scss +64 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_clearfix.scss +25 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_ellipsis.scss +30 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_font-stacks.scss +31 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_hide-text.scss +27 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_margin.scss +26 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_padding.scss +26 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_position.scss +48 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_prefixer.scss +66 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_retina-image.scss +25 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_size.scss +51 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_text-inputs.scss +112 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_timing-functions.scss +34 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_triangle.scss +63 -0
- data/app/assets/stylesheets/lib/bourbon/addons/_word-wrap.scss +29 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_animation.scss +43 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_appearance.scss +3 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_backface-visibility.scss +3 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_background-image.scss +42 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_background.scss +55 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_border-image.scss +59 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_calc.scss +4 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_columns.scss +47 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_filter.scss +4 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_flex-box.scss +287 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_font-face.scss +24 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_font-feature-settings.scss +4 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_hidpi-media-query.scss +10 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_hyphens.scss +4 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_image-rendering.scss +14 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_keyframes.scss +36 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_linear-gradient.scss +38 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_perspective.scss +8 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_placeholder.scss +8 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_radial-gradient.scss +39 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_selection.scss +42 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_text-decoration.scss +19 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_transform.scss +15 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_transition.scss +71 -0
- data/app/assets/stylesheets/lib/bourbon/css3/_user-select.scss +3 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_assign-inputs.scss +11 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_contains-falsy.scss +20 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_contains.scss +26 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_is-length.scss +11 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_is-light.scss +21 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_is-number.scss +11 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_is-size.scss +13 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_modular-scale.scss +69 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_px-to-em.scss +13 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_px-to-rem.scss +15 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_shade.scss +24 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_strip-units.scss +17 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_tint.scss +24 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_transition-property-name.scss +22 -0
- data/app/assets/stylesheets/lib/bourbon/functions/_unpack.scss +27 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_convert-units.scss +21 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_directional-values.scss +96 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_font-source-declaration.scss +43 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_gradient-positions-parser.scss +13 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-angle-parser.scss +25 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-gradient-parser.scss +41 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-positions-parser.scss +61 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_radial-arg-parser.scss +69 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_radial-gradient-parser.scss +50 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_radial-positions-parser.scss +18 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_render-gradients.scss +26 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_shape-size-stripper.scss +10 -0
- data/app/assets/stylesheets/lib/bourbon/helpers/_str-to-num.scss +50 -0
- data/app/assets/stylesheets/lib/bourbon/settings/_asset-pipeline.scss +7 -0
- data/app/assets/stylesheets/lib/bourbon/settings/_prefixer.scss +9 -0
- data/app/assets/stylesheets/lib/bourbon/settings/_px-to-em.scss +1 -0
- data/app/assets/stylesheets/lib/neat/_neat-helpers.scss +8 -0
- data/app/assets/stylesheets/lib/neat/_neat.scss +23 -0
- data/app/assets/stylesheets/lib/neat/functions/_new-breakpoint.scss +49 -0
- data/app/assets/stylesheets/lib/neat/functions/_private.scss +114 -0
- data/app/assets/stylesheets/lib/neat/grid/_box-sizing.scss +15 -0
- data/app/assets/stylesheets/lib/neat/grid/_direction-context.scss +33 -0
- data/app/assets/stylesheets/lib/neat/grid/_display-context.scss +28 -0
- data/app/assets/stylesheets/lib/neat/grid/_fill-parent.scss +22 -0
- data/app/assets/stylesheets/lib/neat/grid/_media.scss +92 -0
- data/app/assets/stylesheets/lib/neat/grid/_omega.scss +87 -0
- data/app/assets/stylesheets/lib/neat/grid/_outer-container.scss +38 -0
- data/app/assets/stylesheets/lib/neat/grid/_pad.scss +25 -0
- data/app/assets/stylesheets/lib/neat/grid/_private.scss +35 -0
- data/app/assets/stylesheets/lib/neat/grid/_row.scss +52 -0
- data/app/assets/stylesheets/lib/neat/grid/_shift.scss +50 -0
- data/app/assets/stylesheets/lib/neat/grid/_span-columns.scss +94 -0
- data/app/assets/stylesheets/lib/neat/grid/_to-deprecate.scss +97 -0
- data/app/assets/stylesheets/lib/neat/grid/_visual-grid.scss +42 -0
- data/app/assets/stylesheets/lib/neat/settings/_disable-warnings.scss +13 -0
- data/app/assets/stylesheets/lib/neat/settings/_grid.scss +51 -0
- data/app/assets/stylesheets/lib/neat/settings/_visual-grid.scss +27 -0
- data/app/assets/stylesheets/va_common_main.css.scss +18 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/generators/files/_footer.html.erb +89 -0
- data/lib/generators/files/_header.html.erb +7 -0
- data/lib/generators/va_common_generator.rb +6 -0
- data/lib/generators/va_footer_generator.rb +7 -0
- data/lib/generators/va_header_generator.rb +7 -0
- data/lib/va_common/engine.rb +4 -0
- data/lib/va_common/version.rb +3 -0
- data/lib/va_common.rb +2 -0
- data/va_common.gemspec +22 -0
- metadata +354 -0
|
@@ -0,0 +1,131 @@
|
|
|
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-button-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to set the color of the pip in dropdown buttons
|
|
13
|
+
$dropdown-button-pip-color: $white !default;
|
|
14
|
+
$dropdown-button-pip-color-alt: $oil !default;
|
|
15
|
+
|
|
16
|
+
// We use these to set the size of the pip in dropdown buttons
|
|
17
|
+
$button-pip-tny: rem-calc(6) !default;
|
|
18
|
+
$button-pip-sml: rem-calc(7) !default;
|
|
19
|
+
$button-pip-med: rem-calc(9) !default;
|
|
20
|
+
$button-pip-lrg: rem-calc(11) !default;
|
|
21
|
+
|
|
22
|
+
// We use these to style tiny dropdown buttons
|
|
23
|
+
$dropdown-button-padding-tny: $button-pip-tny * 7 !default;
|
|
24
|
+
$dropdown-button-pip-size-tny: $button-pip-tny !default;
|
|
25
|
+
$dropdown-button-pip-opposite-tny: $button-pip-tny * 3 !default;
|
|
26
|
+
$dropdown-button-pip-top-tny: (-$button-pip-tny / 2) + rem-calc(1) !default;
|
|
27
|
+
|
|
28
|
+
// We use these to style small dropdown buttons
|
|
29
|
+
$dropdown-button-padding-sml: $button-pip-sml * 7 !default;
|
|
30
|
+
$dropdown-button-pip-size-sml: $button-pip-sml !default;
|
|
31
|
+
$dropdown-button-pip-opposite-sml: $button-pip-sml * 3 !default;
|
|
32
|
+
$dropdown-button-pip-top-sml: (-$button-pip-sml / 2) + rem-calc(1) !default;
|
|
33
|
+
|
|
34
|
+
// We use these to style medium dropdown buttons
|
|
35
|
+
$dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3) !default;
|
|
36
|
+
$dropdown-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
|
|
37
|
+
$dropdown-button-pip-opposite-med: $button-pip-med * 2.5 !default;
|
|
38
|
+
$dropdown-button-pip-top-med: (-$button-pip-med / 2) + rem-calc(2) !default;
|
|
39
|
+
|
|
40
|
+
// We use these to style large dropdown buttons
|
|
41
|
+
$dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3) !default;
|
|
42
|
+
$dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
|
|
43
|
+
$dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5 !default;
|
|
44
|
+
$dropdown-button-pip-top-lrg: (-$button-pip-lrg / 2) + rem-calc(3) !default;
|
|
45
|
+
|
|
46
|
+
// @mixins
|
|
47
|
+
//
|
|
48
|
+
// Dropdown Button Mixin
|
|
49
|
+
//
|
|
50
|
+
// We use this mixin to build off of the button mixin and add dropdown button styles
|
|
51
|
+
//
|
|
52
|
+
// $padding - Determines the size of button you're working with. Default: medium. Options [tiny, small, medium, large]
|
|
53
|
+
// $pip-color - Color of the little triangle that points to the dropdown. Default: $white.
|
|
54
|
+
// $base-style - Add in base-styles. This can be set to false. Default:true
|
|
55
|
+
|
|
56
|
+
@mixin dropdown-button($padding:medium, $pip-color:$white, $base-style:true) {
|
|
57
|
+
|
|
58
|
+
// We add in base styles, but they can be negated by setting to 'false'.
|
|
59
|
+
@if $base-style {
|
|
60
|
+
position: relative;
|
|
61
|
+
outline: none;
|
|
62
|
+
|
|
63
|
+
// This creates the base styles for the triangle pip
|
|
64
|
+
&::after {
|
|
65
|
+
position: absolute;
|
|
66
|
+
content: "";
|
|
67
|
+
width: 0;
|
|
68
|
+
height: 0;
|
|
69
|
+
display: block;
|
|
70
|
+
border-style: solid;
|
|
71
|
+
border-color: $dropdown-button-pip-color transparent transparent transparent;
|
|
72
|
+
top: 50%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// If we're dealing with tiny buttons, use these styles
|
|
77
|
+
@if $padding == tiny {
|
|
78
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-tny;
|
|
79
|
+
&:after {
|
|
80
|
+
border-width: $dropdown-button-pip-size-tny;
|
|
81
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-tny;
|
|
82
|
+
margin-top: $dropdown-button-pip-top-tny;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// If we're dealing with small buttons, use these styles
|
|
87
|
+
@if $padding == small {
|
|
88
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-sml;
|
|
89
|
+
&::after {
|
|
90
|
+
border-width: $dropdown-button-pip-size-sml;
|
|
91
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-sml;
|
|
92
|
+
margin-top: $dropdown-button-pip-top-sml;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// If we're dealing with default (medium) buttons, use these styles
|
|
97
|
+
@if $padding == medium {
|
|
98
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-med;
|
|
99
|
+
&::after {
|
|
100
|
+
border-width: $dropdown-button-pip-size-med;
|
|
101
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-med;
|
|
102
|
+
margin-top: $dropdown-button-pip-top-med;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// If we're dealing with large buttons, use these styles
|
|
107
|
+
@if $padding == large {
|
|
108
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-lrg;
|
|
109
|
+
&::after {
|
|
110
|
+
border-width: $dropdown-button-pip-size-lrg;
|
|
111
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-lrg;
|
|
112
|
+
margin-top: $dropdown-button-pip-top-lrg;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// We can control the pip color. We didn't use logic in this case, just set it and forget it.
|
|
117
|
+
@if $pip-color {
|
|
118
|
+
&::after { border-color: $pip-color transparent transparent transparent; }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@include exports("dropdown-button") {
|
|
123
|
+
@if $include-html-button-classes {
|
|
124
|
+
.dropdown.button, button.dropdown { @include dropdown-button;
|
|
125
|
+
&.tiny { @include dropdown-button(tiny,$base-style:false); }
|
|
126
|
+
&.small { @include dropdown-button(small,$base-style:false); }
|
|
127
|
+
&.large { @include dropdown-button(large,$base-style:false); }
|
|
128
|
+
&.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
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-dropdown-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to controls height and width styles.
|
|
13
|
+
$f-dropdown-max-width: 200px !default;
|
|
14
|
+
$f-dropdown-height: auto !default;
|
|
15
|
+
$f-dropdown-max-height: none !default;
|
|
16
|
+
|
|
17
|
+
// Used for bottom position
|
|
18
|
+
$f-dropdown-margin-top: 2px !default;
|
|
19
|
+
|
|
20
|
+
// Used for right position
|
|
21
|
+
$f-dropdown-margin-left: $f-dropdown-margin-top !default;
|
|
22
|
+
|
|
23
|
+
// Used for left position
|
|
24
|
+
$f-dropdown-margin-right: $f-dropdown-margin-top !default;
|
|
25
|
+
|
|
26
|
+
// Used for top position
|
|
27
|
+
$f-dropdown-margin-bottom: $f-dropdown-margin-top !default;
|
|
28
|
+
|
|
29
|
+
// We use this to control the background color
|
|
30
|
+
$f-dropdown-bg: $white !default;
|
|
31
|
+
|
|
32
|
+
// We use this to set the border styles for dropdowns.
|
|
33
|
+
$f-dropdown-border-style: solid !default;
|
|
34
|
+
$f-dropdown-border-width: 1px !default;
|
|
35
|
+
$f-dropdown-border-color: scale-color($white, $lightness: -20%) !default;
|
|
36
|
+
|
|
37
|
+
// We use these to style the triangle pip.
|
|
38
|
+
$f-dropdown-triangle-size: 6px !default;
|
|
39
|
+
$f-dropdown-triangle-color: $white !default;
|
|
40
|
+
$f-dropdown-triangle-side-offset: 10px !default;
|
|
41
|
+
|
|
42
|
+
// We use these to control styles for the list elements.
|
|
43
|
+
$f-dropdown-list-style: none !default;
|
|
44
|
+
$f-dropdown-font-color: $charcoal !default;
|
|
45
|
+
$f-dropdown-font-size: rem-calc(14) !default;
|
|
46
|
+
$f-dropdown-list-padding: rem-calc(5, 10) !default;
|
|
47
|
+
$f-dropdown-line-height: rem-calc(18) !default;
|
|
48
|
+
$f-dropdown-list-hover-bg: $smoke !default;
|
|
49
|
+
$dropdown-mobile-default-float: 0 !default;
|
|
50
|
+
|
|
51
|
+
// We use this to control the styles for when the dropdown has custom content.
|
|
52
|
+
$f-dropdown-content-padding: rem-calc(20) !default;
|
|
53
|
+
|
|
54
|
+
// Default radius for dropdown.
|
|
55
|
+
$f-dropdown-radius: $global-radius !default;
|
|
56
|
+
|
|
57
|
+
//
|
|
58
|
+
// @mixins
|
|
59
|
+
//
|
|
60
|
+
//
|
|
61
|
+
// NOTE: Make default max-width change between list and content types. Can add more width with classes, maybe .small, .medium, .large, etc.;
|
|
62
|
+
// We use this to style the dropdown container element.
|
|
63
|
+
// $content-list - Sets list-style. Default: list. Options: [list, content]
|
|
64
|
+
// $triangle - Sets if dropdown has triangle. Default:true.
|
|
65
|
+
// $max-width - Default: $f-dropdown-max-width || 200px.
|
|
66
|
+
@mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) {
|
|
67
|
+
position: absolute;
|
|
68
|
+
left: -9999px;
|
|
69
|
+
list-style: $f-dropdown-list-style;
|
|
70
|
+
margin-#{$default-float}: 0;
|
|
71
|
+
outline: none;
|
|
72
|
+
|
|
73
|
+
> *:first-child { margin-top: 0; }
|
|
74
|
+
> *:last-child { margin-bottom: 0; }
|
|
75
|
+
|
|
76
|
+
@if $content == list {
|
|
77
|
+
width: 100%;
|
|
78
|
+
max-height: $f-dropdown-max-height;
|
|
79
|
+
height: $f-dropdown-height;
|
|
80
|
+
background: $f-dropdown-bg;
|
|
81
|
+
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
|
82
|
+
font-size: $f-dropdown-font-size;
|
|
83
|
+
z-index: 89;
|
|
84
|
+
}
|
|
85
|
+
@else if $content == content {
|
|
86
|
+
padding: $f-dropdown-content-padding;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: $f-dropdown-height;
|
|
89
|
+
max-height: $f-dropdown-max-height;
|
|
90
|
+
background: $f-dropdown-bg;
|
|
91
|
+
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
|
92
|
+
font-size: $f-dropdown-font-size;
|
|
93
|
+
z-index: 89;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@if $triangle == bottom {
|
|
97
|
+
margin-top: $f-dropdown-margin-top;
|
|
98
|
+
|
|
99
|
+
&:before {
|
|
100
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: -($f-dropdown-triangle-size * 2);
|
|
103
|
+
#{$default-float}: $f-dropdown-triangle-side-offset;
|
|
104
|
+
z-index: 89;
|
|
105
|
+
}
|
|
106
|
+
&:after {
|
|
107
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: -(($f-dropdown-triangle-size + 1) * 2);
|
|
110
|
+
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
|
111
|
+
z-index: 88;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.right:before {
|
|
115
|
+
#{$default-float}: auto;
|
|
116
|
+
#{$opposite-direction}: $f-dropdown-triangle-side-offset;
|
|
117
|
+
}
|
|
118
|
+
&.right:after {
|
|
119
|
+
#{$default-float}: auto;
|
|
120
|
+
#{$opposite-direction}: $f-dropdown-triangle-side-offset - 1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@if $triangle == $default-float {
|
|
125
|
+
margin-top: 0;
|
|
126
|
+
margin-#{$default-float}: $f-dropdown-margin-right;
|
|
127
|
+
|
|
128
|
+
&:before {
|
|
129
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, #{$opposite-direction});
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: $f-dropdown-triangle-side-offset;
|
|
132
|
+
#{$default-float}: -($f-dropdown-triangle-size * 2);
|
|
133
|
+
z-index: 89;
|
|
134
|
+
}
|
|
135
|
+
&:after {
|
|
136
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$opposite-direction});
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: $f-dropdown-triangle-side-offset - 1;
|
|
139
|
+
#{$default-float}: -($f-dropdown-triangle-size * 2) - 2;
|
|
140
|
+
z-index: 88;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@if $triangle == $opposite-direction {
|
|
146
|
+
margin-top: 0;
|
|
147
|
+
margin-#{$default-float}: -$f-dropdown-margin-right;
|
|
148
|
+
|
|
149
|
+
&:before {
|
|
150
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, #{$default-float});
|
|
151
|
+
position: absolute;
|
|
152
|
+
top: $f-dropdown-triangle-side-offset;
|
|
153
|
+
#{$opposite-direction}: -($f-dropdown-triangle-size * 2);
|
|
154
|
+
#{$default-float}: auto;
|
|
155
|
+
z-index: 89;
|
|
156
|
+
}
|
|
157
|
+
&:after {
|
|
158
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$default-float});
|
|
159
|
+
position: absolute;
|
|
160
|
+
top: $f-dropdown-triangle-side-offset - 1;
|
|
161
|
+
#{$opposite-direction}: -($f-dropdown-triangle-size * 2) - 2;
|
|
162
|
+
#{$default-float}: auto;
|
|
163
|
+
z-index: 88;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@if $triangle == top {
|
|
169
|
+
margin-top: -$f-dropdown-margin-bottom;
|
|
170
|
+
margin-left: 0;
|
|
171
|
+
|
|
172
|
+
&:before {
|
|
173
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, top);
|
|
174
|
+
position: absolute;
|
|
175
|
+
top: auto;
|
|
176
|
+
bottom: -($f-dropdown-triangle-size * 2);
|
|
177
|
+
#{$default-float}: $f-dropdown-triangle-side-offset;
|
|
178
|
+
#{$opposite-direction}: auto;
|
|
179
|
+
z-index: 89;
|
|
180
|
+
}
|
|
181
|
+
&:after {
|
|
182
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top);
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: auto;
|
|
185
|
+
bottom: -($f-dropdown-triangle-size * 2) - 2;
|
|
186
|
+
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
|
187
|
+
#{$opposite-direction}: auto;
|
|
188
|
+
z-index: 88;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@if $max-width { max-width: $max-width; }
|
|
194
|
+
@else { max-width: $f-dropdown-max-width; }
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// @MIXIN
|
|
199
|
+
//
|
|
200
|
+
// We use this to style the list elements or content inside the dropdown.
|
|
201
|
+
|
|
202
|
+
@mixin dropdown-style {
|
|
203
|
+
font-size: $f-dropdown-font-size;
|
|
204
|
+
cursor: $cursor-pointer-value;
|
|
205
|
+
|
|
206
|
+
line-height: $f-dropdown-line-height;
|
|
207
|
+
margin: 0;
|
|
208
|
+
|
|
209
|
+
&:hover,
|
|
210
|
+
&:focus { background: $f-dropdown-list-hover-bg; }
|
|
211
|
+
|
|
212
|
+
&.radius { @include radius($f-dropdown-radius); }
|
|
213
|
+
|
|
214
|
+
a {
|
|
215
|
+
display: block;
|
|
216
|
+
padding: $f-dropdown-list-padding;
|
|
217
|
+
color: $f-dropdown-font-color;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@include exports("dropdown") {
|
|
222
|
+
@if $include-html-dropdown-classes {
|
|
223
|
+
|
|
224
|
+
/* Foundation Dropdowns */
|
|
225
|
+
.f-dropdown {
|
|
226
|
+
@include dropdown-container(list, bottom);
|
|
227
|
+
|
|
228
|
+
&.drop-#{$opposite-direction} {
|
|
229
|
+
@include dropdown-container(list, #{$default-float});
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&.drop-#{$default-float} {
|
|
233
|
+
@include dropdown-container(list, #{$opposite-direction});
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&.drop-top {
|
|
237
|
+
@include dropdown-container(list, top);
|
|
238
|
+
}
|
|
239
|
+
// max-width: none;
|
|
240
|
+
|
|
241
|
+
li { @include dropdown-style; }
|
|
242
|
+
|
|
243
|
+
// You can also put custom content in these dropdowns
|
|
244
|
+
&.content { @include dropdown-container(content, $triangle:false); }
|
|
245
|
+
|
|
246
|
+
// Sizes
|
|
247
|
+
&.tiny { max-width: 200px; }
|
|
248
|
+
&.small { max-width: 300px; }
|
|
249
|
+
&.medium { max-width: 500px; }
|
|
250
|
+
&.large { max-width: 800px; }
|
|
251
|
+
&.mega {
|
|
252
|
+
width:100%!important;
|
|
253
|
+
max-width:100%!important;
|
|
254
|
+
|
|
255
|
+
&.open{
|
|
256
|
+
left:0!important;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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-media-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to control video container padding and margins
|
|
13
|
+
$flex-video-padding-top: rem-calc(25) !default;
|
|
14
|
+
$flex-video-padding-bottom: 67.5% !default;
|
|
15
|
+
$flex-video-margin-bottom: rem-calc(16) !default;
|
|
16
|
+
|
|
17
|
+
// We use this to control widescreen bottom padding
|
|
18
|
+
$flex-video-widescreen-padding-bottom: 56.34% !default;
|
|
19
|
+
|
|
20
|
+
//
|
|
21
|
+
// @mixins
|
|
22
|
+
//
|
|
23
|
+
|
|
24
|
+
@mixin flex-video-container {
|
|
25
|
+
position: relative;
|
|
26
|
+
padding-top: $flex-video-padding-top;
|
|
27
|
+
padding-bottom: $flex-video-padding-bottom;
|
|
28
|
+
height: 0;
|
|
29
|
+
margin-bottom: $flex-video-margin-bottom;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
|
|
32
|
+
&.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; }
|
|
33
|
+
&.vimeo { padding-top: 0; }
|
|
34
|
+
|
|
35
|
+
iframe,
|
|
36
|
+
object,
|
|
37
|
+
embed,
|
|
38
|
+
video {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
#{$default-float}: 0;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include exports("flex-video") {
|
|
48
|
+
@if $include-html-media-classes {
|
|
49
|
+
.flex-video { @include flex-video-container; }
|
|
50
|
+
}
|
|
51
|
+
}
|