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,368 @@
|
|
|
1
|
+
// Foundation by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
@import "global";
|
|
6
|
+
|
|
7
|
+
// @variables
|
|
8
|
+
//
|
|
9
|
+
$include-html-orbit-classes: $include-html-classes !default;
|
|
10
|
+
|
|
11
|
+
// We use these to control the caption styles
|
|
12
|
+
$orbit-container-bg: none !default;
|
|
13
|
+
$orbit-caption-bg: rgba(51,51,51, 0.8) !default;
|
|
14
|
+
$orbit-caption-font-color: $white !default;
|
|
15
|
+
$orbit-caption-font-size: rem-calc(14) !default;
|
|
16
|
+
$orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under"
|
|
17
|
+
$orbit-caption-padding: rem-calc(10 14) !default;
|
|
18
|
+
$orbit-caption-height: auto !default;
|
|
19
|
+
|
|
20
|
+
// We use these to control the left/right nav styles
|
|
21
|
+
$orbit-nav-bg: transparent !default;
|
|
22
|
+
$orbit-nav-bg-hover: rgba(0,0,0,0.3) !default;
|
|
23
|
+
$orbit-nav-arrow-color: $white !default;
|
|
24
|
+
$orbit-nav-arrow-color-hover: $white !default;
|
|
25
|
+
|
|
26
|
+
// We use these to control the timer styles
|
|
27
|
+
$orbit-timer-bg: rgba(255,255,255,0.3) !default;
|
|
28
|
+
$orbit-timer-show-progress-bar: true !default;
|
|
29
|
+
|
|
30
|
+
// We use these to control the bullet nav styles
|
|
31
|
+
$orbit-bullet-nav-color: $iron !default;
|
|
32
|
+
$orbit-bullet-nav-color-active: $aluminum !default;
|
|
33
|
+
$orbit-bullet-radius: rem-calc(9) !default;
|
|
34
|
+
|
|
35
|
+
// We use these to controls the style of slide numbers
|
|
36
|
+
$orbit-slide-number-bg: rgba(0,0,0,0) !default;
|
|
37
|
+
$orbit-slide-number-font-color: $white !default;
|
|
38
|
+
$orbit-slide-number-padding: rem-calc(5) !default;
|
|
39
|
+
|
|
40
|
+
// Graceful Loading Wrapper and preloader
|
|
41
|
+
$wrapper-class: "slideshow-wrapper" !default;
|
|
42
|
+
$preloader-class: "preloader" !default;
|
|
43
|
+
|
|
44
|
+
// Hide controls on small
|
|
45
|
+
$orbit-nav-hide-for-small: true !default;
|
|
46
|
+
$orbit-bullet-hide-for-small: true !default;
|
|
47
|
+
$orbit-timer-hide-for-small: true !default;
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@include exports("orbit") {
|
|
51
|
+
@if $include-html-orbit-classes {
|
|
52
|
+
|
|
53
|
+
@-webkit-keyframes rotate {
|
|
54
|
+
from { -webkit-transform: rotate(0deg); }
|
|
55
|
+
to { -webkit-transform: rotate(360deg); }
|
|
56
|
+
}
|
|
57
|
+
@-moz-keyframes rotate {
|
|
58
|
+
from { -moz-transform: rotate(0deg); }
|
|
59
|
+
to { -moz-transform: rotate(360deg); }
|
|
60
|
+
}
|
|
61
|
+
@-o-keyframes rotate {
|
|
62
|
+
from { -o-transform: rotate(0deg); }
|
|
63
|
+
to { -o-transform: rotate(360deg); }
|
|
64
|
+
}
|
|
65
|
+
@keyframes rotate {
|
|
66
|
+
from { transform: rotate(0deg); }
|
|
67
|
+
to { transform: rotate(360deg); }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Orbit Graceful Loading */
|
|
71
|
+
.#{$wrapper-class} {
|
|
72
|
+
position: relative;
|
|
73
|
+
|
|
74
|
+
ul {
|
|
75
|
+
// Prevent bullets showing before .orbit-container is loaded
|
|
76
|
+
list-style-type: none;
|
|
77
|
+
margin: 0;
|
|
78
|
+
|
|
79
|
+
// Hide all list items
|
|
80
|
+
li,
|
|
81
|
+
li .orbit-caption { display: none; }
|
|
82
|
+
|
|
83
|
+
// ...except for the first one
|
|
84
|
+
li:first-child { display: block; }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.orbit-container { background-color: transparent;
|
|
88
|
+
|
|
89
|
+
// Show images when .orbit-container is loaded
|
|
90
|
+
li { display: block;
|
|
91
|
+
|
|
92
|
+
.orbit-caption { display: block; }
|
|
93
|
+
}
|
|
94
|
+
.orbit-bullets li {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Orbit preloader
|
|
100
|
+
.#{$preloader-class} {
|
|
101
|
+
display: block;
|
|
102
|
+
width: 40px;
|
|
103
|
+
height: 40px;
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 50%;
|
|
106
|
+
left: 50%;
|
|
107
|
+
margin-top: -20px;
|
|
108
|
+
margin-left: -20px;
|
|
109
|
+
border: solid 3px;
|
|
110
|
+
border-color: $charcoal $white;
|
|
111
|
+
@include radius(1000px);
|
|
112
|
+
animation-name: rotate;
|
|
113
|
+
animation-duration: 1.5s;
|
|
114
|
+
animation-iteration-count: infinite;
|
|
115
|
+
animation-timing-function: linear;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
.orbit-container {
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
width: 100%;
|
|
123
|
+
position: relative;
|
|
124
|
+
background: $orbit-container-bg;
|
|
125
|
+
|
|
126
|
+
.orbit-slides-container {
|
|
127
|
+
list-style: none;
|
|
128
|
+
margin: 0;
|
|
129
|
+
padding: 0;
|
|
130
|
+
position: relative;
|
|
131
|
+
|
|
132
|
+
// Prevents images (and captions) from disappearing after first rotation on Chrome for Android
|
|
133
|
+
-webkit-transform: translateZ(0);
|
|
134
|
+
|
|
135
|
+
img { display: block; max-width: 100%; }
|
|
136
|
+
|
|
137
|
+
&>* {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 0;
|
|
140
|
+
width: 100%;
|
|
141
|
+
@if $text-direction == rtl {
|
|
142
|
+
margin-right: 100%;
|
|
143
|
+
}
|
|
144
|
+
@else {
|
|
145
|
+
margin-left: 100%;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:first-child {
|
|
149
|
+
@if $text-direction == rtl {
|
|
150
|
+
margin-right: 0;
|
|
151
|
+
}
|
|
152
|
+
@else {
|
|
153
|
+
margin-left: 0;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.orbit-caption {
|
|
158
|
+
@if $orbit-caption-position == "bottom" {
|
|
159
|
+
position: absolute;
|
|
160
|
+
bottom: 0;
|
|
161
|
+
} @else if $orbit-caption-position == "under" {
|
|
162
|
+
position: relative;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
background-color: $orbit-caption-bg;
|
|
166
|
+
color: $orbit-caption-font-color;
|
|
167
|
+
width: 100%;
|
|
168
|
+
padding: $orbit-caption-padding;
|
|
169
|
+
font-size: $orbit-caption-font-size;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.orbit-slide-number {
|
|
175
|
+
position: absolute;
|
|
176
|
+
top: 10px;
|
|
177
|
+
#{$default-float}: 10px;
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
span { font-weight: 700; padding: $orbit-slide-number-padding;}
|
|
180
|
+
color: $orbit-slide-number-font-color;
|
|
181
|
+
background: $orbit-slide-number-bg;
|
|
182
|
+
z-index: 10;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.orbit-timer {
|
|
186
|
+
position: absolute;
|
|
187
|
+
top: 12px;
|
|
188
|
+
#{$opposite-direction}: 10px;
|
|
189
|
+
height: 6px;
|
|
190
|
+
width: 100px;
|
|
191
|
+
z-index: 10;
|
|
192
|
+
.orbit-progress {
|
|
193
|
+
@if $orbit-timer-show-progress-bar {
|
|
194
|
+
height: 3px;
|
|
195
|
+
background-color: $orbit-timer-bg;
|
|
196
|
+
display: block;
|
|
197
|
+
width: 0;
|
|
198
|
+
position: relative;
|
|
199
|
+
right: 20px;
|
|
200
|
+
top: 5px;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Play button
|
|
205
|
+
& > span {
|
|
206
|
+
display: none;
|
|
207
|
+
position: absolute;
|
|
208
|
+
top: 0;
|
|
209
|
+
#{$opposite-direction}: 0;
|
|
210
|
+
width: 11px;
|
|
211
|
+
height: 14px;
|
|
212
|
+
border: solid 4px $white;
|
|
213
|
+
border-top: none;
|
|
214
|
+
border-bottom: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Pause button
|
|
218
|
+
&.paused {
|
|
219
|
+
& > span {
|
|
220
|
+
#{$opposite-direction}: -4px;
|
|
221
|
+
top: 0;
|
|
222
|
+
width: 11px;
|
|
223
|
+
height: 14px;
|
|
224
|
+
border: inset 8px;
|
|
225
|
+
border-left-style: solid;
|
|
226
|
+
border-color: transparent;
|
|
227
|
+
border-left-color: $white;
|
|
228
|
+
&.dark {
|
|
229
|
+
border-left-color: $oil;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
&:hover .orbit-timer > span { display: block; }
|
|
238
|
+
|
|
239
|
+
// Let's get those controls to be right in the center on each side
|
|
240
|
+
.orbit-prev,
|
|
241
|
+
.orbit-next {
|
|
242
|
+
position: absolute;
|
|
243
|
+
top: 45%;
|
|
244
|
+
margin-top: -25px;
|
|
245
|
+
width: 36px;
|
|
246
|
+
height: 60px;
|
|
247
|
+
line-height: 50px;
|
|
248
|
+
color: white;
|
|
249
|
+
background-color: $orbit-nav-bg;
|
|
250
|
+
text-indent: -9999px !important;
|
|
251
|
+
z-index: 10;
|
|
252
|
+
|
|
253
|
+
&:hover {
|
|
254
|
+
background-color: $orbit-nav-bg-hover;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
& > span {
|
|
258
|
+
position: absolute;
|
|
259
|
+
top: 50%;
|
|
260
|
+
margin-top: -10px;
|
|
261
|
+
display: block;
|
|
262
|
+
width: 0;
|
|
263
|
+
height: 0;
|
|
264
|
+
border: inset 10px;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
.orbit-prev { #{$default-float}: 0;
|
|
268
|
+
& > span {
|
|
269
|
+
border-#{$opposite-direction}-style: solid;
|
|
270
|
+
border-color: transparent;
|
|
271
|
+
border-#{$opposite-direction}-color: $orbit-nav-arrow-color;
|
|
272
|
+
}
|
|
273
|
+
&:hover > span {
|
|
274
|
+
border-#{$opposite-direction}-color: $orbit-nav-arrow-color-hover;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
.orbit-next { #{$opposite-direction}: 0;
|
|
278
|
+
& > span {
|
|
279
|
+
border-color: transparent;
|
|
280
|
+
border-#{$default-float}-style: solid;
|
|
281
|
+
border-#{$default-float}-color: $orbit-nav-arrow-color;
|
|
282
|
+
#{$default-float}: 50%;
|
|
283
|
+
margin-#{$default-float}: -4px;
|
|
284
|
+
}
|
|
285
|
+
&:hover > span {
|
|
286
|
+
border-#{$default-float}-color: $orbit-nav-arrow-color-hover;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.orbit-bullets-container { text-align: center; }
|
|
292
|
+
.orbit-bullets {
|
|
293
|
+
margin: 0 auto 30px auto;
|
|
294
|
+
overflow: hidden;
|
|
295
|
+
position: relative;
|
|
296
|
+
top: 10px;
|
|
297
|
+
float: none;
|
|
298
|
+
text-align: center;
|
|
299
|
+
display: block;
|
|
300
|
+
|
|
301
|
+
li {
|
|
302
|
+
cursor:pointer;
|
|
303
|
+
display: inline-block;
|
|
304
|
+
width: $orbit-bullet-radius;
|
|
305
|
+
height: $orbit-bullet-radius;
|
|
306
|
+
background: $orbit-bullet-nav-color;
|
|
307
|
+
// float: $default-float;
|
|
308
|
+
float: none;
|
|
309
|
+
margin-#{$opposite-direction}: 6px;
|
|
310
|
+
@include radius(1000px);
|
|
311
|
+
|
|
312
|
+
&.active {
|
|
313
|
+
background: $orbit-bullet-nav-color-active;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&:last-child { margin-#{$opposite-direction}: 0; }
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.touch {
|
|
321
|
+
.orbit-container {
|
|
322
|
+
.orbit-prev,
|
|
323
|
+
.orbit-next { display: none; }
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.orbit-bullets { display: none; }
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
@media #{$medium-up} {
|
|
331
|
+
|
|
332
|
+
.touch {
|
|
333
|
+
.orbit-container {
|
|
334
|
+
.orbit-prev,
|
|
335
|
+
.orbit-next { display: inherit; }
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.orbit-bullets { display: block; }
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@media #{$small-only} {
|
|
344
|
+
.orbit-stack-on-small {
|
|
345
|
+
.orbit-slides-container {height: auto !important;}
|
|
346
|
+
.orbit-slides-container > * {
|
|
347
|
+
position: relative;
|
|
348
|
+
margin:0 !important;
|
|
349
|
+
opacity:1 !important;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.orbit-slide-number {
|
|
353
|
+
display: none;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@if $orbit-timer-hide-for-small {
|
|
358
|
+
.orbit-timer{display: none;}
|
|
359
|
+
}
|
|
360
|
+
@if $orbit-nav-hide-for-small {
|
|
361
|
+
.orbit-next,.orbit-prev{display: none;}
|
|
362
|
+
}
|
|
363
|
+
@if $orbit-bullet-hide-for-small {
|
|
364
|
+
.orbit-bullets{display: none;}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
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-pagination-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to control the pagination container
|
|
13
|
+
$pagination-height: rem-calc(24) !default;
|
|
14
|
+
$pagination-margin: rem-calc(-5) !default;
|
|
15
|
+
|
|
16
|
+
// We use these to set the list-item properties
|
|
17
|
+
$pagination-li-float: $default-float !default;
|
|
18
|
+
$pagination-li-height: rem-calc(24) !default;
|
|
19
|
+
$pagination-li-font-color: $jet !default;
|
|
20
|
+
$pagination-li-font-size: rem-calc(14) !default;
|
|
21
|
+
$pagination-li-margin: rem-calc(5) !default;
|
|
22
|
+
|
|
23
|
+
// We use these for the pagination anchor links
|
|
24
|
+
$pagination-link-pad: rem-calc(1 10 1) !default;
|
|
25
|
+
$pagination-link-font-color: $aluminum !default;
|
|
26
|
+
$pagination-link-active-bg: scale-color($white, $lightness: -10%) !default;
|
|
27
|
+
|
|
28
|
+
// We use these for disabled anchor links
|
|
29
|
+
$pagination-link-unavailable-cursor: default !default;
|
|
30
|
+
$pagination-link-unavailable-font-color: $aluminum !default;
|
|
31
|
+
$pagination-link-unavailable-bg-active: transparent !default;
|
|
32
|
+
|
|
33
|
+
// We use these for currently selected anchor links
|
|
34
|
+
$pagination-link-current-background: $primary-color !default;
|
|
35
|
+
$pagination-link-current-font-color: $white !default;
|
|
36
|
+
$pagination-link-current-font-weight: $font-weight-bold !default;
|
|
37
|
+
$pagination-link-current-cursor: default !default;
|
|
38
|
+
$pagination-link-current-active-bg: $primary-color !default;
|
|
39
|
+
|
|
40
|
+
// @mixins
|
|
41
|
+
//
|
|
42
|
+
// Style the pagination container. Currently only used when centering elements.
|
|
43
|
+
// $center - Default: false, Options: true
|
|
44
|
+
@mixin pagination-container($center:false) {
|
|
45
|
+
@if $center { text-align: center; }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @mixins
|
|
49
|
+
// Style unavailable list items
|
|
50
|
+
@mixin pagination-unavailable-item {
|
|
51
|
+
a, button {
|
|
52
|
+
cursor: $pagination-link-unavailable-cursor;
|
|
53
|
+
color: $pagination-link-unavailable-font-color;
|
|
54
|
+
}
|
|
55
|
+
&:hover a,
|
|
56
|
+
& a:focus,
|
|
57
|
+
|
|
58
|
+
&:hover button,
|
|
59
|
+
& button:focus
|
|
60
|
+
{ background: $pagination-link-unavailable-bg-active; }
|
|
61
|
+
}
|
|
62
|
+
// @mixins
|
|
63
|
+
// Style the current list item. Do not assume that the current item has
|
|
64
|
+
// an anchor <a> element.
|
|
65
|
+
// $has-anchor - Default: true, Options: false
|
|
66
|
+
@mixin pagination-current-item($has-anchor: true) {
|
|
67
|
+
@if $has-anchor {
|
|
68
|
+
a, button {
|
|
69
|
+
background: $pagination-link-current-background;
|
|
70
|
+
color: $pagination-link-current-font-color;
|
|
71
|
+
font-weight: $pagination-link-current-font-weight;
|
|
72
|
+
cursor: $pagination-link-current-cursor;
|
|
73
|
+
|
|
74
|
+
&:hover,
|
|
75
|
+
&:focus { background: $pagination-link-current-active-bg; }
|
|
76
|
+
}
|
|
77
|
+
} @else {
|
|
78
|
+
height: auto;
|
|
79
|
+
padding: $pagination-link-pad;
|
|
80
|
+
background: $pagination-link-current-background;
|
|
81
|
+
color: $pagination-link-current-font-color;
|
|
82
|
+
font-weight: $pagination-link-current-font-weight;
|
|
83
|
+
cursor: $pagination-link-current-cursor;
|
|
84
|
+
@include radius;
|
|
85
|
+
|
|
86
|
+
&:hover,
|
|
87
|
+
&:focus { background: $pagination-link-current-active-bg; }
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// @mixins
|
|
92
|
+
//
|
|
93
|
+
// We use this mixin to set the properties for the creating Foundation pagination
|
|
94
|
+
// $center - Left or center align the li elements. Default: false
|
|
95
|
+
// $base-style - Sets base styles for pagination. Default: true, Options: false
|
|
96
|
+
// $use-default-classes - Makes unavailable & current classes available for use. Default: true
|
|
97
|
+
@mixin pagination($center:false, $base-style:true, $use-default-classes:true) {
|
|
98
|
+
|
|
99
|
+
@if $base-style {
|
|
100
|
+
display: block;
|
|
101
|
+
min-height: $pagination-height;
|
|
102
|
+
margin-#{$default-float}: $pagination-margin;
|
|
103
|
+
|
|
104
|
+
li {
|
|
105
|
+
height: $pagination-li-height;
|
|
106
|
+
color: $pagination-li-font-color;
|
|
107
|
+
font-size: $pagination-li-font-size;
|
|
108
|
+
margin-#{$default-float}: $pagination-li-margin;
|
|
109
|
+
|
|
110
|
+
a, button {
|
|
111
|
+
display: block;
|
|
112
|
+
padding: $pagination-link-pad;
|
|
113
|
+
color: $pagination-link-font-color;
|
|
114
|
+
background: none;
|
|
115
|
+
@include radius;
|
|
116
|
+
font-weight: normal;
|
|
117
|
+
font-size: 1em;
|
|
118
|
+
line-height: inherit;
|
|
119
|
+
@include single-transition(background-color);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover a,
|
|
123
|
+
a:focus,
|
|
124
|
+
&:hover button,
|
|
125
|
+
button:focus
|
|
126
|
+
{ background: $pagination-link-active-bg; }
|
|
127
|
+
|
|
128
|
+
@if $use-default-classes {
|
|
129
|
+
&.unavailable { @include pagination-unavailable-item(); }
|
|
130
|
+
&.current { @include pagination-current-item(); }
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Left or center align the li elements
|
|
136
|
+
li {
|
|
137
|
+
@if $center {
|
|
138
|
+
float: none;
|
|
139
|
+
display: inline-block;
|
|
140
|
+
} @else {
|
|
141
|
+
float: $pagination-li-float;
|
|
142
|
+
display: block;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@include exports("pagination") {
|
|
148
|
+
@if $include-pagination-classes {
|
|
149
|
+
ul.pagination {
|
|
150
|
+
@include pagination;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Pagination centred wrapper */
|
|
154
|
+
.pagination-centered {
|
|
155
|
+
@include pagination-container(true);
|
|
156
|
+
|
|
157
|
+
ul.pagination {
|
|
158
|
+
@include pagination(true, false);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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-panel-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to control the background and border styles
|
|
13
|
+
$panel-bg: scale-color($white, $lightness: -5%) !default;
|
|
14
|
+
$panel-border-style: solid !default;
|
|
15
|
+
$panel-border-size: 1px !default;
|
|
16
|
+
|
|
17
|
+
// We use this % to control how much we darken things on hover
|
|
18
|
+
$panel-function-factor: -11% !default;
|
|
19
|
+
$panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor) !default;
|
|
20
|
+
|
|
21
|
+
// We use these to set default inner padding and bottom margin
|
|
22
|
+
$panel-margin-bottom: rem-calc(20) !default;
|
|
23
|
+
$panel-padding: rem-calc(20) !default;
|
|
24
|
+
|
|
25
|
+
// We use these to set default font colors
|
|
26
|
+
$panel-font-color: $oil !default;
|
|
27
|
+
$panel-font-color-alt: $white !default;
|
|
28
|
+
|
|
29
|
+
$panel-header-adjust: true !default;
|
|
30
|
+
$callout-panel-link-color: $primary-color !default;
|
|
31
|
+
$callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightness: -14%) !default;
|
|
32
|
+
//
|
|
33
|
+
// @mixins
|
|
34
|
+
//
|
|
35
|
+
// We use this mixin to create panels.
|
|
36
|
+
// $bg - Sets the panel background color. Default: $panel-pg || scale-color($white, $lightness: -5%) !default
|
|
37
|
+
// $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
|
|
38
|
+
// $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
|
|
39
|
+
@mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) {
|
|
40
|
+
|
|
41
|
+
@if $bg {
|
|
42
|
+
$bg-lightness: lightness($bg);
|
|
43
|
+
|
|
44
|
+
border-style: $panel-border-style;
|
|
45
|
+
border-width: $panel-border-size;
|
|
46
|
+
border-color: scale-color($bg, $lightness: $panel-function-factor);
|
|
47
|
+
margin-bottom: $panel-margin-bottom;
|
|
48
|
+
padding: $padding;
|
|
49
|
+
|
|
50
|
+
background: $bg;
|
|
51
|
+
@if $bg-lightness >= 50% { color: $panel-font-color; }
|
|
52
|
+
@else { color: $panel-font-color-alt; }
|
|
53
|
+
|
|
54
|
+
// Respect the padding, fool.
|
|
55
|
+
&>:first-child { margin-top: 0; }
|
|
56
|
+
&>:last-child { margin-bottom: 0; }
|
|
57
|
+
|
|
58
|
+
@if $adjust {
|
|
59
|
+
// We set the font color based on the darkness of the bg.
|
|
60
|
+
@if $bg-lightness >= 50% {
|
|
61
|
+
h1,h2,h3,h4,h5,h6,p,li,dl { color: $panel-font-color; }
|
|
62
|
+
}
|
|
63
|
+
@else {
|
|
64
|
+
h1,h2,h3,h4,h5,h6,p,li,dl { color: $panel-font-color-alt; }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// reset header line-heights for panels
|
|
68
|
+
h1,h2,h3,h4,h5,h6 {
|
|
69
|
+
line-height: 1; margin-bottom: rem-calc(20) / 2;
|
|
70
|
+
&.subheader { line-height: 1.4; }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@include exports("panel") {
|
|
77
|
+
@if $include-html-panel-classes {
|
|
78
|
+
|
|
79
|
+
/* Panels */
|
|
80
|
+
.panel { @include panel;
|
|
81
|
+
|
|
82
|
+
&.callout {
|
|
83
|
+
@include panel(scale-color($primary-color, $lightness: 94%));
|
|
84
|
+
a:not(.button) {
|
|
85
|
+
color: $callout-panel-link-color;
|
|
86
|
+
|
|
87
|
+
&:hover,
|
|
88
|
+
&:focus {
|
|
89
|
+
color: $callout-panel-link-color-hover;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.radius {
|
|
95
|
+
@include radius;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
}
|