Browse Source

updates

pull/3/head 1.5.1
Julian Ćwirko 9 years ago
parent
commit
1a65c3472f
  1. 6
      README.md
  2. 2
      assets/css/style.css
  3. 9
      assets/js/vendor/foundation.min.js
  4. 2
      assets/js/vendor/modernizr.js
  5. 81
      assets/scss/_foundation-settings.scss
  6. 19
      assets/scss/_normalize.scss
  7. 94
      assets/scss/foundation/_functions.scss
  8. 14
      assets/scss/foundation/components/_accordion.scss
  9. 22
      assets/scss/foundation/components/_alert-boxes.scss
  10. 26
      assets/scss/foundation/components/_block-grid.scss
  11. 35
      assets/scss/foundation/components/_breadcrumbs.scss
  12. 51
      assets/scss/foundation/components/_button-groups.scss
  13. 30
      assets/scss/foundation/components/_buttons.scss
  14. 98
      assets/scss/foundation/components/_clearing.scss
  15. 21
      assets/scss/foundation/components/_dropdown-buttons.scss
  16. 78
      assets/scss/foundation/components/_dropdown.scss
  17. 14
      assets/scss/foundation/components/_flex-video.scss
  18. 132
      assets/scss/foundation/components/_forms.scss
  19. 150
      assets/scss/foundation/components/_global.scss
  20. 45
      assets/scss/foundation/components/_grid.scss
  21. 569
      assets/scss/foundation/components/_icon-bar.scss
  22. 16
      assets/scss/foundation/components/_inline-lists.scss
  23. 82
      assets/scss/foundation/components/_joyride.scss
  24. 5
      assets/scss/foundation/components/_keystrokes.scss
  25. 12
      assets/scss/foundation/components/_labels.scss
  26. 4
      assets/scss/foundation/components/_magellan.scss
  27. 353
      assets/scss/foundation/components/_offcanvas.scss
  28. 144
      assets/scss/foundation/components/_orbit.scss
  29. 30
      assets/scss/foundation/components/_pagination.scss
  30. 36
      assets/scss/foundation/components/_panels.scss
  31. 32
      assets/scss/foundation/components/_pricing-tables.scss
  32. 8
      assets/scss/foundation/components/_progress-bars.scss
  33. 39
      assets/scss/foundation/components/_range-slider.scss
  34. 54
      assets/scss/foundation/components/_reveal.scss
  35. 26
      assets/scss/foundation/components/_side-nav.scss
  36. 32
      assets/scss/foundation/components/_split-buttons.scss
  37. 25
      assets/scss/foundation/components/_sub-nav.scss
  38. 41
      assets/scss/foundation/components/_switches.scss
  39. 16
      assets/scss/foundation/components/_tables.scss
  40. 81
      assets/scss/foundation/components/_tabs.scss
  41. 16
      assets/scss/foundation/components/_thumbs.scss
  42. 50
      assets/scss/foundation/components/_tooltips.scss
  43. 285
      assets/scss/foundation/components/_top-bar.scss
  44. 38
      assets/scss/foundation/components/_type.scss
  45. 28
      assets/scss/foundation/components/_visibility.scss
  46. 1
      assets/scss/style.scss
  47. 2
      default.hbs
  48. 8
      package.json

6
README.md

@ -58,6 +58,12 @@ Just use standard Ghost admin panel settings.
#### Changelog #### Changelog
##### 1.5.1 (26.07.2015)
- Grunt workflow dependencies update
- Font Awesome update (4.3.0)
- Foundation update (5.5.2)
##### 1.5.0 (19.04.2015) ##### 1.5.0 (19.04.2015)
- Prev/Next post feature (Ghost 0.6.0 adjustments) - Prev/Next post feature (Ghost 0.6.0 adjustments)

2
assets/css/style.css

File diff suppressed because one or more lines are too long

9
assets/js/vendor/foundation.min.js vendored

File diff suppressed because one or more lines are too long

2
assets/js/vendor/modernizr.js vendored

File diff suppressed because one or more lines are too long

81
assets/scss/_foundation-settings.scss

@ -55,7 +55,7 @@
// $rem-base: 16px; // $rem-base: 16px;
// Allows the use of rem-calc() or lower-bound() in your settings // Allows the use of rem-calc() or lower-bound() in your settings
@import "foundation/functions"; @import 'foundation/functions';
// The default font-size is set to 100% of the browser style sheet (usually 16px) // The default font-size is set to 100% of the browser style sheet (usually 16px)
// for compatibility with browser-based text zoom or user-set defaults. // for compatibility with browser-based text zoom or user-set defaults.
@ -83,8 +83,6 @@ $include-html-global-classes: $include-html-classes;
// $total-columns: 12; // $total-columns: 12;
// $column-gutter: rem-calc(30); // $column-gutter: rem-calc(30);
// $last-child-float: $opposite-direction;
// c. Global // c. Global
// - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - -
@ -153,11 +151,16 @@ $include-html-global-classes: $include-html-classes;
// d. Media Query Ranges // d. Media Query Ranges
// - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - -
// $small-range: (0em, 40em); // $small-breakpoint: em-calc(640);
// $medium-range: (40.063em, 64em); // $medium-breakpoint: em-calc(1024);
// $large-range: (64.063em, 90em); // $large-breakpoint: em-calc(1440);
// $xlarge-range: (90.063em, 120em); // $xlarge-breakpoint: em-calc(1920);
// $xxlarge-range: (120.063em, 99999999em);
// $small-range: (0, $small-breakpoint);
// $medium-range: ($small-breakpoint + em-calc(1), $medium-breakpoint);
// $large-range: ($medium-breakpoint + em-calc(1), $large-breakpoint);
// $xlarge-range: ($large-breakpoint + em-calc(1), $xlarge-breakpoint);
// $xxlarge-range: ($xlarge-breakpoint + em-calc(1), em-calc(99999999));
// $screen: "only screen"; // $screen: "only screen";
@ -179,6 +182,15 @@ $include-html-global-classes: $include-html-classes;
// $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})"; // $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})";
// $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})"; // $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})";
// $retina: (
// "#{$screen} and (-webkit-min-device-pixel-ratio: 2)",
// "#{$screen} and (min--moz-device-pixel-ratio: 2)",
// "#{$screen} and (-o-min-device-pixel-ratio: 2/1)",
// "#{$screen} and (min-device-pixel-ratio: 2)",
// "#{$screen} and (min-resolution: 192dpi)",
// "#{$screen} and (min-resolution: 2dppx)"
// );
// Legacy // Legacy
// $small: $medium-up; // $small: $medium-up;
// $medium: $medium-up; // $medium: $medium-up;
@ -362,8 +374,8 @@ $include-html-global-classes: $include-html-classes;
// $alert-close-top: 50%; // $alert-close-top: 50%;
// $alert-close-position: rem-calc(4); // $alert-close-position: rem-calc(4);
// $alert-close-font-size: rem-calc(22); // $alert-close-font-size: rem-calc(22);
// $alert-close-opacity: 0.3; // $alert-close-opacity: .3;
// $alert-close-opacity-hover: 0.5; // $alert-close-opacity-hover: .5;
// $alert-close-padding: 9px 6px 4px; // $alert-close-padding: 9px 6px 4px;
// $alert-close-background: inherit; // $alert-close-background: inherit;
@ -471,7 +483,7 @@ $include-html-global-classes: $include-html-classes;
// $button-round: $global-rounded; // $button-round: $global-rounded;
// We use this to set default opacity and cursor for disabled buttons. // We use this to set default opacity and cursor for disabled buttons.
// $button-disabled-opacity: 0.7; // $button-disabled-opacity: .7;
// $button-disabled-cursor: $cursor-default-value; // $button-disabled-cursor: $cursor-default-value;
// 06. Button Groups // 06. Button Groups
@ -504,7 +516,7 @@ $include-html-global-classes: $include-html-classes;
// We use these to style captions // We use these to style captions
// $clearing-caption-font-color: $iron; // $clearing-caption-font-color: $iron;
// $clearing-caption-font-size: 0.875em; // $clearing-caption-font-size: .875em;
// $clearing-caption-padding: 10px 30px 20px; // $clearing-caption-padding: 10px 30px 20px;
// We use these to make the image and carousel height and style // We use these to make the image and carousel height and style
@ -645,7 +657,7 @@ $include-html-global-classes: $include-html-classes;
// $input-disabled-bg: $gainsboro; // $input-disabled-bg: $gainsboro;
// $input-disabled-cursor: $cursor-default-value; // $input-disabled-cursor: $cursor-default-value;
// $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); // $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
// $input-include-glowing-effect: true; // $input-include-glowing-effect: false;
// We use these to style the fieldset border and spacing. // We use these to style the fieldset border and spacing.
// $fieldset-border-style: solid; // $fieldset-border-style: solid;
@ -682,9 +694,13 @@ $include-html-global-classes: $include-html-classes;
// $input-error-message-font-color-alt: $oil; // $input-error-message-font-color-alt: $oil;
// We use this to style the glowing effect of inputs when focused // We use this to style the glowing effect of inputs when focused
// $glowing-effect-fade-time: 0.45s; // $glowing-effect-fade-time: .45s;
// $glowing-effect-color: $input-focus-border-color; // $glowing-effect-color: $input-focus-border-color;
// We use this to style the transition when inputs are focused and when the glowing effect is disabled.
// $input-transition-fade-time: 0.15s;
// $input-transition-fade-timing-function: linear;
// Select variables // Select variables
// $select-bg-color: $ghost; // $select-bg-color: $ghost;
// $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%); // $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%);
@ -708,7 +724,7 @@ $include-html-global-classes: $include-html-classes;
// $icon-bar-item-padding: 1.25rem; // $icon-bar-item-padding: 1.25rem;
// We use this to set default opacity and cursor for disabled icons. // We use this to set default opacity and cursor for disabled icons.
// $icon-bar-disabled-opacity: 0.7; // $icon-bar-disabled-opacity: .7;
// 13. Inline Lists // 13. Inline Lists
// - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - -
@ -840,9 +856,11 @@ $include-html-global-classes: $include-html-classes;
// Off Canvas Menu Variables // Off Canvas Menu Variables
// $off-canvas-width: rem-calc(250); // $off-canvas-width: rem-calc(250);
// $off-canvas-bg: $oil; // $off-canvas-bg: $oil;
// $off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%);
// $off-canvas-bg-active: scale-color($tabbar-bg, $lightness: -30%);
// Off Canvas Menu List Variables // Off Canvas Menu List Variables
// $off-canvas-label-padding: 0.3rem rem-calc(15); // $off-canvas-label-padding: .3rem rem-calc(15);
// $off-canvas-label-color: $aluminum; // $off-canvas-label-color: $aluminum;
// $off-canvas-label-text-transform: uppercase; // $off-canvas-label-text-transform: uppercase;
// $off-canvas-label-font-size: rem-calc(12); // $off-canvas-label-font-size: rem-calc(12);
@ -852,7 +870,7 @@ $include-html-global-classes: $include-html-classes;
// $off-canvas-label-border-bottom: none; // $off-canvas-label-border-bottom: none;
// $off-canvas-label-margin:0; // $off-canvas-label-margin:0;
// $off-canvas-link-padding: rem-calc(10, 15); // $off-canvas-link-padding: rem-calc(10, 15);
// $off-canvas-link-color: rgba($white, 0.7); // $off-canvas-link-color: rgba($white, .7);
// $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%); // $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%);
// $off-canvas-back-bg: #444; // $off-canvas-back-bg: #444;
// $off-canvas-back-border-top: $off-canvas-label-border-top; // $off-canvas-back-border-top: $off-canvas-label-border-top;
@ -879,9 +897,9 @@ $include-html-global-classes: $include-html-classes;
// Off Canvas Back-Link Overlay // Off Canvas Back-Link Overlay
// $off-canvas-overlay-transition: background 300ms ease; // $off-canvas-overlay-transition: background 300ms ease;
// $off-canvas-overlay-cursor: pointer; // $off-canvas-overlay-cursor: pointer;
// $off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, 0.5), 4px 0 4px rgba($black, 0.5); // $off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, .5), 4px 0 4px rgba($black, .5);
// $off-canvas-overlay-background: rgba($white, 0.2); // $off-canvas-overlay-background: rgba($white, .2);
// $off-canvas-overlay-background-hover: rgba($white, 0.05); // $off-canvas-overlay-background-hover: rgba($white, .05);
// Transition Variables // Transition Variables
// $menu-slide: "transform 500ms ease"; // $menu-slide: "transform 500ms ease";
@ -893,7 +911,7 @@ $include-html-global-classes: $include-html-classes;
// We use these to control the caption styles // We use these to control the caption styles
// $orbit-container-bg: none; // $orbit-container-bg: none;
// $orbit-caption-bg: rgba(51,51,51, 0.8); // $orbit-caption-bg: rgba(51,51,51, .8);
// $orbit-caption-font-color: $white; // $orbit-caption-font-color: $white;
// $orbit-caption-font-size: rem-calc(14); // $orbit-caption-font-size: rem-calc(14);
// $orbit-caption-position: "bottom"; // Supported values: "bottom", "under" // $orbit-caption-position: "bottom"; // Supported values: "bottom", "under"
@ -971,10 +989,10 @@ $include-html-global-classes: $include-html-classes;
// $panel-bg: scale-color($white, $lightness: -5%); // $panel-bg: scale-color($white, $lightness: -5%);
// $panel-border-style: solid; // $panel-border-style: solid;
// $panel-border-size: 1px; // $panel-border-size: 1px;
// $callout-panel-bg: scale-color($primary-color, $lightness: 94%);
// We use this % to control how much we darken things on hover // We use this % to control how much we darken things on hover
// $panel-function-factor: -11%; // $panel-border-color: scale-color($panel-bg, $lightness: -11%);
// $panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor);
// We use these to set default inner padding and bottom margin // We use these to set default inner padding and bottom margin
// $panel-margin-bottom: rem-calc(20); // $panel-margin-bottom: rem-calc(20);
@ -1070,7 +1088,7 @@ $include-html-global-classes: $include-html-classes;
// $include-html-range-slider-classes: $include-html-classes; // $include-html-range-slider-classes: $include-html-classes;
// These variabels define the slider bar styles // These variables define the slider bar styles
// $range-slider-bar-width: 100%; // $range-slider-bar-width: 100%;
// $range-slider-bar-height: rem-calc(16); // $range-slider-bar-height: rem-calc(16);
@ -1099,7 +1117,7 @@ $include-html-global-classes: $include-html-classes;
// $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%); // $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%);
// $range-slider-handle-cursor: pointer; // $range-slider-handle-cursor: pointer;
// $range-slider-disabled-opacity: 0.7; // $range-slider-disabled-opacity: .7;
// $range-slider-disabled-cursor: $cursor-disabled-value; // $range-slider-disabled-cursor: $cursor-disabled-value;
// 25. Reveal // 25. Reveal
@ -1155,7 +1173,7 @@ $include-html-global-classes: $include-html-classes;
// $side-nav-link-color: $primary-color; // $side-nav-link-color: $primary-color;
// $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%); // $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%);
// $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%); // $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%);
// $side-nav-link-bg-hover: hsla(0, 0, 0, 0.025); // $side-nav-link-bg-hover: hsla(0, 0, 0, .025);
// $side-nav-link-margin: 0; // $side-nav-link-margin: 0;
// $side-nav-link-padding: rem-calc(7 14); // $side-nav-link-padding: rem-calc(7 14);
// $side-nav-font-size: rem-calc(14); // $side-nav-font-size: rem-calc(14);
@ -1183,6 +1201,7 @@ $include-html-global-classes: $include-html-classes;
// We use these to control different shared styles for Split Buttons // We use these to control different shared styles for Split Buttons
// $split-button-function-factor: 10%; // $split-button-function-factor: 10%;
// $split-button-pip-color: $white; // $split-button-pip-color: $white;
// $split-button-span-border-color: rgba(255,255,255,0.5);
// $split-button-pip-color-alt: $oil; // $split-button-pip-color-alt: $oil;
// $split-button-active-bg-tint: rgba(0,0,0,0.1); // $split-button-active-bg-tint: rgba(0,0,0,0.1);
@ -1401,7 +1420,7 @@ $include-html-global-classes: $include-html-classes;
// $topbar-link-font-size: rem-calc(13); // $topbar-link-font-size: rem-calc(13);
// $topbar-link-hover-lightness: -10%; // Darken by 10% // $topbar-link-hover-lightness: -10%; // Darken by 10%
// $topbar-link-bg: $topbar-bg; // $topbar-link-bg: $topbar-bg;
// $topbar-link-bg-hover: $oil; // $topbar-link-bg-hover: $jet;
// $topbar-link-bg-color-hover: $charcoal; // $topbar-link-bg-color-hover: $charcoal;
// $topbar-link-bg-active: $primary-color; // $topbar-link-bg-active: $primary-color;
// $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%); // $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%);
@ -1410,7 +1429,7 @@ $include-html-global-classes: $include-html-classes;
// $topbar-link-padding: ($topbar-height / 3); // $topbar-link-padding: ($topbar-height / 3);
// $topbar-back-link-size: rem-calc(18); // $topbar-back-link-size: rem-calc(18);
// $topbar-link-dropdown-padding: rem-calc(20); // $topbar-link-dropdown-padding: rem-calc(20);
// $topbar-button-font-size: 0.75rem; // $topbar-button-font-size: .75rem;
// $topbar-button-top: 7px; // $topbar-button-top: 7px;
// Style the top bar dropdown elements // Style the top bar dropdown elements
@ -1418,11 +1437,11 @@ $include-html-global-classes: $include-html-classes;
// $topbar-dropdown-link-color: $white; // $topbar-dropdown-link-color: $white;
// $topbar-dropdown-link-color-hover: $topbar-link-color-hover; // $topbar-dropdown-link-color-hover: $topbar-link-color-hover;
// $topbar-dropdown-link-bg: $oil; // $topbar-dropdown-link-bg: $oil;
// $topbar-dropdown-link-bg-hover: $oil; // $topbar-dropdown-link-bg-hover: $jet;
// $topbar-dropdown-link-weight: $font-weight-normal; // $topbar-dropdown-link-weight: $font-weight-normal;
// $topbar-dropdown-toggle-size: 5px; // $topbar-dropdown-toggle-size: 5px;
// $topbar-dropdown-toggle-color: $white; // $topbar-dropdown-toggle-color: $white;
// $topbar-dropdown-toggle-alpha: 0.4; // $topbar-dropdown-toggle-alpha: .4;
// $topbar-dropdown-label-color: $monsoon; // $topbar-dropdown-label-color: $monsoon;
// $topbar-dropdown-label-text-transform: uppercase; // $topbar-dropdown-label-text-transform: uppercase;
@ -1444,7 +1463,7 @@ $include-html-global-classes: $include-html-classes;
// $topbar-transition-speed: 300ms; // $topbar-transition-speed: 300ms;
// Using rem-calc for the below breakpoint causes issues with top bar // Using rem-calc for the below breakpoint causes issues with top bar
// $topbar-breakpoint: #{lower-bound($medium-range)}; // Change to 9999px for always mobile layout // $topbar-breakpoint: #{lower-bound($medium-range)}; // Change to 9999px for always mobile layout
// $topbar-media-query: $medium-up; // $topbar-media-query: "#{$screen} and (min-width:#{lower-bound($topbar-breakpoint)})";
// Top-bar input styles // Top-bar input styles
// $topbar-input-height: rem-calc(28); // $topbar-input-height: rem-calc(28);

19
assets/scss/_normalize.scss vendored

@ -1,9 +1,9 @@
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
/** /**
* 1. Set default font family to sans-serif. * 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling * 2. Prevent iOS and IE text size adjust after device orientation change,
* user zoom. * without disabling user zoom.
*/ */
html { html {
@ -71,7 +71,7 @@ audio:not([controls]) {
/** /**
* Address `[hidden]` styling not present in IE 8/9/10. * Address `[hidden]` styling not present in IE 8/9/10.
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
*/ */
[hidden], [hidden],
@ -91,7 +91,8 @@ a {
} }
/** /**
* Improve readability when focused and also mouse hovered in all browsers. * Improve readability of focused elements when they are also in an
* active/hover state.
*/ */
a:active, a:active,
@ -209,7 +210,6 @@ figure {
*/ */
hr { hr {
-moz-box-sizing: content-box;
box-sizing: content-box; box-sizing: content-box;
height: 0; height: 0;
} }
@ -350,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button {
/** /**
* 1. Address `appearance` set to `searchfield` in Safari and Chrome. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
* (include `-moz` to future-proof).
*/ */
input[type="search"] { input[type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box; box-sizing: content-box; /* 2 */
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
} }
/** /**

94
assets/scss/foundation/_functions.scss

@ -8,6 +8,7 @@ $rem-base: 16px !default;
// IMPORT ONCE // IMPORT ONCE
// We use this to prevent styles from being loaded multiple times for components that rely on other components. // We use this to prevent styles from being loaded multiple times for components that rely on other components.
$modules: () !default; $modules: () !default;
@mixin exports($name) { @mixin exports($name) {
// Import from global scope // Import from global scope
$modules: $modules !global; $modules: $modules !global;
@ -26,11 +27,11 @@ $modules: () !default;
// RANGES // RANGES
// We use these functions to define ranges for various things, like media queries. // We use these functions to define ranges for various things, like media queries.
@function lower-bound($range){ @function lower-bound($range) {
@if length($range) <= 0 { @if length($range) <= 0 {
@return 0; @return 0;
} }
@return nth($range,1); @return nth($range, 1);
} }
@function upper-bound($range) { @function upper-bound($range) {
@ -50,45 +51,45 @@ $modules: () !default;
@function text-inputs( $types: all, $selector: input ) { @function text-inputs( $types: all, $selector: input ) {
$return: (); $return: ();
$all-text-input-types: $all-text-input-types:
text text
password password
date date
datetime datetime
datetime-local datetime-local
month month
week week
email email
number number
search search
tel tel
time time
url url
color color
textarea; textarea;
@if $types == all { $types: $all-text-input-types; } @if $types == all { $types: $all-text-input-types; }
@each $type in $types { @each $type in $types {
@if $type == textarea { @if $type == textarea {
@if $selector == input { @if $selector == input {
$return: append($return, unquote('#{$type}'), comma) $return: append($return, unquote('#{$type}'), comma)
} @else { } @else {
$return: append($return, unquote('#{$type}#{$selector}'), comma) $return: append($return, unquote('#{$type}#{$selector}'), comma)
} }
} @else { } @else {
$return: append($return, unquote('#{$selector}[type="#{$type}"]'), comma) $return: append($return, unquote('#{$selector}[type="#{$type}"]'), comma)
}
} }
}
@return $return; @return $return;
} }
// CONVERT TO REM // CONVERT TO REM
@function convert-to-rem($value, $base-value: $rem-base) { @function convert-to-rem($value, $base-value: $rem-base) {
$value: strip-unit($value) / strip-unit($base-value) * 1rem; $value: strip-unit($value) / strip-unit($base-value) * 1rem;
@if ($value == 0rem) { $value: 0; } // Turn 0rem into 0 @if ($value == 0rem) { $value: 0; } // Turn 0rem into 0
@return $value; @return $value;
@ -133,14 +134,23 @@ $modules: () !default;
@return $remValues; @return $remValues;
} }
// OLD EM CALC
// Deprecated: We'll drop support for this in 5.1.0, use rem-calc() @function em-calc($values) {
@function emCalc($values){ $remValues: rem-calc($values);
@return rem-calc($values);
$max: length($remValues);
@if $max == 1 { @return strip-unit(nth($remValues, 1)) * 1em; }
$emValues: ();
@for $i from 1 through $max {
$emValues: append($emValues, strip-unit(nth($remValues, $i)) * 1em);
}
@return $emValues;
} }
// OLD EM CALC
// Deprecated: We'll drop support for this in 5.1.0, use rem-calc() // Deprecated: OLD EM CALC
@function em-calc($values){ @function emCalc($values) {
@return rem-calc($values); @return em-calc($values);
} }

14
assets/scss/foundation/components/_accordion.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -32,7 +32,7 @@ $accordion-content-active-bg-color: $white !default;
margin-bottom: 0; margin-bottom: 0;
} }
// Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family){ // Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family) {
// @params $bg-color: [ color or string ]: Specify the background color for the navigation element // @params $bg-color: [ color or string ]: Specify the background color for the navigation element
// @params $hover-bg-color [ color or string ]: Specify the background color for the navigation element when hovered // @params $hover-bg-color [ color or string ]: Specify the background color for the navigation element when hovered
// @params $active-bg [ color or string ]: Specify the background color for the navigation element when clicked and not released. // @params $active-bg [ color or string ]: Specify the background color for the navigation element when clicked and not released.
@ -41,7 +41,7 @@ $accordion-content-active-bg-color: $white !default;
// @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element // @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element
// @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion // @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion
@mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family ){ @mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family ) {
display: block; display: block;
margin-bottom: 0 !important; margin-bottom: 0 !important;
@if type-of($active_class) != "string" { @if type-of($active_class) != "string" {
@ -98,7 +98,7 @@ $accordion-content-active-bg-color: $white !default;
// @params $bg [ color ]: Background color for the content when it's visible // @params $bg [ color ]: Background color for the content when it's visible
// @params $active_class [ string ]: Class name used to keep track of which accordion tab should be visible. // @params $active_class [ string ]: Class name used to keep track of which accordion tab should be visible.
@mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active'){ @mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active') {
display: none; display: none;
@if type-of($padding) != "number" { @if type-of($padding) != "number" {
@warn "#{$padding} was read as a #{type-of($padding)}"; @warn "#{$padding} was read as a #{type-of($padding)}";
@ -118,8 +118,8 @@ $accordion-content-active-bg-color: $white !default;
} }
@else { @else {
&.#{$active_class} { &.#{$active_class} {
display: block;
background: $bg; background: $bg;
display: block;
} }
} }
} }
@ -136,10 +136,10 @@ $accordion-content-active-bg-color: $white !default;
> a { > a {
background: $accordion-navigation-bg-color; background: $accordion-navigation-bg-color;
color: $accordion-navigation-font-color; color: $accordion-navigation-font-color;
padding: $accordion-navigation-padding;
display: block; display: block;
font-family: $accordion-navigation-font-family; font-family: $accordion-navigation-font-family;
font-size: $accordion-navigation-font-size; font-size: $accordion-navigation-font-size;
padding: $accordion-navigation-padding;
&:hover { background: $accordion-navigation-hover-bg-color; } &:hover { background: $accordion-navigation-hover-bg-color; }
} }
@ -147,8 +147,8 @@ $accordion-content-active-bg-color: $white !default;
display: none; display: none;
padding: $accordion-content-padding; padding: $accordion-content-padding;
&.active { &.active {
display: block;
background: $accordion-content-active-bg-color; background: $accordion-content-active-bg-color;
display: block;
} }
} }
} }

22
assets/scss/foundation/components/_alert-boxes.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// Alert Box Variables // Alert Box Variables
@ -35,8 +35,8 @@ $alert-close-color: $oil !default;
$alert-close-top: 50% !default; $alert-close-top: 50% !default;
$alert-close-position: rem-calc(4) !default; $alert-close-position: rem-calc(4) !default;
$alert-close-font-size: rem-calc(22) !default; $alert-close-font-size: rem-calc(22) !default;
$alert-close-opacity: 0.3 !default; $alert-close-opacity: .3 !default;
$alert-close-opacity-hover: 0.5 !default; $alert-close-opacity-hover: .5 !default;
$alert-close-padding: 0 6px 4px !default; $alert-close-padding: 0 6px 4px !default;
$alert-close-background: inherit !default; $alert-close-background: inherit !default;
@ -55,11 +55,11 @@ $alert-transition-ease: ease-out !default;
border-style: $alert-border-style; border-style: $alert-border-style;
border-width: $alert-border-width; border-width: $alert-border-width;
display: block; display: block;
font-size: $alert-font-size;
font-weight: $alert-font-weight; font-weight: $alert-font-weight;
margin-bottom: $alert-bottom-margin; margin-bottom: $alert-bottom-margin;
position: relative;
padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float; padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float;
font-size: $alert-font-size; position: relative;
@include single-transition(opacity, $alert-transition-speed, $alert-transition-ease) @include single-transition(opacity, $alert-transition-speed, $alert-transition-ease)
} }
@ -83,16 +83,16 @@ $alert-transition-ease: ease-out !default;
// We use this to create the close button. // We use this to create the close button.
@mixin alert-close { @mixin alert-close {
#{$opposite-direction}: $alert-close-position;
background: $alert-close-background;
color: $alert-close-color;
font-size: $alert-close-font-size; font-size: $alert-close-font-size;
padding: $alert-close-padding;
line-height: .9; line-height: .9;
position: absolute;
top: $alert-close-top;
margin-top: -($alert-close-font-size / 2); margin-top: -($alert-close-font-size / 2);
#{$opposite-direction}: $alert-close-position;
color: $alert-close-color;
opacity: $alert-close-opacity; opacity: $alert-close-opacity;
background: $alert-close-background; padding: $alert-close-padding;
position: absolute;
top: $alert-close-top;
&:hover, &:hover,
&:focus { opacity: $alert-close-opacity-hover; } &:focus { opacity: $alert-close-opacity-hover; }
} }

26
assets/scss/foundation/components/_block-grid.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// Block Grid Variables // Block Grid Variables
@ -48,10 +48,10 @@ $block-grid-media-queries: true !default;
} }
@include clearfix; @include clearfix;
&>li { > li {
display: block; display: block;
height: auto;
float: $default-float; float: $default-float;
height: auto;
@if $include-spacing { @if $include-spacing {
padding: 0 ($spacing/2) $spacing; padding: 0 ($spacing/2) $spacing;
} }
@ -59,12 +59,12 @@ $block-grid-media-queries: true !default;
} }
@if $per-row { @if $per-row {
&>li { > li {
width: 100%/$per-row; list-style: none;
@if $include-spacing { @if $include-spacing {
padding: 0 ($spacing/2) $spacing; padding: 0 ($spacing/2) $spacing;
} }
list-style: none; width: 100%/$per-row;
&:nth-of-type(1n) { clear: none; } &:nth-of-type(1n) { clear: none; }
&:nth-of-type(#{$per-row}n+1) { clear: both; } &:nth-of-type(#{$per-row}n+1) { clear: both; }
@ -93,10 +93,10 @@ $block-grid-media-queries: true !default;
// Generate presentational markup for block grid. // Generate presentational markup for block grid.
// //
// $size - Name of class to use, i.e. "large" will generate .large-block-grid-1, .large-block-grid-2, etc. // $size - Name of class to use, i.e. "large" will generate .large-block-grid-1, .large-block-grid-2, etc.
@mixin block-grid-html-classes($size,$include-spacing) { @mixin block-grid-html-classes($size, $include-spacing) {
@for $i from 1 through $block-grid-elements { @for $i from 1 through $block-grid-elements {
.#{$size}-block-grid-#{($i)} { .#{$size}-block-grid-#{($i)} {
@include block-grid($i,$block-grid-default-spacing,$include-spacing,false); @include block-grid($i, $block-grid-default-spacing, $include-spacing, false);
} }
} }
} }
@ -108,24 +108,24 @@ $block-grid-media-queries: true !default;
@if $block-grid-media-queries { @if $block-grid-media-queries {
@media #{$small-up} { @media #{$small-up} {
@include block-grid-html-classes($size:small,$include-spacing:false); @include block-grid-html-classes($size:small, $include-spacing:false);
} }
@media #{$medium-up} { @media #{$medium-up} {
@include block-grid-html-classes($size:medium,$include-spacing:false); @include block-grid-html-classes($size:medium, $include-spacing:false);
} }
@media #{$large-up} { @media #{$large-up} {
@include block-grid-html-classes($size:large,$include-spacing:false); @include block-grid-html-classes($size:large, $include-spacing:false);
} }
@if $include-xl-html-block-grid-classes { @if $include-xl-html-block-grid-classes {
@media #{$xlarge-up} { @media #{$xlarge-up} {
@include block-grid-html-classes($size:xlarge,$include-spacing:false); @include block-grid-html-classes($size:xlarge, $include-spacing:false);
} }
@media #{$xxlarge-up} { @media #{$xxlarge-up} {
@include block-grid-html-classes($size:xxlarge,$include-spacing:false); @include block-grid-html-classes($size:xxlarge, $include-spacing:false);
} }
} }
} }

35
assets/scss/foundation/components/_breadcrumbs.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// Breadcrumb Variables // Breadcrumb Variables
@ -41,13 +41,13 @@ $crumb-slash: "/" !default;
// We use this mixin to create a container around our breadcrumbs // We use this mixin to create a container around our breadcrumbs
@mixin crumb-container { @mixin crumb-container {
display: block;
padding: $crumb-padding;
overflow: hidden;
margin-#{$default-float}: 0;
list-style: none;
border-style: $crumb-border-style; border-style: $crumb-border-style;
border-width: $crumb-border-size; border-width: $crumb-border-size;
display: block;
list-style: none;
margin-#{$default-float}: 0;
overflow: hidden;
padding: $crumb-padding;
// We control which background color and border come through. // We control which background color and border come through.
background-color: $crumb-bg; background-color: $crumb-bg;
@ -58,12 +58,12 @@ $crumb-slash: "/" !default;
@mixin crumbs { @mixin crumbs {
// A normal state will make the links look and act like clickable breadcrumbs. // A normal state will make the links look and act like clickable breadcrumbs.
margin: 0; color: $crumb-font-color;
float: $default-float; float: $default-float;
font-size: $crumb-font-size; font-size: $crumb-font-size;
line-height: $crumb-font-size; line-height: $crumb-font-size;
margin: 0;
text-transform: $crumb-font-transform; text-transform: $crumb-font-transform;
color: $crumb-font-color;
&:hover a, &:focus a { text-decoration: $crumb-link-decor; } &:hover a, &:focus a { text-decoration: $crumb-link-decor; }
@ -73,11 +73,11 @@ $crumb-slash: "/" !default;
// Current is for the link of the current page // Current is for the link of the current page
&.current { &.current {
cursor: $cursor-default-value;
color: $crumb-font-color-current; color: $crumb-font-color-current;
cursor: $cursor-default-value;
a { a {
cursor: $cursor-default-value;
color: $crumb-font-color-current; color: $crumb-font-color-current;
cursor: $cursor-default-value;
} }
&:hover, &:hover a, &:hover, &:hover a,
@ -93,15 +93,15 @@ $crumb-slash: "/" !default;
&:hover a, &:hover a,
&:focus, &:focus,
a:focus { a:focus {
text-decoration: none;
color: $crumb-font-color-unavailable; color: $crumb-font-color-unavailable;
cursor: $cursor-disabled-value; cursor: $cursor-disabled-value;
text-decoration: none;
} }
} }
&:before { &:before {
content: "#{$crumb-slash}";
color: $crumb-slash-color; color: $crumb-slash-color;
content: "#{$crumb-slash}";
margin: 0 $crumb-side-padding; margin: 0 $crumb-side-padding;
position: relative; position: relative;
top: 1px; top: 1px;
@ -119,14 +119,13 @@ $crumb-slash: "/" !default;
@include crumb-container; @include crumb-container;
@include radius($crumb-radius); @include radius($crumb-radius);
&>* { > * {
@include crumbs; @include crumbs;
} }
} }
/* Accessibility - hides the forward slash */
[aria-label="breadcrumbs"] [aria-hidden="true"]:after {
content: "/";
}
} }
} }
/* Accessibility - hides the forward slash */
[aria-label="breadcrumbs"] [aria-hidden="true"]:after {
content: "/";
}

51
assets/scss/foundation/components/_button-groups.scss

@ -2,8 +2,8 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
@import "buttons"; @import 'buttons';
// //
// Button Group Variables // Button Group Variables
@ -38,7 +38,7 @@ $button-group-border-width: 1px !default;
> button, .button { > button, .button {
border-#{$default-float}: $button-group-border-width solid; border-#{$default-float}: $button-group-border-width solid;
border-color: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, .5);
} }
&:first-child { &:first-child {
@ -47,28 +47,31 @@ $button-group-border-width: 1px !default;
} }
} }
$button-group-display: list-item;
$button-group-margin: 0;
// We use this to control the flow, or remove those styles completely. // We use this to control the flow, or remove those styles completely.
@if $float { @if $float {
margin: 0; $button-group-display: list-item;
$button-group-margin: 0;
float: $float; float: $float;
display: list-item;
// Make sure the first child doesn't get the negative margin. // Make sure the first child doesn't get the negative margin.
&:first-child { margin-#{$default-float}: 0; } &:first-child { margin-#{$default-float}: 0; }
} }
@else { @else {
margin: 0 -2px; $button-group-display: inline-block;
display: inline-block; $button-group-margin: 0 -2px;
} }
@if $orientation == vertical { @if $orientation == vertical {
display:block; $button-group-display: block;
margin:0; $button-group-margin: 0;
> button, .button { > button, .button {
border-top: $button-group-border-width solid; border-color: rgba(255, 255, 255, .5);
border-color: rgba(255, 255, 255, 0.5);
border-left-width: 0; border-left-width: 0;
margin:0; border-top: $button-group-border-width solid;
display: block; display: block;
margin:0;
} }
> button { > button {
width: 100%; width: 100%;
@ -81,12 +84,16 @@ $button-group-border-width: 1px !default;
} }
} }
display: $button-group-display;
margin: $button-group-margin;
// We use these to control left and right radius on first/last buttons in the group. // We use these to control left and right radius on first/last buttons in the group.
@if $radius == true { @if $radius == true {
&, &,
& > a, > a,
& > button, > button,
& > .button { @include radius(0); } > .button { @include radius(0); }
&:first-child, &:first-child,
&:first-child > a, &:first-child > a,
&:first-child > button, &:first-child > button,
@ -112,9 +119,9 @@ $button-group-border-width: 1px !default;
} }
@else if $radius { @else if $radius {
&, &,
& > a, > a,
& > button, > button,
& > .button { @include radius(0); } > .button { @include radius(0); }
&:first-child, &:first-child,
&:first-child > a, &:first-child > a,
&:first-child > button, &:first-child > button,
@ -153,15 +160,15 @@ $button-group-border-width: 1px !default;
@for $i from 2 through 8 { @for $i from 2 through 8 {
&.even-#{$i} li { @include button-group-style($even:$i, $float:null); } &.even-#{$i} li { @include button-group-style($even:$i, $float:null); }
} }
& > li { @include button-group-style(); } > li { @include button-group-style(); }
&.stack { &.stack {
& > li { @include button-group-style($orientation:vertical); float: none; } > li { @include button-group-style($orientation:vertical); float: none; }
} }
&.stack-for-small { &.stack-for-small {
& > li { > li {
@include button-group-style($orientation:horizontal); @include button-group-style($orientation:horizontal);
@media #{$small-only} { @media #{$small-only} {
@include button-group-style($orientation:vertical); @include button-group-style($orientation:vertical);

30
assets/scss/foundation/components/_buttons.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -55,7 +55,7 @@ $button-radius: $global-radius !default;
$button-round: $global-rounded !default; $button-round: $global-rounded !default;
// We use this to set default opacity and cursor for disabled buttons. // We use this to set default opacity and cursor for disabled buttons.
$button-disabled-opacity: 0.7 !default; $button-disabled-opacity: .7 !default;
$button-disabled-cursor: $cursor-default-value !default; $button-disabled-cursor: $cursor-default-value !default;
@ -69,6 +69,9 @@ $button-disabled-cursor: $cursor-default-value !default;
@mixin button-base($style:true, $display:$button-display) { @mixin button-base($style:true, $display:$button-display) {
@if $style { @if $style {
-webkit-appearance: none;
-moz-appearance: none;
border-radius:0;
border-style: $button-border-style; border-style: $button-border-style;
border-width: $button-border-width; border-width: $button-border-width;
cursor: $cursor-pointer-value; cursor: $cursor-pointer-value;
@ -77,11 +80,8 @@ $button-disabled-cursor: $cursor-default-value !default;
line-height: normal; line-height: normal;
margin: 0 0 $button-margin-bottom; margin: 0 0 $button-margin-bottom;
position: relative; position: relative;
text-decoration: none;
text-align: $button-font-align; text-align: $button-font-align;
-webkit-appearance: none; text-decoration: none;
-moz-appearance: none;
border-radius:0;
} }
@if $display { display: $display; } @if $display { display: $display; }
} }
@ -98,11 +98,7 @@ $button-disabled-cursor: $cursor-default-value !default;
// We control which padding styles come through, // We control which padding styles come through,
// these can be turned off by setting $padding:false // these can be turned off by setting $padding:false
@if $padding { @if $padding {
padding-top: $padding; padding: $padding ($padding * 2) ($padding + rem-calc(1)) ($padding * 2);
padding-#{$opposite-direction}: $padding * 2;
padding-bottom: $padding + rem-calc(1);
padding-#{$default-float}: $padding * 2;
// We control the font-size based on mixin input. // We control the font-size based on mixin input.
@if $padding == $button-med { font-size: $button-font-med; } @if $padding == $button-med { font-size: $button-font-med; }
@else if $padding == $button-tny { font-size: $button-font-tny; } @else if $padding == $button-tny { font-size: $button-font-tny; }
@ -114,14 +110,14 @@ $button-disabled-cursor: $cursor-default-value !default;
@if $full-width { @if $full-width {
// We still need to check if $padding is set. // We still need to check if $padding is set.
@if $padding { @if $padding {
padding-top: $padding; padding-bottom: $padding + rem-calc(1);
padding-bottom: $padding + rem-calc(1); padding-top: $padding;
} @else if $padding == false { } @else if $padding == false {
padding-top:0;
padding-bottom:0; padding-bottom:0;
padding-top:0;
} }
padding-right: 0;
padding-left: 0; padding-left: 0;
padding-right: 0;
width: 100%; width: 100%;
} }
} }
@ -173,9 +169,9 @@ $button-disabled-cursor: $cursor-default-value !default;
// We can set $disabled:true to create a disabled transparent button. // We can set $disabled:true to create a disabled transparent button.
@if $disabled { @if $disabled {
box-shadow: none;
cursor: $button-disabled-cursor; cursor: $button-disabled-cursor;
opacity: $button-disabled-opacity; opacity: $button-disabled-opacity;
box-shadow: none;
&:hover, &:hover,
&:focus { background-color: $bg; } &:focus { background-color: $bg; }
} }
@ -230,7 +226,7 @@ $button-disabled-cursor: $cursor-default-value !default;
&.large { @include button-size($padding:$button-lrg); } &.large { @include button-size($padding:$button-lrg); }
&.small { @include button-size($padding:$button-sml); } &.small { @include button-size($padding:$button-sml); }
&.tiny { @include button-size($padding:$button-tny); } &.tiny { @include button-size($padding:$button-tny); }
&.expand { @include button-size($padding:null,$full-width:true); } &.expand { @include button-size($padding:null, $full-width:true); }
&.left-align { text-align: left; text-indent: rem-calc(12); } &.left-align { text-align: left; text-indent: rem-calc(12); }
&.right-align { text-align: right; padding-right: rem-calc(12); } &.right-align { text-align: right; padding-right: rem-calc(12); }

98
assets/scss/foundation/components/_clearing.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -25,7 +25,7 @@ $clearing-arrow-color: $clearing-close-color !default;
// We use these to style captions // We use these to style captions
$clearing-caption-font-color: $iron !default; $clearing-caption-font-color: $iron !default;
$clearing-caption-font-size: 0.875em !default; $clearing-caption-font-size: .875em !default;
$clearing-caption-padding: 10px 30px 20px !default; $clearing-caption-padding: 10px 30px 20px !default;
// We use these to make the image and carousel height and style // We use these to make the image and carousel height and style
@ -43,9 +43,9 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
/* Clearing Styles */ /* Clearing Styles */
.clearing-thumbs, #{data('clearing')} { .clearing-thumbs, #{data('clearing')} {
@include clearfix; @include clearfix;
margin-bottom: 0;
margin-#{$default-float}: 0;
list-style: none; list-style: none;
margin-#{$default-float}: 0;
margin-bottom: 0;
li { li {
float: $default-float; float: $default-float;
@ -59,30 +59,30 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
.clearing-blackout { .clearing-blackout {
background: $clearing-bg; background: $clearing-bg;
position: fixed;
width: 100%;
height: 100%; height: 100%;
position: fixed;
top: 0; top: 0;
#{$default-float}: 0; width: 100%;
z-index: 998; z-index: 998;
#{$default-float}: 0;
.clearing-close { display: block; } .clearing-close { display: block; }
} }
.clearing-container { .clearing-container {
position: relative;
z-index: 998;
height: 100%; height: 100%;
overflow: hidden;
margin: 0; margin: 0;
overflow: hidden;
position: relative;
z-index: 998;
} }
.clearing-touch-label { .clearing-touch-label {
color: $base;
font-size: .6em;
left: 50%;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%;
color: $base;
font-size: 0.6em;
} }
.visible-img { .visible-img {
@ -94,14 +94,18 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
#{$default-float}: 50%; #{$default-float}: 50%;
top: 50%; top: 50%;
@if $default-float == left { @if $default-float == left {
transform: translateY(-50%) translateX(-50%);
-webkit-transform: translateY(-50%) translateX(-50%); -webkit-transform: translateY(-50%) translateX(-50%);
-moz-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%); -ms-transform: translateY(-50%) translateX(-50%);
-o-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
} }
@else { @else {
transform: translateY(-50%) translateX(50%);
-webkit-transform: translateY(-50%) translateX(50%); -webkit-transform: translateY(-50%) translateX(50%);
-moz-transform: translateY(-50%) translateX(50%);
-ms-transform: translateY(-50%) translateX(50%); -ms-transform: translateY(-50%) translateX(50%);
-o-transform: translateY(-50%) translateX(50%);
transform: translateY(-50%) translateX(50%);
}; };
max-height: 100%; max-height: 100%;
max-width: 100%; max-width: 100%;
@ -109,27 +113,27 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
} }
.clearing-caption { .clearing-caption {
background: $clearing-caption-bg;
bottom: 0;
color: $clearing-caption-font-color; color: $clearing-caption-font-color;
font-size: $clearing-caption-font-size; font-size: $clearing-caption-font-size;
line-height: 1.3; line-height: 1.3;
margin-bottom: 0; margin-bottom: 0;
text-align: center;
bottom: 0;
background: $clearing-caption-bg;
width: 100%;
padding: $clearing-caption-padding; padding: $clearing-caption-padding;
position: absolute; position: absolute;
text-align: center;
width: 100%;
#{$default-float}: 0; #{$default-float}: 0;
} }
.clearing-close { .clearing-close {
z-index: 999;
padding-#{$default-float}: 20px;
padding-top: 10px;
font-size: $clearing-close-size;
line-height: 1;
color: $clearing-close-color; color: $clearing-close-color;
display: none; display: none;
font-size: $clearing-close-size;
line-height: 1;
padding-#{$default-float}: 20px;
padding-top: 10px;
z-index: 999;
&:hover, &:hover,
&:focus { color: $iron; } &:focus { color: $iron; }
@ -151,23 +155,23 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
@media #{$medium-up} { @media #{$medium-up} {
.clearing-main-prev, .clearing-main-prev,
.clearing-main-next { .clearing-main-next {
position: absolute;
height: 100%; height: 100%;
width: 40px; position: absolute;
top: 0; top: 0;
& > span { width: 40px;
> span {
border: solid $clearing-arrow-size;
display: block;
height: 0;
position: absolute; position: absolute;
top: 50%; top: 50%;
display: block;
width: 0; width: 0;
height: 0; &:hover { opacity: .8; }
border: solid $clearing-arrow-size;
&:hover { opacity: 0.8; }
} }
} }
.clearing-main-prev { .clearing-main-prev {
#{$default-float}: 0; #{$default-float}: 0;
& > span { > span {
#{$default-float}: 5px; #{$default-float}: 5px;
border-color: transparent; border-color: transparent;
border-#{$opposite-direction}-color: $clearing-arrow-color; border-#{$opposite-direction}-color: $clearing-arrow-color;
@ -175,14 +179,14 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
} }
.clearing-main-next { .clearing-main-next {
#{$opposite-direction}: 0; #{$opposite-direction}: 0;
& > span { > span {
border-color: transparent; border-color: transparent;
border-#{$default-float}-color: $clearing-arrow-color; border-#{$default-float}-color: $clearing-arrow-color;
} }
} }
.clearing-main-prev.disabled, .clearing-main-prev.disabled,
.clearing-main-next.disabled { opacity: 0.3; } .clearing-main-next.disabled { opacity: .3; }
.clearing-assembled .clearing-container { .clearing-assembled .clearing-container {
@ -192,7 +196,7 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
margin-top: 10px; margin-top: 10px;
text-align: center; text-align: center;
& > ul { > ul {
display: inline-block; display: inline-block;
z-index: 999; z-index: 999;
height: 100%; height: 100%;
@ -200,17 +204,17 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
float: none; float: none;
li { li {
clear: none;
cursor: $cursor-pointer-value;
display: block; display: block;
width: $clearing-carousel-thumb-width;
min-height: inherit;
float: $default-float; float: $default-float;
overflow: hidden;
margin-#{$opposite-direction}: 0; margin-#{$opposite-direction}: 0;
min-height: inherit;
opacity: .4;
overflow: hidden;
padding: 0; padding: 0;
position: relative; position: relative;
cursor: $cursor-pointer-value; width: $clearing-carousel-thumb-width;
opacity: 0.4;
clear: none;
&.fix-height { &.fix-height {
img { img {
@ -226,29 +230,29 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
} }
img { img {
cursor: $cursor-pointer-value !important; cursor: $cursor-pointer-value !important;
width: 100% !important; width: 100% !important;
} }
&.visible { opacity: 1; } &.visible { opacity: 1; }
&:hover { opacity: 0.8; } &:hover { opacity: .8; }
} }
} }
} }
.visible-img { .visible-img {
background: $clearing-img-bg; background: $clearing-img-bg;
overflow: hidden;
height: $clearing-active-img-height; height: $clearing-active-img-height;
overflow: hidden;
} }
} }
.clearing-close { .clearing-close {
padding-#{$default-float}: 0;
padding-top: 0;
position: absolute; position: absolute;
top: 10px; top: 10px;
#{$opposite-direction}: 20px; #{$opposite-direction}: 20px;
padding-#{$default-float}: 0;
padding-top: 0;
} }
} }

21
assets/scss/foundation/components/_dropdown-buttons.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -53,23 +53,22 @@ $dropdown-button-pip-top-lrg: (-$button-pip-lrg / 2) + rem-calc(3) !default;
// $pip-color - Color of the little triangle that points to the dropdown. Default: $white. // $pip-color - Color of the little triangle that points to the dropdown. Default: $white.
// $base-style - Add in base-styles. This can be set to false. Default:true // $base-style - Add in base-styles. This can be set to false. Default:true
@mixin dropdown-button($padding:medium, $pip-color:$white, $base-style:true) { @mixin dropdown-button($padding:medium, $pip-color:$dropdown-button-pip-color, $base-style:true) {
// We add in base styles, but they can be negated by setting to 'false'. // We add in base styles, but they can be negated by setting to 'false'.
@if $base-style { @if $base-style {
position: relative; position: relative;
outline: none;
// This creates the base styles for the triangle pip // This creates the base styles for the triangle pip
&::after { &::after {
position: absolute; border-color: $dropdown-button-pip-color transparent transparent transparent;
border-style: solid;
content: ""; content: "";
width: 0;
height: 0;
display: block; display: block;
border-style: solid; height: 0;
border-color: $dropdown-button-pip-color transparent transparent transparent; position: absolute;
top: 50%; top: 50%;
width: 0;
} }
} }
@ -122,9 +121,9 @@ $dropdown-button-pip-top-lrg: (-$button-pip-lrg / 2) + rem-calc(3) !default;
@include exports("dropdown-button") { @include exports("dropdown-button") {
@if $include-html-button-classes { @if $include-html-button-classes {
.dropdown.button, button.dropdown { @include dropdown-button; .dropdown.button, button.dropdown { @include dropdown-button;
&.tiny { @include dropdown-button(tiny,$base-style:false); } &.tiny { @include dropdown-button(tiny, $base-style:false); }
&.small { @include dropdown-button(small,$base-style:false); } &.small { @include dropdown-button(small, $base-style:false); }
&.large { @include dropdown-button(large,$base-style:false); } &.large { @include dropdown-button(large, $base-style:false); }
&.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; } &.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
} }
} }

78
assets/scss/foundation/components/_dropdown.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -64,60 +64,67 @@ $f-dropdown-radius: $global-radius !default;
// $triangle - Sets if dropdown has triangle. Default:true. // $triangle - Sets if dropdown has triangle. Default:true.
// $max-width - Default: $f-dropdown-max-width || 200px. // $max-width - Default: $f-dropdown-max-width || 200px.
@mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) { @mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) {
position: absolute; display: none;
left: -9999px; left: -9999px;
list-style: $f-dropdown-list-style; list-style: $f-dropdown-list-style;
margin-#{$default-float}: 0; margin-#{$default-float}: 0;
outline: none; position: absolute;
&.open {
display: block;
}
> *:first-child { margin-top: 0; } > *:first-child { margin-top: 0; }
> *:last-child { margin-bottom: 0; } > *:last-child { margin-bottom: 0; }
@if $content == list { @if $content == list {
width: 100%;
max-height: $f-dropdown-max-height;
height: $f-dropdown-height;
background: $f-dropdown-bg; background: $f-dropdown-bg;
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color; border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
font-size: $f-dropdown-font-size; font-size: $f-dropdown-font-size;
height: $f-dropdown-height;
max-height: $f-dropdown-max-height;
width: 100%;
z-index: 89; z-index: 89;
} }
@else if $content == content { @else if $content == content {
padding: $f-dropdown-content-padding;
width: 100%;
height: $f-dropdown-height;
max-height: $f-dropdown-max-height;
background: $f-dropdown-bg; background: $f-dropdown-bg;
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color; border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
font-size: $f-dropdown-font-size; font-size: $f-dropdown-font-size;
height: $f-dropdown-height;
max-height: $f-dropdown-max-height;
padding: $f-dropdown-content-padding;
width: 100%;
z-index: 89; z-index: 89;
} }
@if $triangle == bottom { @if $triangle == bottom {
margin-top: $f-dropdown-margin-top; margin-top: $f-dropdown-margin-top;
&:before { @if $f-dropdown-triangle-size != 0px {
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
position: absolute;
top: -($f-dropdown-triangle-size * 2);
#{$default-float}: $f-dropdown-triangle-side-offset;
z-index: 89;
}
&:after {
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
position: absolute;
top: -(($f-dropdown-triangle-size + 1) * 2);
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
z-index: 88;
}
&.right:before { &:before {
#{$default-float}: auto; @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
#{$opposite-direction}: $f-dropdown-triangle-side-offset; position: absolute;
} top: -($f-dropdown-triangle-size * 2);
&.right:after { #{$default-float}: $f-dropdown-triangle-side-offset;
#{$default-float}: auto; z-index: 89;
#{$opposite-direction}: $f-dropdown-triangle-side-offset - 1; }
&:after {
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
position: absolute;
top: -(($f-dropdown-triangle-size + 1) * 2);
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
z-index: 88;
}
&.right:before {
#{$default-float}: auto;
#{$opposite-direction}: $f-dropdown-triangle-side-offset;
}
&.right:after {
#{$default-float}: auto;
#{$opposite-direction}: $f-dropdown-triangle-side-offset - 1;
}
} }
} }
@ -166,23 +173,23 @@ $f-dropdown-radius: $global-radius !default;
} }
@if $triangle == top { @if $triangle == top {
margin-top: -$f-dropdown-margin-bottom;
margin-left: 0; margin-left: 0;
margin-top: -$f-dropdown-margin-bottom;
&:before { &:before {
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, top); @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, top);
bottom: -($f-dropdown-triangle-size * 2);
position: absolute; position: absolute;
top: auto; top: auto;
bottom: -($f-dropdown-triangle-size * 2);
#{$default-float}: $f-dropdown-triangle-side-offset; #{$default-float}: $f-dropdown-triangle-side-offset;
#{$opposite-direction}: auto; #{$opposite-direction}: auto;
z-index: 89; z-index: 89;
} }
&:after { &:after {
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top); @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top);
bottom: -($f-dropdown-triangle-size * 2) - 2;
position: absolute; position: absolute;
top: auto; top: auto;
bottom: -($f-dropdown-triangle-size * 2) - 2;
#{$default-float}: $f-dropdown-triangle-side-offset - 1; #{$default-float}: $f-dropdown-triangle-side-offset - 1;
#{$opposite-direction}: auto; #{$opposite-direction}: auto;
z-index: 88; z-index: 88;
@ -200,9 +207,8 @@ $f-dropdown-radius: $global-radius !default;
// We use this to style the list elements or content inside the dropdown. // We use this to style the list elements or content inside the dropdown.
@mixin dropdown-style { @mixin dropdown-style {
font-size: $f-dropdown-font-size;
cursor: $cursor-pointer-value; cursor: $cursor-pointer-value;
font-size: $f-dropdown-font-size;
line-height: $f-dropdown-line-height; line-height: $f-dropdown-line-height;
margin: 0; margin: 0;

14
assets/scss/foundation/components/_flex-video.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -22,12 +22,12 @@ $flex-video-widescreen-padding-bottom: 56.34% !default;
// //
@mixin flex-video-container { @mixin flex-video-container {
position: relative;
padding-top: $flex-video-padding-top;
padding-bottom: $flex-video-padding-bottom;
height: 0; height: 0;
margin-bottom: $flex-video-margin-bottom; margin-bottom: $flex-video-margin-bottom;
overflow: hidden; overflow: hidden;
padding-bottom: $flex-video-padding-bottom;
padding-top: $flex-video-padding-top;
position: relative;
&.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; } &.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; }
&.vimeo { padding-top: 0; } &.vimeo { padding-top: 0; }
@ -36,11 +36,11 @@ $flex-video-widescreen-padding-bottom: 56.34% !default;
object, object,
embed, embed,
video { video {
height: 100%;
position: absolute; position: absolute;
top: 0; top: 0;
#{$default-float}: 0;
width: 100%; width: 100%;
height: 100%; #{$default-float}: 0;
} }
} }
@ -48,4 +48,4 @@ $flex-video-widescreen-padding-bottom: 56.34% !default;
@if $include-html-media-classes { @if $include-html-media-classes {
.flex-video { @include flex-video-container; } .flex-video { @include flex-video-container; }
} }
} }

132
assets/scss/foundation/components/_forms.scss

@ -2,8 +2,8 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
@import "buttons"; @import 'buttons';
// //
// @variables // @variables
@ -23,6 +23,7 @@ $form-label-small-transform: capitalize !default;
$form-label-bottom-margin: 0 !default; $form-label-bottom-margin: 0 !default;
$input-font-family: inherit !default; $input-font-family: inherit !default;
$input-font-color: rgba(0,0,0,0.75) !default; $input-font-color: rgba(0,0,0,0.75) !default;
$input-placeholder-font-color: #cccccc !default;
$input-font-size: rem-calc(14) !default; $input-font-size: rem-calc(14) !default;
$input-bg-color: $white !default; $input-bg-color: $white !default;
$input-focus-bg-color: scale-color($white, $lightness: -2%) !default; $input-focus-bg-color: scale-color($white, $lightness: -2%) !default;
@ -71,9 +72,13 @@ $input-error-message-bg-color: $alert-color !default;
$input-error-message-font-color-alt: $oil !default; $input-error-message-font-color-alt: $oil !default;
// We use this to style the glowing effect of inputs when focused // We use this to style the glowing effect of inputs when focused
$glowing-effect-fade-time: 0.45s !default; $glowing-effect-fade-time: .45s !default;
$glowing-effect-color: $input-focus-border-color !default; $glowing-effect-color: $input-focus-border-color !default;
// We use this to style the transition when inputs are focused and when the glowing effect is disabled.
$input-transition-fade-time: 0.15s !default;
$input-transition-fade-timing-function: linear !default;
// Select variables // Select variables
$select-bg-color: $ghost !default; $select-bg-color: $ghost !default;
$select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default; $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
@ -111,7 +116,6 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// We use this mixin to give all basic form elements their style // We use this mixin to give all basic form elements their style
@mixin form-element { @mixin form-element {
background-color: $input-bg-color; background-color: $input-bg-color;
font-family: $input-font-family;
border: { border: {
style: $input-border-style; style: $input-border-style;
width: $input-border-width; width: $input-border-width;
@ -120,10 +124,11 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
box-shadow: $input-box-shadow; box-shadow: $input-box-shadow;
color: $input-font-color; color: $input-font-color;
display: block; display: block;
font-family: $input-font-family;
font-size: $input-font-size; font-size: $input-font-size;
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
margin: 0 0 $form-spacing 0; margin: 0 0 $form-spacing 0;
padding: $form-spacing / 2; padding: $form-spacing / 2;
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
width: 100%; width: 100%;
@include box-sizing(border-box); @include box-sizing(border-box);
@if $input-include-glowing-effect { @if $input-include-glowing-effect {
@ -135,7 +140,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
border-color: $input-focus-border-color; border-color: $input-focus-border-color;
outline: none; outline: none;
} }
// Disbaled Styles // Disabled Styles
&:disabled { &:disabled {
background-color: $input-disabled-bg; background-color: $input-disabled-bg;
cursor: $input-disabled-cursor; cursor: $input-disabled-cursor;
@ -160,10 +165,10 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// Control whether or not the base styles come through. // Control whether or not the base styles come through.
@if $base-style { @if $base-style {
font-size: $form-label-font-size;
color: $form-label-font-color; color: $form-label-font-color;
cursor: $form-label-pointer; cursor: $form-label-pointer;
display: block; display: block;
font-size: $form-label-font-size;
font-weight: $form-label-font-weight; font-weight: $form-label-font-weight;
line-height: $form-label-line-height; line-height: $form-label-line-height;
margin-bottom: $form-label-bottom-margin; margin-bottom: $form-label-bottom-margin;
@ -182,19 +187,19 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// We use this mixin to create postfix/prefix form Labels // We use this mixin to create postfix/prefix form Labels
@mixin prefix-postfix-base { @mixin prefix-postfix-base {
display: block;
position: relative;
z-index: 2;
text-align: center;
width: 100%;
padding-top: 0;
padding-bottom: 0;
border-style: $input-prefix-border-type; border-style: $input-prefix-border-type;
border-width: $input-prefix-border-size; border-width: $input-prefix-border-size;
overflow: $input-prefix-overflow; display: block;
font-size: $form-label-font-size; font-size: $form-label-font-size;
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)); height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
line-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)); line-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
overflow: $input-prefix-overflow;
padding-bottom: 0;
padding-top: 0;
position: relative;
text-align: center;
width: 100%;
z-index: 2;
} }
// @MIXIN // @MIXIN
@ -220,12 +225,12 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
} }
@if $is-button { @if $is-button {
border: none;
padding-#{$default-float}: 0; padding-#{$default-float}: 0;
padding-#{$opposite-direction}: 0; padding-#{$opposite-direction}: 0;
padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
padding-top: 0;
text-align: center; text-align: center;
border: none;
} }
} }
@ -235,12 +240,14 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// We use this mixin to create postfix label styles // We use this mixin to create postfix label styles
// $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default; // $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default;
// $is-button - Toggle position settings if prefix is a button. Default: false // $is-button - Toggle position settings if prefix is a button. Default: false
@mixin postfix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) { @mixin postfix($bg:$input-prefix-bg, $border-left-hidden:false, $border:$input-prefix-border-color, $is-button:false) {
@if $bg { @if $bg {
$bg-lightness: lightness($bg); $bg-lightness: lightness($bg);
background: $bg; background: $bg;
border-#{$default-float}: none; @if $border-left-hidden {
border-#{$default-float}: none;
}
// Control the font color based on background brightness // Control the font color based on background brightness
@if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; } @if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
@ -252,12 +259,12 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
} }
@if $is-button { @if $is-button {
border: none;
padding-#{$default-float}: 0; padding-#{$default-float}: 0;
padding-#{$opposite-direction}: 0; padding-#{$opposite-direction}: 0;
padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
padding-top: 0;
text-align: center; text-align: center;
border: none;
} }
} }
@ -265,16 +272,16 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// We use this mixin to style fieldsets // We use this mixin to style fieldsets
@mixin fieldset { @mixin fieldset {
border: $fieldset-border-width $fieldset-border-style $fieldset-border-color; border: $fieldset-border-width $fieldset-border-style $fieldset-border-color;
padding: $fieldset-padding;
margin: $fieldset-margin; margin: $fieldset-margin;
padding: $fieldset-padding;
// and legend styles // and legend styles
legend { legend {
font-weight: $legend-font-weight;
background: $legend-bg; background: $legend-bg;
padding: $legend-padding; font-weight: $legend-font-weight;
margin: 0;
margin-#{$default-float}: rem-calc(-3); margin-#{$default-float}: rem-calc(-3);
margin: 0;
padding: $legend-padding;
} }
} }
@ -283,8 +290,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// We use this mixin to control border and background color of error inputs // We use this mixin to control border and background color of error inputs
// $color - Default: $alert-color (found in settings file) // $color - Default: $alert-color (found in settings file)
@mixin form-error-color($color:$alert-color) { @mixin form-error-color($color:$alert-color) {
background-color: rgba($color, .1);
border-color: $color; border-color: $color;
background-color: rgba($color, 0.1);
// Go back to normal on focus // Go back to normal on focus
&:focus { &:focus {
@ -305,12 +312,12 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// $bg - Default: $alert-color (Found in settings file) // $bg - Default: $alert-color (Found in settings file)
@mixin form-error-message($bg:$input-error-message-bg-color) { @mixin form-error-message($bg:$input-error-message-bg-color) {
display: block; display: block;
padding: $input-error-message-padding;
margin-top: $input-error-message-top;
margin-bottom: $form-spacing;
font-size: $input-error-message-font-size; font-size: $input-error-message-font-size;
font-weight: $input-error-message-font-weight;
font-style: $input-error-message-font-style; font-style: $input-error-message-font-style;
font-weight: $input-error-message-font-weight;
margin-bottom: $form-spacing;
margin-top: $input-error-message-top;
padding: $input-error-message-padding;
// We can control the text color based on the brightness of the background. // We can control the text color based on the brightness of the background.
$bg-lightness: lightness($bg); $bg-lightness: lightness($bg);
@ -322,8 +329,9 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
// We use this mixin to style select elements // We use this mixin to style select elements
@mixin form-select { @mixin form-select {
-webkit-appearance: none !important; -webkit-appearance: none !important;
border-radius: 0; -moz-appearance: none !important;
background-color: $select-bg-color; background-color: $select-bg-color;
border-radius: 0;
// Hide the dropdown arrow shown in newer IE versions // Hide the dropdown arrow shown in newer IE versions
&::-ms-expand { &::-ms-expand {
@ -343,11 +351,11 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
width: $input-border-width; width: $input-border-width;
color: $input-border-color; color: $input-border-color;
} }
padding: ($form-spacing / 2);
font-size: $input-font-size;
font-family: $body-font-family;
color: $input-font-color; color: $input-font-color;
font-family: $input-font-family;
font-size: $input-font-size;
line-height: normal; line-height: normal;
padding: ($form-spacing / 2);
@include radius(0); @include radius(0);
&.radius { @include radius($global-radius); } &.radius { @include radius($global-radius); }
&:hover { &:hover {
@ -383,8 +391,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
/* Label Styles */ /* Label Styles */
label { @include form-label; label { @include form-label;
&.right { @include form-label(right,false); } &.right { @include form-label(right, false); }
&.inline { @include form-label(inline,false); } &.inline { @include form-label(inline, false); }
/* Styles for required inputs */ /* Styles for required inputs */
small { small {
text-transform: $form-label-small-transform; text-transform: $form-label-small-transform;
@ -397,8 +405,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
.postfix { @include prefix-postfix-base; } .postfix { @include prefix-postfix-base; }
/* Adjust padding, alignment and radius if pre/post element is a button */ /* Adjust padding, alignment and radius if pre/post element is a button */
.postfix.button { @include button-size(false,false); @include postfix(false, false, true); } .postfix.button { @include button-size(false, false); @include postfix(false, false, true); }
.prefix.button { @include button-size(false,false); @include prefix(false, false, true); } .prefix.button { @include button-size(false, false); @include prefix(false, false, true); }
.prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); } .prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); }
.postfix.button.radius { @include radius(0); @include side-radius($opposite-direction, $button-radius); } .postfix.button.radius { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
@ -406,16 +414,21 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
.postfix.button.round { @include radius(0); @include side-radius($opposite-direction, $button-round); } .postfix.button.round { @include radius(0); @include side-radius($opposite-direction, $button-round); }
/* Separate prefix and postfix styles when on span or label so buttons keep their own */ /* Separate prefix and postfix styles when on span or label so buttons keep their own */
span.prefix,label.prefix { @include prefix(); } span.prefix, label.prefix { @include prefix(); }
span.postfix,label.postfix { @include postfix(); } span.postfix, label.postfix { @include postfix(); }
/* We use this to get basic styling on all basic form elements */ /* We use this to get basic styling on all basic form elements */
#{text-inputs(all, 'input')} { #{text-inputs(all, 'input')} {
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none;
border-radius: 0; border-radius: 0;
@include form-element; @include form-element;
@if $input-include-glowing-effect == false { @if $input-include-glowing-effect == false {
@include single-transition(all, 0.15s, linear); -webkit-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
-moz-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
-ms-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
-o-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
} }
&.radius { &.radius {
@include radius($input-border-radius); @include radius($input-border-radius);
@ -457,6 +470,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
input[type="submit"] { input[type="submit"] {
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none;
border-radius: 0; border-radius: 0;
} }
@ -465,10 +479,28 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
height: auto; height: auto;
} }
/* Not allow resize out of parent */ /* Not allow resize out of parent */
textarea { textarea {
max-width: 100%; max-width: 100%;
} }
// style placeholder text cross browser
::-webkit-input-placeholder {
color: $input-placeholder-font-color;
}
:-moz-placeholder { /* Firefox 18- */
color: $input-placeholder-font-color;
}
::-moz-placeholder { /* Firefox 19+ */
color: $input-placeholder-font-color;
}
:-ms-input-placeholder {
color: $input-placeholder-font-color;
}
/* Add height value for select elements to match text input height */ /* Add height value for select elements to match text input height */
select { select {
@ -551,14 +583,14 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
> label { > label {
> small { > small {
color: scale-color($form-label-font-color, $lightness: 15%);
background: transparent; background: transparent;
padding: 0; color: scale-color($form-label-font-color, $lightness: 15%);
text-transform: $form-label-small-transform; display: inline;
font-style: normal;
font-size: 60%; font-size: 60%;
font-style: normal;
margin: 0; margin: 0;
display: inline; padding: 0;
text-transform: $form-label-small-transform;
} }
} }

150
assets/scss/foundation/components/_global.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "../functions"; @import '../functions';
// //
// Foundation Variables // Foundation Variables
// //
@ -80,7 +80,7 @@ $base-line-height: 1.5 !default;
// We use this to add box-sizing across browser prefixes // We use this to add box-sizing across browser prefixes
@mixin box-sizing($type:border-box) { @mixin box-sizing($type:border-box) {
-webkit-box-sizing: $type; // Android < 2.3, iOS < 4 -webkit-box-sizing: $type; // Android < 2.3, iOS < 4
-moz-box-sizing: $type; // Firefox < 29 -moz-box-sizing: $type;
box-sizing: $type; // Chrome, IE 8+, Opera, Safari 5.1 box-sizing: $type; // Chrome, IE 8+, Opera, Safari 5.1
} }
@ -91,11 +91,11 @@ $base-line-height: 1.5 !default;
// $triangle-color - Used to set border-color which makes up triangle. No default // $triangle-color - Used to set border-color which makes up triangle. No default
// $triangle-direction - Used to determine which direction triangle points. Options: top, bottom, left, right // $triangle-direction - Used to determine which direction triangle points. Options: top, bottom, left, right
@mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) { @mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
border: inset $triangle-size;
content: ""; content: "";
display: block; display: block;
width: 0;
height: 0; height: 0;
border: inset $triangle-size; width: 0;
@if ($triangle-direction == top) { @if ($triangle-direction == top) {
border-color: $triangle-color transparent transparent transparent; border-color: $triangle-color transparent transparent transparent;
border-top-style: solid; border-top-style: solid;
@ -128,9 +128,9 @@ $base-line-height: 1.5 !default;
@mixin hamburger($width, $left, $top, $thickness, $gap, $color, $hover-color, $offcanvas) { @mixin hamburger($width, $left, $top, $thickness, $gap, $color, $hover-color, $offcanvas) {
span::after { span::after {
content: ""; content: "";
position: absolute;
display: block; display: block;
height: 0; height: 0;
position: absolute;
@if $offcanvas { @if $offcanvas {
@if $top { @if $top {
@ -148,8 +148,8 @@ $base-line-height: 1.5 !default;
} }
} }
@else { @else {
top: 50%;
margin-top: -($width/2); margin-top: -($width/2);
top: 50%;
#{$opposite-direction}: $topbar-link-padding; #{$opposite-direction}: $topbar-link-padding;
} }
@ -183,8 +183,8 @@ $base-line-height: 1.5 !default;
transition: box-shadow $fade-time, border-color $fade-time ease-in-out; transition: box-shadow $fade-time, border-color $fade-time ease-in-out;
&:#{$selector} { &:#{$selector} {
box-shadow: 0 0 5px $glowing-effect-color;
border-color: $glowing-effect-color; border-color: $glowing-effect-color;
box-shadow: 0 0 5px $glowing-effect-color;
} }
} }
@ -194,7 +194,7 @@ $base-line-height: 1.5 !default;
// $horizontal: Default: 0 // $horizontal: Default: 0
// $vertical: Default: 0 // $vertical: Default: 0
@mixin translate2d($horizontal:0, $vertical:0) { @mixin translate2d($horizontal:0, $vertical:0) {
transform: translate($horizontal,$vertical) transform: translate($horizontal, $vertical)
} }
// @mixins // @mixins
@ -202,11 +202,11 @@ $base-line-height: 1.5 !default;
// Makes an element visually hidden, but accessible. // Makes an element visually hidden, but accessible.
// @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility // @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
@mixin element-invisible { @mixin element-invisible {
position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
height: 1px; height: 1px;
width: 1px;
overflow: hidden; overflow: hidden;
clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
width: 1px;
} }
// @mixins // @mixins
@ -291,17 +291,22 @@ $shiny-edge-active-color: rgba(#000, .2) !default;
// We use this to control whether or not CSS classes come through in the gem files. // We use this to control whether or not CSS classes come through in the gem files.
$include-html-classes: true !default; $include-html-classes: true !default;
$include-print-styles: true !default; $include-print-styles: true !default;
$include-js-meta-styles: true !default; // Warning! Meta styles are a dependancy of the Javascript.
$include-html-global-classes: $include-html-classes !default; $include-html-global-classes: $include-html-classes !default;
$column-gutter: rem-calc(30) !default; $column-gutter: rem-calc(30) !default;
// Media Query Ranges // Media Query Ranges
$small-range: (0, 40em) !default; $small-breakpoint: em-calc(640) !default;
$medium-range: (40.063em, 64em) !default; $medium-breakpoint: em-calc(1024) !default;
$large-range: (64.063em, 90em) !default; $large-breakpoint: em-calc(1440) !default;
$xlarge-range: (90.063em, 120em) !default; $xlarge-breakpoint: em-calc(1920) !default;
$xxlarge-range: (120.063em, 99999999em) !default;
$small-range: (0, $small-breakpoint) !default;
$medium-range: ($small-breakpoint + em-calc(1), $medium-breakpoint) !default;
$large-range: ($medium-breakpoint + em-calc(1), $large-breakpoint) !default;
$xlarge-range: ($large-breakpoint + em-calc(1), $xlarge-breakpoint) !default;
$xxlarge-range: ($xlarge-breakpoint + em-calc(1), em-calc(99999999)) !default;
$screen: "only screen" !default; $screen: "only screen" !default;
@ -323,6 +328,15 @@ $xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max
$xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default; $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default;
$xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default; $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default;
$retina: (
"#{$screen} and (-webkit-min-device-pixel-ratio: 2)",
"#{$screen} and (min--moz-device-pixel-ratio: 2)",
"#{$screen} and (-o-min-device-pixel-ratio: 2/1)",
"#{$screen} and (min-device-pixel-ratio: 2)",
"#{$screen} and (min-resolution: 192dpi)",
"#{$screen} and (min-resolution: 2dppx)"
);
// Legacy // Legacy
$small: $medium-up; $small: $medium-up;
$medium: $medium-up; $medium: $medium-up;
@ -341,61 +355,65 @@ $cursor-text-value: text !default;
@include exports("global") { @include exports("global") {
// Meta styles are included in all builds, as they are a dependancy of the Javascript. // Meta styles are a dependancy of the Javascript.
// Used to provide media query values for javascript components. // Used to provide media query values for javascript components.
// Forward slash placed around everything to convince PhantomJS to read the value. // Forward slash placed around everything to convince PhantomJS to read the value.
meta.foundation-version { @if $include-js-meta-styles {
font-family: "/5.5.1/";
}
meta.foundation-mq-small { meta.foundation-version {
font-family: "/" + unquote($small-up) + "/"; font-family: "/5.5.2/";
width: lower-bound($small-range); }
}
meta.foundation-mq-small-only { meta.foundation-mq-small {
font-family: "/" + unquote($small-only) + "/"; font-family: "/" + unquote($small-up) + "/";
width: lower-bound($small-range); width: lower-bound($small-range);
} }
meta.foundation-mq-medium { meta.foundation-mq-small-only {
font-family: "/" + unquote($medium-up) + "/"; font-family: "/" + unquote($small-only) + "/";
width: lower-bound($medium-range); width: lower-bound($small-range);
} }
meta.foundation-mq-medium-only { meta.foundation-mq-medium {
font-family: "/" + unquote($medium-only) + "/"; font-family: "/" + unquote($medium-up) + "/";
width: lower-bound($medium-range); width: lower-bound($medium-range);
} }
meta.foundation-mq-large { meta.foundation-mq-medium-only {
font-family: "/" + unquote($large-up) + "/"; font-family: "/" + unquote($medium-only) + "/";
width: lower-bound($large-range); width: lower-bound($medium-range);
} }
meta.foundation-mq-large-only { meta.foundation-mq-large {
font-family: "/" + unquote($large-only) + "/"; font-family: "/" + unquote($large-up) + "/";
width: lower-bound($large-range); width: lower-bound($large-range);
} }
meta.foundation-mq-xlarge { meta.foundation-mq-large-only {
font-family: "/" + unquote($xlarge-up) + "/"; font-family: "/" + unquote($large-only) + "/";
width: lower-bound($xlarge-range); width: lower-bound($large-range);
} }
meta.foundation-mq-xlarge-only { meta.foundation-mq-xlarge {
font-family: "/" + unquote($xlarge-only) + "/"; font-family: "/" + unquote($xlarge-up) + "/";
width: lower-bound($xlarge-range); width: lower-bound($xlarge-range);
} }
meta.foundation-mq-xxlarge { meta.foundation-mq-xlarge-only {
font-family: "/" + unquote($xxlarge-up) + "/"; font-family: "/" + unquote($xlarge-only) + "/";
width: lower-bound($xxlarge-range); width: lower-bound($xlarge-range);
} }
meta.foundation-mq-xxlarge {
font-family: "/" + unquote($xxlarge-up) + "/";
width: lower-bound($xxlarge-range);
}
meta.foundation-data-attribute-namespace {
font-family: #{$namespace};
}
meta.foundation-data-attribute-namespace {
font-family: #{$namespace};
} }
@if $include-html-global-classes { @if $include-html-global-classes {
@ -404,10 +422,13 @@ $cursor-text-value: text !default;
html, body { height: 100%; } html, body { height: 100%; }
// Set box-sizing globally to handle padding and border widths // Set box-sizing globally to handle padding and border widths
html {
box-sizing: border-box;
}
*, *,
*:before, *:before,
*:after { *:after {
@include box-sizing(border-box); @include box-sizing(inherit);
} }
html, html,
@ -417,14 +438,14 @@ $cursor-text-value: text !default;
body { body {
background: $body-bg; background: $body-bg;
color: $body-font-color; color: $body-font-color;
padding: 0; cursor: $cursor-auto-value;
margin: 0;
font-family: $body-font-family; font-family: $body-font-family;
font-weight: $body-font-weight;
font-style: $body-font-style; font-style: $body-font-style;
font-weight: $body-font-weight;
line-height: $base-line-height; // Set to $base-line-height to take on browser default of 150% line-height: $base-line-height; // Set to $base-line-height to take on browser default of 150%
margin: 0;
padding: 0;
position: relative; position: relative;
cursor: $cursor-auto-value;
} }
a:hover { cursor: $cursor-pointer-value; } a:hover { cursor: $cursor-pointer-value; }
@ -435,7 +456,8 @@ $cursor-text-value: text !default;
img { -ms-interpolation-mode: bicubic; } img { -ms-interpolation-mode: bicubic; }
#map_canvas, #map_canvas,
.map_canvas { .map_canvas,
.mqa-display {
img, img,
embed, embed,
object { max-width: none !important; object { max-width: none !important;

45
assets/scss/foundation/components/_grid.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -29,7 +29,9 @@ $last-child-float: $opposite-direction !default;
// $colNumber - Found in settings file // $colNumber - Found in settings file
// $totalColumns - Found in settings file // $totalColumns - Found in settings file
@function grid-calc($colNumber, $totalColumns) { @function grid-calc($colNumber, $totalColumns) {
@return percentage(($colNumber / $totalColumns)); $result: percentage(($colNumber / $totalColumns));
@if $result == 0% { $result: 0; }
@return $result;
} }
// //
@ -44,36 +46,30 @@ $last-child-float: $opposite-direction !default;
// use @include grid-row(nest); to include a nested row // use @include grid-row(nest); to include a nested row
@if $behavior == nest { @if $behavior == nest {
width: auto; margin: 0 (-($column-gutter/2));
margin-#{$default-float}: -($column-gutter/2);
margin-#{$opposite-direction}: -($column-gutter/2);
margin-top: 0;
margin-bottom: 0;
max-width: none; max-width: none;
width: auto;
} }
// use @include grid-row(collapse); to collapsed a container row margins // use @include grid-row(collapse); to collapsed a container row margins
@else if $behavior == collapse { @else if $behavior == collapse {
width: 100%;
margin: 0; margin: 0;
max-width: $row-width; max-width: $row-width;
width: 100%;
} }
// use @include grid-row(nest-collapse); to collapse outer margins on a nested row // use @include grid-row(nest-collapse); to collapse outer margins on a nested row
@else if $behavior == nest-collapse { @else if $behavior == nest-collapse {
width: auto;
margin: 0; margin: 0;
max-width: none; max-width: none;
width: auto;
} }
// use @include grid-row; to use a container row // use @include grid-row; to use a container row
@else { @else {
width: 100%; margin: 0 auto;
margin-#{$default-float}: auto;
margin-#{$opposite-direction}: auto;
margin-top: 0;
margin-bottom: 0;
max-width: $row-width; max-width: $row-width;
width: 100%;
} }
// Clearfix for all rows // Clearfix for all rows
@ -169,19 +165,19 @@ $last-child-float: $opposite-direction !default;
@for $i from 1 through $total-columns { @for $i from 1 through $total-columns {
.#{$size}-#{$i} { @include grid-column($columns:$i,$collapse:null,$float:false); } .#{$size}-#{$i} { @include grid-column($columns:$i, $collapse:null, $float:false); }
} }
@for $i from 0 through $total-columns - 1 { @for $i from 0 through $total-columns - 1 {
.#{$size}-offset-#{$i} { @include grid-column($offset:$i, $collapse:null,$float:false); } .#{$size}-offset-#{$i} { @include grid-column($offset:$i, $collapse:null, $float:false); }
} }
.#{$size}-reset-order { .#{$size}-reset-order {
float: $default-float;
left: auto;
margin-#{$default-float}: 0; margin-#{$default-float}: 0;
margin-#{$opposite-direction}: 0; margin-#{$opposite-direction}: 0;
left: auto;
right: auto; right: auto;
float: $default-float;
} }
.column.#{$size}-centered, .column.#{$size}-centered,
@ -189,9 +185,9 @@ $last-child-float: $opposite-direction !default;
.column.#{$size}-uncentered, .column.#{$size}-uncentered,
.columns.#{$size}-uncentered { .columns.#{$size}-uncentered {
float: $default-float;
margin-#{$default-float}: 0; margin-#{$default-float}: 0;
margin-#{$opposite-direction}: 0; margin-#{$opposite-direction}: 0;
float: $default-float;
} }
// Fighting [class*="column"] + [class*="column"]:last-child // Fighting [class*="column"] + [class*="column"]:last-child
@ -247,8 +243,15 @@ $last-child-float: $opposite-direction !default;
.column, .column,
.columns { @include grid-column($columns:$total-columns); } .columns { @include grid-column($columns:$total-columns); }
[class*="column"] + [class*="column"]:last-child { float: $last-child-float; } .column,
[class*="column"] + [class*="column"].end { float: $default-float; } .columns {
& + &:last-child {
float: $last-child-float;
}
& + &.end {
float: $default-float;
}
}
@media #{$small-up} { @media #{$small-up} {
@include grid-html-classes($size:small); @include grid-html-classes($size:small);

569
assets/scss/foundation/components/_icon-bar.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// @name // @name
@ -27,7 +27,7 @@ $icon-bar-active-color: $primary-color !default;
$icon-bar-item-padding: 1.25rem !default; $icon-bar-item-padding: 1.25rem !default;
// We use this to set default opacity and cursor for disabled icons. // We use this to set default opacity and cursor for disabled icons.
$icon-bar-disabled-opacity: 0.7 !default; $icon-bar-disabled-opacity: .7 !default;
$icon-bar-disabled-cursor: $cursor-disabled-value !default; $icon-bar-disabled-cursor: $cursor-disabled-value !default;
@ -38,123 +38,123 @@ $icon-bar-disabled-cursor: $cursor-disabled-value !default;
// We use this mixin to create the base styles for our Icon bar element. // We use this mixin to create the base styles for our Icon bar element.
// //
@mixin icon-bar-base() { @mixin icon-bar-base() {
display: inline-block;
font-size: 0;
width: 100%;
> * {
display: block;
float: left;
font-size: $icon-bar-font-size;
margin: 0 auto;
padding: $icon-bar-item-padding;
text-align: center;
width: 25%;
i, img {
display: block;
margin: 0 auto;
& + label {
margin-top: .0625rem;
}
}
i {
font-size: $icon-bar-icon-size;
vertical-align: middle;
}
img {
height: $icon-bar-image-height;
width: $icon-bar-image-width;
}
}
width: 100%; &.label-right > * {
font-size: 0;
display: inline-block; i, img {
display: inline-block;
& > * { margin: 0 .0625rem 0 0;
text-align: center;
font-size: $icon-bar-font-size; & + label {
width: 25%; margin-top: 0;
margin: 0 auto; }
display: block; }
padding: $icon-bar-item-padding;
float: left; label { display: inline-block; }
}
i, img {
display: block; &.vertical.label-right > * {
margin: 0 auto; text-align: left;
}
& + label {
margin-top: .0625rem; &.vertical, &.small-vertical{
} height: 100%;
} width: auto;
i { .item {
font-size: $icon-bar-icon-size; float: none;
vertical-align: middle; margin: auto;
} width: auto;
}
img { }
width: $icon-bar-image-width;
height: $icon-bar-image-height; &.medium-vertical {
} @media #{$medium-up} {
} height: 100%;
width: auto;
&.label-right > * {
.item {
i, img { float: none;
margin: 0 .0625rem 0 0; margin: auto;
display: inline-block; width: auto;
}
& + label { }
margin-top: 0; }
} &.large-vertical {
} @media #{$large-up} {
height: 100%;
label { display: inline-block; } width: auto;
}
.item {
&.vertical.label-right > * { float: none;
text-align: left; margin: auto;
} width: auto;
}
&.vertical, &.small-vertical{ }
height: 100%; }
width: auto;
.item {
width: auto;
margin: auto;
float: none;
}
}
&.medium-vertical {
@media #{$medium-up} {
height: 100%;
width: auto;
.item {
width: auto;
margin: auto;
float: none;
}
}
}
&.large-vertical {
@media #{$large-up} {
height: 100%;
width: auto;
.item {
width: auto;
margin: auto;
float: none;
}
}
}
} }
// We use this mixin to create the size styles for icon bars. // We use this mixin to create the size styles for icon bars.
@mixin icon-bar-size( @mixin icon-bar-size(
$padding: $icon-bar-item-padding, $padding: $icon-bar-item-padding,
$font-size: $icon-bar-font-size, $font-size: $icon-bar-font-size,
$icon-size: $icon-bar-icon-size, $icon-size: $icon-bar-icon-size,
$image-width: $icon-bar-image-width, $image-width: $icon-bar-image-width,
$image-height: $icon-bar-image-height) { $image-height: $icon-bar-image-height) {
& > * { > * {
font-size: $font-size; font-size: $font-size;
padding: $padding; padding: $padding;
i, img { i, img {
& + label { & + label {
margin-top: .0625rem; margin-top: .0625rem;
} font-size: $font-size;
} }
}
i { i {
font-size: $icon-size; font-size: $icon-size;
} }
img { img {
width: $image-width; height: $image-height;
height: $image-height; width: $image-width;
} }
} }
} }
@ -169,38 +169,38 @@ $icon-bar-disabled-cursor: $cursor-disabled-value !default;
$base-style:true, $base-style:true,
$disabled:false) { $disabled:false) {
@if $base-style { @if $base-style {
background: $bar-bg; background: $bar-bg;
& > * { > * {
label { color: $bar-font-color; } label { color: $bar-font-color; }
i { color: $bar-icon-color; } i { color: $bar-icon-color; }
} }
& > a:hover { > a:hover {
background: $bar-hover-color; background: $bar-hover-color;
label { color: $bar-font-color-hover; } label { color: $bar-font-color-hover; }
i { color: $bar-icon-color-hover; } i { color: $bar-icon-color-hover; }
} }
& > a.active { > a.active {
background: $bar-active-color; background: $bar-active-color;
label { color: $bar-font-color-hover; } label { color: $bar-font-color-hover; }
i { color: $bar-icon-color-hover; } i { color: $bar-icon-color-hover; }
} }
} }
@if $disabled { @if $disabled {
.item.disabled { .item.disabled {
opacity: $icon-bar-disabled-opacity;
cursor: $icon-bar-disabled-cursor; cursor: $icon-bar-disabled-cursor;
opacity: $icon-bar-disabled-opacity;
pointer-events: none; pointer-events: none;
>* { >* {
opacity: $icon-bar-disabled-opacity; opacity: $icon-bar-disabled-opacity;
@ -230,15 +230,116 @@ $icon-bar-disabled-cursor: $cursor-disabled-value !default;
$bar-icon-color-hover:$icon-bar-icon-color-hover, $bar-icon-color-hover:$icon-bar-icon-color-hover,
$bar-active-color:$icon-bar-active-color, $bar-active-color:$icon-bar-active-color,
$padding: $icon-bar-item-padding, $padding: $icon-bar-item-padding,
$font-size: $icon-bar-font-size, $font-size: $icon-bar-font-size,
$icon-size: $icon-bar-icon-size, $icon-size: $icon-bar-icon-size,
$image-width: $icon-bar-image-width, $image-width: $icon-bar-image-width,
$image-height: $icon-bar-image-height, $image-height: $icon-bar-image-height,
$base-style:true, $base-style:true,
$disabled:true) { $disabled:true) {
@include icon-bar-base(); @include icon-bar-base();
@include icon-bar-size($padding, $font-size, $icon-size, $image-width, $image-height); @include icon-bar-size($padding, $font-size, $icon-size, $image-width, $image-height);
@include icon-bar-style($bar-bg, $bar-font-color, $bar-font-color-hover, $bar-hover-color, $bar-icon-color, $bar-icon-color-hover, $bar-active-color, $base-style, $disabled); @include icon-bar-style($bar-bg, $bar-font-color, $bar-font-color-hover, $bar-hover-color, $bar-icon-color, $bar-icon-color-hover, $bar-active-color, $base-style, $disabled);
// Counts
&.two-up {
.item { width: 50%; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.three-up {
.item { width: 33.3333%; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.four-up {
.item { width: 25%; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.five-up {
.item { width: 20%; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.six-up {
.item { width: 16.66667%; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.seven-up {
.item { width: 14.28571%; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.eight-up {
.item { width: 12.5%; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
} }
@include exports("icon-bar") { @include exports("icon-bar") {
@ -251,109 +352,109 @@ $icon-bar-disabled-cursor: $cursor-disabled-value !default;
@if $include-html-icon-bar-classes { @if $include-html-icon-bar-classes {
// toolbar styles // toolbar styles
.icon-bar { .icon-bar {
// Counts // Counts
&.two-up { &.two-up {
.item { width: 50%; } .item { width: 50%; }
&.vertical .item, &.small-vertical .item { width: auto; } &.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item { &.medium-vertical .item {
@media #{$medium-up} { @media #{$medium-up} {
width: auto; width: auto;
} }
} }
&.large-vertical .item { &.large-vertical .item {
@media #{$large-up} { @media #{$large-up} {
width: auto; width: auto;
} }
} }
} }
&.three-up { &.three-up {
.item { width: 33.3333%; } .item { width: 33.3333%; }
&.vertical .item, &.small-vertical .item { width: auto; } &.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item { &.medium-vertical .item {
@media #{$medium-up} { @media #{$medium-up} {
width: auto; width: auto;
} }
} }
&.large-vertical .item { &.large-vertical .item {
@media #{$large-up} { @media #{$large-up} {
width: auto; width: auto;
} }
} }
} }
&.four-up { &.four-up {
.item { width: 25%; } .item { width: 25%; }
&.vertical .item, &.small-vertical .item { width: auto; } &.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item { &.medium-vertical .item {
@media #{$medium-up} { @media #{$medium-up} {
width: auto; width: auto;
} }
} }
&.large-vertical .item { &.large-vertical .item {
@media #{$large-up} { @media #{$large-up} {
width: auto; width: auto;
} }
} }
} }
&.five-up { &.five-up {
.item { width: 20%; } .item { width: 20%; }
&.vertical .item, &.small-vertical .item { width: auto; } &.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item { &.medium-vertical .item {
@media #{$medium-up} { @media #{$medium-up} {
width: auto; width: auto;
} }
} }
&.large-vertical .item { &.large-vertical .item {
@media #{$large-up} { @media #{$large-up} {
width: auto; width: auto;
} }
} }
} }
&.six-up { &.six-up {
.item { width: 16.66667%; } .item { width: 16.66667%; }
&.vertical .item, &.small-vertical .item { width: auto; } &.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item { &.medium-vertical .item {
@media #{$medium-up} { @media #{$medium-up} {
width: auto; width: auto;
} }
} }
&.large-vertical .item { &.large-vertical .item {
@media #{$large-up} { @media #{$large-up} {
width: auto; width: auto;
} }
} }
} }
&.seven-up { &.seven-up {
.item { width: 14.28571%; } .item { width: 14.28571%; }
&.vertical .item, &.small-vertical .item { width: auto; } &.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item { &.medium-vertical .item {
@media #{$medium-up} { @media #{$medium-up} {
width: auto; width: auto;
} }
} }
&.large-vertical .item { &.large-vertical .item {
@media #{$large-up} { @media #{$large-up} {
width: auto; width: auto;
} }
} }
} }
&.eight-up { &.eight-up {
.item { width: 12.5%; } .item { width: 12.5%; }
&.vertical .item, &.small-vertical .item { width: auto; } &.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item { &.medium-vertical .item {
@media #{$medium-up} { @media #{$medium-up} {
width: auto; width: auto;
} }
} }
&.large-vertical .item { &.large-vertical .item {
@media #{$large-up} { @media #{$large-up} {
width: auto; width: auto;
} }
} }
} }
} }
} }

16
assets/scss/foundation/components/_inline-lists.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -32,19 +32,19 @@ $inline-list-children-display: block !default;
// //
// We use this mixin to create inline lists // We use this mixin to create inline lists
@mixin inline-list { @mixin inline-list {
margin: $inline-list-top-margin auto $inline-list-bottom-margin auto; list-style: none;
margin-#{$default-float}: $inline-list-default-float-margin; margin-#{$default-float}: $inline-list-default-float-margin;
margin-#{$opposite-direction}: $inline-list-opposite-margin; margin-#{$opposite-direction}: $inline-list-opposite-margin;
padding: $inline-list-padding; margin: $inline-list-top-margin auto $inline-list-bottom-margin auto;
list-style: none;
overflow: $inline-list-overflow; overflow: $inline-list-overflow;
padding: $inline-list-padding;
& > li { > li {
list-style: none; display: $inline-list-display;
float: $default-float; float: $default-float;
list-style: none;
margin-#{$default-float}: $inline-list-default-float-list-margin; margin-#{$default-float}: $inline-list-default-float-list-margin;
display: $inline-list-display; > * { display: $inline-list-children-display; }
&>* { display: $inline-list-children-display; }
} }
} }

82
assets/scss/foundation/components/_joyride.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -49,28 +49,27 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
/* Default styles for the container */ /* Default styles for the container */
.joyride-tip-guide { .joyride-tip-guide {
display: none;
position: absolute;
background: $joyride-tip-bg; background: $joyride-tip-bg;
color: $joyride-tip-font-color; color: $joyride-tip-font-color;
z-index: 101; display: none;
top: 0;
#{$default-float}: 2.5%;
font-family: inherit; font-family: inherit;
font-weight: $font-weight-normal; font-weight: $font-weight-normal;
position: absolute;
top: 0;
width: 95%; width: 95%;
z-index: 101;
#{$default-float}: 2.5%;
} }
.lt-ie9 .joyride-tip-guide { .lt-ie9 .joyride-tip-guide {
max-width:800px; margin-#{$default-float}: -400px;
max-width: 800px;
#{$default-float}: 50%; #{$default-float}: 50%;
margin-#{$default-float}:-400px;
} }
.joyride-content-wrapper { .joyride-content-wrapper {
width: 100%;
padding: $joyride-tip-padding; padding: $joyride-tip-padding;
width: 100%;
.button { margin-bottom: 0 !important; } .button { margin-bottom: 0 !important; }
@ -80,25 +79,25 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
/* Add a little css triangle pip, older browser just miss out on the fanciness of it */ /* Add a little css triangle pip, older browser just miss out on the fanciness of it */
.joyride-tip-guide { .joyride-tip-guide {
.joyride-nub { .joyride-nub {
border: $joyride-tip-nub-size solid $joyride-tip-bg;
display: block; display: block;
height: 0;
position: absolute; position: absolute;
#{$default-float}: $joyride-tip-position-offset;
width: 0; width: 0;
height: 0; #{$default-float}: $joyride-tip-position-offset;
border: $joyride-tip-nub-size solid $joyride-tip-bg;
&.top { &.top {
border-top-style: solid;
border-color: $joyride-tip-bg; border-color: $joyride-tip-bg;
border-top-color: transparent !important; border-top-color: transparent !important;
border-top-style: solid;
border-#{$default-float}-color: transparent !important; border-#{$default-float}-color: transparent !important;
border-#{$opposite-direction}-color: transparent !important; border-#{$opposite-direction}-color: transparent !important;
top: -($joyride-tip-nub-size*2); top: -($joyride-tip-nub-size*2);
} }
&.bottom { &.bottom {
border-bottom-style: solid;
border-color: $joyride-tip-bg !important; border-color: $joyride-tip-bg !important;
border-bottom-color: transparent !important; border-bottom-color: transparent !important;
border-bottom-style: solid;
border-#{$default-float}-color: transparent !important; border-#{$default-float}-color: transparent !important;
border-#{$opposite-direction}-color: transparent !important; border-#{$opposite-direction}-color: transparent !important;
bottom: -($joyride-tip-nub-size*2); bottom: -($joyride-tip-nub-size*2);
@ -116,74 +115,73 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
.joyride-tip-guide h4, .joyride-tip-guide h4,
.joyride-tip-guide h5, .joyride-tip-guide h5,
.joyride-tip-guide h6 { .joyride-tip-guide h6 {
color: $joyride-tip-font-color;
font-weight: $joyride-tip-header-weight;
line-height: 1.25; line-height: 1.25;
margin: 0; margin: 0;
font-weight: $joyride-tip-header-weight;
color: $joyride-tip-font-color;
} }
.joyride-tip-guide p { .joyride-tip-guide p {
margin: rem-calc(0 0 18 0);
font-size: $joyride-tip-font-size; font-size: $joyride-tip-font-size;
line-height: 1.3; line-height: 1.3;
margin: rem-calc(0 0 18 0);
} }
.joyride-timer-indicator-wrap { .joyride-timer-indicator-wrap {
width: $joyride-tip-timer-width;
height: $joyride-tip-timer-height;
border: $joyride-tip-border; border: $joyride-tip-border;
bottom: rem-calc(16);
height: $joyride-tip-timer-height;
position: absolute; position: absolute;
width: $joyride-tip-timer-width;
#{$opposite-direction}: rem-calc(17); #{$opposite-direction}: rem-calc(17);
bottom: rem-calc(16);
} }
.joyride-timer-indicator { .joyride-timer-indicator {
background: $joyride-tip-timer-color;
display: block; display: block;
width: 0;
height: inherit; height: inherit;
background: $joyride-tip-timer-color; width: 0;
} }
.joyride-close-tip { .joyride-close-tip {
position: absolute;
#{$opposite-direction}: 12px;
top: 10px;
color: $joyride-tip-close-color !important; color: $joyride-tip-close-color !important;
text-decoration: none;
font-size: $joyride-tip-close-size; font-size: $joyride-tip-close-size;
font-weight: $joyride-tip-close-weight; font-weight: $joyride-tip-close-weight;
line-height: .5 !important; line-height: .5 !important;
position: absolute;
text-decoration: none;
top: 10px;
#{$opposite-direction}: 12px;
&:hover, &:hover,
&:focus { color: $smoke !important; } &:focus { color: $smoke !important; }
} }
.joyride-modal-bg { .joyride-modal-bg {
position: fixed;
height: 100%;
width: 100%;
background: transparent;
background: $joyride-screenfill; background: $joyride-screenfill;
z-index: 100; cursor: $cursor-pointer-value;
display: none; display: none;
height: 100%;
position: fixed;
top: 0; top: 0;
width: 100%;
z-index: 100;
#{$default-float}: 0; #{$default-float}: 0;
cursor: $cursor-pointer-value;
} }
.joyride-expose-wrapper { .joyride-expose-wrapper {
background-color: $white; background-color: $white;
position: absolute;
border-radius: 3px; border-radius: 3px;
z-index: 102;
box-shadow: 0 0 15px $white; box-shadow: 0 0 15px $white;
position: absolute;
z-index: 102;
} }
.joyride-expose-cover { .joyride-expose-cover {
background: transparent; background: transparent;
border-radius: 3px; border-radius: 3px;
left: 0;
position: absolute; position: absolute;
z-index: 9999;
top: 0; top: 0;
left: 0; z-index: 9999;
} }
@ -200,20 +198,20 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
} }
&.right { &.right {
border-color: $joyride-tip-bg !important; border-color: $joyride-tip-bg !important;
border-top-color: transparent !important;
border-right-color: transparent !important; border-bottom-color: transparent !important; border-right-color: transparent !important; border-bottom-color: transparent !important;
top: $joyride-tip-position-offset; border-top-color: transparent !important;
left: auto; left: auto;
right: -($joyride-tip-nub-size*2); right: -($joyride-tip-nub-size*2);
top: $joyride-tip-position-offset;
} }
&.left { &.left {
border-color: $joyride-tip-bg !important; border-color: $joyride-tip-bg !important;
border-top-color: transparent !important;
border-left-color: transparent !important;
border-bottom-color: transparent !important; border-bottom-color: transparent !important;
top: $joyride-tip-position-offset; border-left-color: transparent !important;
border-top-color: transparent !important;
left: -($joyride-tip-nub-size*2); left: -($joyride-tip-nub-size*2);
right: auto; right: auto;
top: $joyride-tip-position-offset;
} }
} }
} }

5
assets/scss/foundation/components/_keystrokes.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -34,7 +34,6 @@ $keystroke-radius: $global-radius !default;
@mixin keystroke($bg:$keystroke-bg) { @mixin keystroke($bg:$keystroke-bg) {
// This find the lightness percentage of the background color. // This find the lightness percentage of the background color.
$bg-lightness: lightness($bg); $bg-lightness: lightness($bg);
background-color: $bg; background-color: $bg;
border-color: scale-color($bg, $lightness: $keystroke-function-factor); border-color: scale-color($bg, $lightness: $keystroke-function-factor);
@ -44,9 +43,9 @@ $keystroke-radius: $global-radius !default;
border-style: $keystroke-border-style; border-style: $keystroke-border-style;
border-width: $keystroke-border-width; border-width: $keystroke-border-width;
margin: 0;
font-family: $keystroke-font; font-family: $keystroke-font;
font-size: $keystroke-font-size; font-size: $keystroke-font-size;
margin: 0;
padding: $keystroke-padding; padding: $keystroke-padding;
} }

12
assets/scss/foundation/components/_labels.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -25,15 +25,15 @@ $label-font-family: $body-font-family !default;
// //
// We use this mixin to create a default label base. // We use this mixin to create a default label base.
@mixin label-base { @mixin label-base {
font-weight: $label-font-weight; display: inline-block;
font-family: $label-font-family; font-family: $label-font-family;
font-weight: $label-font-weight;
line-height: 1;
margin-bottom: auto;
position: relative;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
line-height: 1;
white-space: nowrap; white-space: nowrap;
display: inline-block;
position: relative;
margin-bottom: auto;
} }
// @mixins // @mixins

4
assets/scss/foundation/components/_magellan.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -17,9 +17,9 @@ $magellan-padding: 10px !default;
#{data('magellan-expedition')}, #{data('magellan-expedition-clone')} { #{data('magellan-expedition')}, #{data('magellan-expedition-clone')} {
background: $magellan-bg; background: $magellan-bg;
z-index: 50;
min-width: 100%; min-width: 100%;
padding: $magellan-padding; padding: $magellan-padding;
z-index: 50;
.sub-nav { .sub-nav {
margin-bottom: 0; margin-bottom: 0;

353
assets/scss/foundation/components/_offcanvas.scss

@ -2,8 +2,8 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
@import "type"; @import 'type';
// Off Canvas Tab Bar Variables // Off Canvas Tab Bar Variables
$include-html-off-canvas-classes: $include-html-classes !default; $include-html-off-canvas-classes: $include-html-classes !default;
@ -30,9 +30,10 @@ $tabbar-header-margin: 0 !default;
$off-canvas-width: rem-calc(250) !default; $off-canvas-width: rem-calc(250) !default;
$off-canvas-bg: $oil !default; $off-canvas-bg: $oil !default;
$off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%) !default; $off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%) !default;
$off-canvas-bg-active: scale-color($tabbar-bg, $lightness: -30%) !default;
// Off Canvas Menu List Variables // Off Canvas Menu List Variables
$off-canvas-label-padding: 0.3rem rem-calc(15) !default; $off-canvas-label-padding: .3rem rem-calc(15) !default;
$off-canvas-label-color: $aluminum !default; $off-canvas-label-color: $aluminum !default;
$off-canvas-label-text-transform: uppercase !default; $off-canvas-label-text-transform: uppercase !default;
$off-canvas-label-font-size: rem-calc(12) !default; $off-canvas-label-font-size: rem-calc(12) !default;
@ -42,7 +43,7 @@ $off-canvas-label-border-top: 1px solid scale-color($off-canvas-label-bg, $light
$off-canvas-label-border-bottom: none !default; $off-canvas-label-border-bottom: none !default;
$off-canvas-label-margin:0 !default; $off-canvas-label-margin:0 !default;
$off-canvas-link-padding: rem-calc(10, 15) !default; $off-canvas-link-padding: rem-calc(10, 15) !default;
$off-canvas-link-color: rgba($white, 0.7) !default; $off-canvas-link-color: rgba($white, .7) !default;
$off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%) !default; $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%) !default;
$off-canvas-back-bg: #444 !default; $off-canvas-back-bg: #444 !default;
$off-canvas-back-border-top: $off-canvas-label-border-top !default; $off-canvas-back-border-top: $off-canvas-label-border-top !default;
@ -69,9 +70,9 @@ $tabbar-hamburger-icon-gap: 6px !default;
// Off Canvas Back-Link Overlay // Off Canvas Back-Link Overlay
$off-canvas-overlay-transition: background 300ms ease !default; $off-canvas-overlay-transition: background 300ms ease !default;
$off-canvas-overlay-cursor: pointer !default; $off-canvas-overlay-cursor: pointer !default;
$off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, 0.5), 4px 0 4px rgba($black, 0.5) !default; $off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, .5), 4px 0 4px rgba($black, .5) !default;
$off-canvas-overlay-background: rgba($white, 0.2) !default; $off-canvas-overlay-background: rgba($white, .2) !default;
$off-canvas-overlay-background-hover: rgba($white, 0.05) !default; $off-canvas-overlay-background-hover: rgba($white, .05) !default;
// Transition Variables // Transition Variables
$menu-slide: "transform 500ms ease" !default; $menu-slide: "transform 500ms ease" !default;
@ -90,31 +91,31 @@ $menu-slide: "transform 500ms ease" !default;
width: 100%; width: 100%;
} }
@mixin translate3d($tx,$ty,$tz) { @mixin translate3d($tx, $ty, $tz) {
-ms-transform: translate($tx,$ty); -webkit-transform: translate3d($tx, $ty, $tz);
-webkit-transform: translate3d($tx,$ty,$tz); -moz-transform: translate3d($tx, $ty, $tz);
-moz-transform: translate3d($tx,$ty,$tz); -ms-transform: translate($tx, $ty);
-ms-transform: translate3d($tx,$ty,$tz); -ms-transform: translate3d($tx, $ty, $tz);
-o-transform: translate3d($tx,$ty,$tz); -o-transform: translate3d($tx, $ty, $tz);
transform: translate3d($tx,$ty,$tz) transform: translate3d($tx, $ty, $tz)
} }
// basic styles for off-canvas menu container // basic styles for off-canvas menu container
@mixin off-canvas-menu($position) { @mixin off-canvas-menu($position) {
@include kill-flicker; @include kill-flicker;
* { @include kill-flicker; } * { @include kill-flicker; }
width: $off-canvas-width;
top: 0;
bottom: 0;
position: absolute;
overflow-x: hidden;
overflow-y: auto;
background: $off-canvas-bg; background: $off-canvas-bg;
z-index: 1001; bottom: 0;
box-sizing: content-box; box-sizing: content-box;
transition: transform 500ms ease 0s;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar; -ms-overflow-style: -ms-autohiding-scrollbar;
overflow-x: hidden;
overflow-y: auto;
position: absolute;
top: 0;
transition: transform 500ms ease 0s;
width: $off-canvas-width;
z-index: 1001;
@if $position == left { @if $position == left {
@include translate3d(-100%,0,0); @include translate3d(-100%,0,0);
@ -166,22 +167,22 @@ $menu-slide: "transform 500ms ease" !default;
// z-index: 999; // z-index: 999;
// Typography // Typography
h1,h2,h3,h4,h5,h6 { h1, h2, h3, h4, h5, h6 {
color: $tabbar-header-color; color: $tabbar-header-color;
font-weight: $tabbar-header-weight; font-weight: $tabbar-header-weight;
line-height: $tabbar-header-line-height; line-height: $tabbar-header-line-height;
margin: $tabbar-header-margin; margin: $tabbar-header-margin;
} }
h1,h2,h3,h4 { font-size: $h5-font-size; } h1, h2, h3, h4 { font-size: $h5-font-size; }
} }
// SMALL SECTIONS // SMALL SECTIONS
// These are small sections on the left and right that contain the off-canvas toggle buttons; // These are small sections on the left and right that contain the off-canvas toggle buttons;
@mixin tabbar-small-section($position) { @mixin tabbar-small-section($position) {
width: $tabbar-icon-width;
height: $tabbar-height; height: $tabbar-height;
position: absolute; position: absolute;
top: 0; top: 0;
width: $tabbar-icon-width;
@if $position == left { @if $position == left {
border-right: $tabbar-left-section-border; border-right: $tabbar-left-section-border;
// box-shadow: 1px 0 0 scale-color($tabbar-bg, $lightness: 13%); // box-shadow: 1px 0 0 scale-color($tabbar-bg, $lightness: 13%);
@ -195,15 +196,14 @@ $menu-slide: "transform 500ms ease" !default;
} }
@mixin tab-bar-section { @mixin tab-bar-section {
height: $tabbar-height;
padding: $tabbar-middle-padding; padding: $tabbar-middle-padding;
position: absolute; position: absolute;
text-align: center; text-align: center;
height: $tabbar-height;
top: 0; top: 0;
@media #{$medium-up} {
&.left { text-align: left; } &.left { text-align: left; }
&.right { text-align: right; } &.right { text-align: right; }
}
// still need to make these non-presentational // still need to make these non-presentational
&.left { &.left {
@ -224,31 +224,34 @@ $menu-slide: "transform 500ms ease" !default;
// This is the list of links in the off-canvas menu // This is the list of links in the off-canvas menu
@mixin off-canvas-list { @mixin off-canvas-list {
list-style-type: none; list-style-type: none;
padding:0;
margin:0; margin:0;
padding:0;
li { li {
label { label {
display: block; background: $off-canvas-label-bg;
padding: $off-canvas-label-padding; border-bottom: $off-canvas-label-border-bottom;
border-top: $off-canvas-label-border-top;
color: $off-canvas-label-color; color: $off-canvas-label-color;
text-transform: $off-canvas-label-text-transform; display: block;
font-size: $off-canvas-label-font-size; font-size: $off-canvas-label-font-size;
font-weight: $off-canvas-label-font-weight; font-weight: $off-canvas-label-font-weight;
background: $off-canvas-label-bg;
border-top: $off-canvas-label-border-top;
border-bottom: $off-canvas-label-border-bottom;
margin: $off-canvas-label-margin; margin: $off-canvas-label-margin;
padding: $off-canvas-label-padding;
text-transform: $off-canvas-label-text-transform;
} }
a { a {
border-bottom: $off-canvas-link-border-bottom;
color: $off-canvas-link-color;
display: block; display: block;
padding: $off-canvas-link-padding; padding: $off-canvas-link-padding;
color: $off-canvas-link-color;
border-bottom: $off-canvas-link-border-bottom;
transition: background 300ms ease; transition: background 300ms ease;
&:hover { &:hover {
background: $off-canvas-bg-hover; background: $off-canvas-bg-hover;
} }
&:active {
background: $off-canvas-bg-active;
}
} }
} }
@ -257,28 +260,121 @@ $menu-slide: "transform 500ms ease" !default;
// BACK LINK // BACK LINK
// This is an overlay that, when clicked, will toggle off the off canvas menu // This is an overlay that, when clicked, will toggle off the off canvas menu
@mixin back-link { @mixin back-link {
@include kill-flicker; @include kill-flicker;
transition: $off-canvas-overlay-transition;
cursor: $off-canvas-overlay-cursor;
box-shadow: $off-canvas-overlay-box-shadow;
// fill the screen
display: block;
position: absolute;
background: $off-canvas-overlay-background;
top: 0;
bottom: 0;
left:0;
right:0;
z-index: 1002;
-webkit-tap-highlight-color: rgba(0,0,0,0);
@media #{$medium-up} { box-shadow: $off-canvas-overlay-box-shadow;
&:hover { cursor: $off-canvas-overlay-cursor;
background: $off-canvas-overlay-background-hover; transition: $off-canvas-overlay-transition;
// fill the screen
-webkit-tap-highlight-color: rgba(0,0,0,0);
background: $off-canvas-overlay-background;
bottom: 0;
display: block;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 1002;
@media #{$medium-up} {
&:hover {
background: $off-canvas-overlay-background-hover;
}
}
}
//
// Off-Canvas Submenu Classes
//
@mixin off-canvas-submenu($position) {
@include kill-flicker;
* { @include kill-flicker; }
-webkit-overflow-scrolling: touch;
background: $off-canvas-bg;
bottom: 0;
box-sizing: content-box;
margin: 0;
overflow-x: hidden;
overflow-y: auto;
position: absolute;
top: 0;
width: $off-canvas-width;
z-index: 1002;
@if $position == left {
@include translate3d(-100%,0,0);
left: 0;
}
@if $position == right {
@include translate3d(100%,0,0);
right: 0;
}
-webkit-transition: -webkit-#{$menu-slide};
-moz-transition: -moz-#{$menu-slide};
-ms-transition: -ms-#{$menu-slide};
-o-transition: -o-#{$menu-slide};
transition: #{$menu-slide};
//back button style like label
.back > a {
background: $off-canvas-back-bg;
border-bottom: $off-canvas-back-border-bottom;
border-top: $off-canvas-back-border-top;
color: $off-canvas-label-color;
font-weight: $off-canvas-label-font-weight;
padding: $off-canvas-label-padding;
text-transform: $off-canvas-label-text-transform;
&:hover {
background: $off-canvas-back-hover-bg;
border-bottom: $off-canvas-back-hover-border-bottom;
border-top: $off-canvas-back-hover-border-top;
}
margin: $off-canvas-label-margin;
@if $position == right {
@if $text-direction == rtl {
&:before {
@include icon-double-arrows($position: left);
}
} @else {
&:after {
@include icon-double-arrows($position: right);
}
}
}
@if $position == left {
@if $text-direction == rtl {
&:after {
@include icon-double-arrows($position: right);
}
} @else {
&:before {
@include icon-double-arrows($position: left);
}
} }
} }
}
}
//Left double angle quote or Right double angle quote chars
@mixin icon-double-arrows ($position) {
@if $position == left {
content: "\AB";
@if $text-direction == rtl {
margin-left: .5rem;
} @else {
margin-right: .5rem;
}
}
@if $position == right {
content: "\BB";
@if $text-direction == rtl {
margin-right: .5rem;
} @else {
margin-left: .5rem;
}
}
display: inline;
} }
// //
@ -300,14 +396,14 @@ $menu-slide: "transform 500ms ease" !default;
// MENU BUTTON // MENU BUTTON
// This is a little bonus. You don't need it for off canvas to work. Mixins to be written in the future. // This is a little bonus. You don't need it for off canvas to work. Mixins to be written in the future.
.tab-bar .menu-icon { .tab-bar .menu-icon {
text-indent: $tabbar-menu-icon-text-indent; color: $tabbar-menu-icon-color;
width: $tabbar-menu-icon-width;
height: $tabbar-menu-icon-height;
display: block; display: block;
height: $tabbar-menu-icon-height;
padding: $tabbar-menu-icon-padding; padding: $tabbar-menu-icon-padding;
color: $tabbar-menu-icon-color;
position: relative; position: relative;
text-indent: $tabbar-menu-icon-text-indent;
transform: translate3d(0,0,0); transform: translate3d(0,0,0);
width: $tabbar-menu-icon-width;
// @include for the hamburger menu-icon // @include for the hamburger menu-icon
// //
@ -388,128 +484,35 @@ $menu-slide: "transform 500ms ease" !default;
.move-right > .inner-wrap { left: $off-canvas-width; } .move-right > .inner-wrap { left: $off-canvas-width; }
} }
} .left-submenu {
} @include off-canvas-submenu($position: left);
&.move-right, &.offcanvas-overlap-right, &.offcanvas-overlap {
// @include translate3d(0%,0,0);
// Off-Canvas Submenu Classes
//
@mixin off-canvas-submenu($position) {
@include kill-flicker;
* { @include kill-flicker; }
width: $off-canvas-width;
top: 0;
bottom: 0;
position: absolute;
margin: 0;
overflow-x: hidden;
overflow-y: auto;
background: $off-canvas-bg;
z-index: 1002;
box-sizing: content-box;
-webkit-overflow-scrolling: touch;
@if $position == left {
@include translate3d(-100%,0,0);
left: 0;
}
@if $position == right {
@include translate3d(100%,0,0);
right: 0;
}
-webkit-transition: -webkit-#{$menu-slide};
-moz-transition: -moz-#{$menu-slide};
-ms-transition: -ms-#{$menu-slide};
-o-transition: -o-#{$menu-slide};
transition: #{$menu-slide};
//back button style like label
.back > a {
padding: $off-canvas-label-padding;
color: $off-canvas-label-color;
text-transform: $off-canvas-label-text-transform;
font-weight: $off-canvas-label-font-weight;
background: $off-canvas-back-bg;
border-top: $off-canvas-back-border-top;
border-bottom: $off-canvas-back-border-bottom;
&:hover {
background: $off-canvas-back-hover-bg;
border-top: $off-canvas-back-hover-border-top;
border-bottom: $off-canvas-back-hover-border-bottom;
}
margin: $off-canvas-label-margin;
@if $position == right {
@if $text-direction == rtl {
&:before {
@include icon-double-arrows($position: left);
}
} @else {
&:after {
@include icon-double-arrows($position: right);
}
} }
} }
@if $position == left {
@if $text-direction == rtl { .right-submenu {
&:after { @include off-canvas-submenu($position: right);
@include icon-double-arrows($position: right); &.move-left, &.offcanvas-overlap-left, &.offcanvas-overlap {
} @include translate3d(0%,0,0);
} @else {
&:before {
@include icon-double-arrows($position: left);
}
} }
} }
}
}
//Left double angle quote or Right double angle quote chars
@mixin icon-double-arrows ($position){
@if $position == left {
content: "\AB";
@if $text-direction == rtl {
margin-left: 0.5rem;
} @else {
margin-right: 0.5rem;
}
}
@if $position == right {
content: "\BB";
@if $text-direction == rtl { @if $text-direction == rtl {
margin-right: 0.5rem; .left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
@include icon-double-arrows($position: left);
}
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
@include icon-double-arrows($position: right);
}
} @else { } @else {
margin-left: 0.5rem; .left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
} @include icon-double-arrows($position: right);
} }
display: inline; .right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
} @include icon-double-arrows($position: left);
}
@if $include-html-off-canvas-classes {
.left-submenu {
@include off-canvas-submenu($position: left);
&.move-right, &.offcanvas-overlap-right, &.offcanvas-overlap {
@include translate3d(0%,0,0);
}
}
.right-submenu {
@include off-canvas-submenu($position: right);
&.move-left, &.offcanvas-overlap-left, &.offcanvas-overlap {
@include translate3d(0%,0,0);
} }
}
@if $text-direction == rtl {
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
@include icon-double-arrows($position: left);
}
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
@include icon-double-arrows($position: right);
}
} @else {
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
@include icon-double-arrows($position: right);
}
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
@include icon-double-arrows($position: left);
}
} }
} }

144
assets/scss/foundation/components/_orbit.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// @variables // @variables
// //
@ -10,7 +10,7 @@ $include-html-orbit-classes: $include-html-classes !default;
// We use these to control the caption styles // We use these to control the caption styles
$orbit-container-bg: none !default; $orbit-container-bg: none !default;
$orbit-caption-bg: rgba(51,51,51, 0.8) !default; $orbit-caption-bg: rgba(51,51,51, .8) !default;
$orbit-caption-font-color: $white !default; $orbit-caption-font-color: $white !default;
$orbit-caption-font-size: rem-calc(14) !default; $orbit-caption-font-size: rem-calc(14) !default;
$orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under" $orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under"
@ -51,20 +51,30 @@ $orbit-timer-hide-for-small: true !default;
@if $include-html-orbit-classes { @if $include-html-orbit-classes {
@-webkit-keyframes rotate { @-webkit-keyframes rotate {
from { -webkit-transform: rotate(0deg); } from {
to { -webkit-transform: rotate(360deg); } -webkit-transform: rotate(0deg);
} transform: rotate(0deg);
@-moz-keyframes rotate { }
from { -moz-transform: rotate(0deg); } to {
to { -moz-transform: rotate(360deg); } -webkit-transform: rotate(360deg);
} transform: rotate(360deg);
@-o-keyframes rotate { }
from { -o-transform: rotate(0deg); }
to { -o-transform: rotate(360deg); }
} }
@keyframes rotate { @keyframes rotate {
from { transform: rotate(0deg); } from {
to { transform: rotate(360deg); } -webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
} }
/* Orbit Graceful Loading */ /* Orbit Graceful Loading */
@ -98,30 +108,30 @@ $orbit-timer-hide-for-small: true !default;
// Orbit preloader // Orbit preloader
.#{$preloader-class} { .#{$preloader-class} {
display: block;
width: 40px;
height: 40px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -20px;
margin-left: -20px;
border: solid 3px;
border-color: $charcoal $white;
@include radius(1000px); @include radius(1000px);
animation-name: rotate;
animation-duration: 1.5s; animation-duration: 1.5s;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-name: rotate;
animation-timing-function: linear; animation-timing-function: linear;
border-color: $charcoal $white;
border: solid 3px;
display: block;
height: 40px;
left: 50%;
margin-left: -20px;
margin-top: -20px;
position: absolute;
top: 50%;
width: 40px;
} }
} }
.orbit-container { .orbit-container {
background: $orbit-container-bg;
overflow: hidden; overflow: hidden;
width: 100%;
position: relative; position: relative;
background: $orbit-container-bg; width: 100%;
.orbit-slides-container { .orbit-slides-container {
list-style: none; list-style: none;
@ -131,10 +141,14 @@ $orbit-timer-hide-for-small: true !default;
// Prevents images (and captions) from disappearing after first rotation on Chrome for Android // Prevents images (and captions) from disappearing after first rotation on Chrome for Android
-webkit-transform: translateZ(0); -webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
img { display: block; max-width: 100%; } img { display: block; max-width: 100%; }
&>* { > * {
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
@ -147,48 +161,51 @@ $orbit-timer-hide-for-small: true !default;
&:first-child { &:first-child {
@if $text-direction == rtl { @if $text-direction == rtl {
margin-right: 0; margin-right: 0;
} }
@else { @else {
margin-left: 0; margin-left: 0;
} }
} }
.orbit-caption { .orbit-caption {
@if $orbit-caption-position == "bottom" { @if $orbit-caption-position == "bottom" {
position: absolute;
bottom: 0; bottom: 0;
position: absolute;
} @else if $orbit-caption-position == "under" { } @else if $orbit-caption-position == "under" {
position: relative; position: relative;
} }
background-color: $orbit-caption-bg; background-color: $orbit-caption-bg;
color: $orbit-caption-font-color; color: $orbit-caption-font-color;
width: 100%;
padding: $orbit-caption-padding;
font-size: $orbit-caption-font-size; font-size: $orbit-caption-font-size;
padding: $orbit-caption-padding;
width: 100%;
} }
} }
} }
.orbit-slide-number { .orbit-slide-number {
position: absolute;
top: 10px;
#{$default-float}: 10px; #{$default-float}: 10px;
background: $orbit-slide-number-bg;
color: $orbit-slide-number-font-color;
font-size: 12px; font-size: 12px;
position: absolute;
span { font-weight: 700; padding: $orbit-slide-number-padding;} span { font-weight: 700; padding: $orbit-slide-number-padding;}
color: $orbit-slide-number-font-color; top: 10px;
background: $orbit-slide-number-bg;
z-index: 10; z-index: 10;
} }
.orbit-timer { .orbit-timer {
position: absolute; position: absolute;
top: 12px; top: 12px;
#{$opposite-direction}: 10px; #{$opposite-direction}: 10px;
height: 6px; height: 6px;
width: 100px; width: 100px;
z-index: 10; z-index: 10;
.orbit-progress { .orbit-progress {
@if $orbit-timer-show-progress-bar { @if $orbit-timer-show-progress-bar {
height: 3px; height: 3px;
@ -198,26 +215,26 @@ $orbit-timer-hide-for-small: true !default;
position: relative; position: relative;
right: 20px; right: 20px;
top: 5px; top: 5px;
} }
} }
// Play button // Play button
& > span { & > span {
border: solid 4px $white;
border-bottom: none;
border-top: none;
display: none; display: none;
height: 14px;
position: absolute; position: absolute;
top: 0; top: 0;
#{$opposite-direction}: 0;
width: 11px; width: 11px;
height: 14px; #{$opposite-direction}: 0;
border: solid 4px $white;
border-top: none;
border-bottom: none;
} }
// Pause button // Pause button
&.paused { &.paused {
& > span { & > span {
#{$opposite-direction}: -4px;
top: 0; top: 0;
width: 11px; width: 11px;
height: 14px; height: 14px;
@ -225,6 +242,8 @@ $orbit-timer-hide-for-small: true !default;
border-left-style: solid; border-left-style: solid;
border-color: transparent; border-color: transparent;
border-left-color: $white; border-left-color: $white;
#{$opposite-direction}: -4px;
&.dark { &.dark {
border-left-color: $oil; border-left-color: $oil;
} }
@ -239,15 +258,15 @@ $orbit-timer-hide-for-small: true !default;
// Let's get those controls to be right in the center on each side // Let's get those controls to be right in the center on each side
.orbit-prev, .orbit-prev,
.orbit-next { .orbit-next {
position: absolute; background-color: $orbit-nav-bg;
top: 45%; color: white;
margin-top: -25px;
width: 36px;
height: 60px; height: 60px;
line-height: 50px; line-height: 50px;
color: white; margin-top: -25px;
background-color: $orbit-nav-bg; position: absolute;
text-indent: -9999px !important; text-indent: -9999px !important;
top: 45%;
width: 36px;
z-index: 10; z-index: 10;
&:hover { &:hover {
@ -255,13 +274,13 @@ $orbit-timer-hide-for-small: true !default;
} }
& > span { & > span {
border: inset 10px;
display: block;
height: 0;
margin-top: -10px;
position: absolute; position: absolute;
top: 50%; top: 50%;
margin-top: -10px;
display: block;
width: 0; width: 0;
height: 0;
border: inset 10px;
} }
} }
.orbit-prev { #{$default-float}: 0; .orbit-prev { #{$default-float}: 0;
@ -290,23 +309,24 @@ $orbit-timer-hide-for-small: true !default;
.orbit-bullets-container { text-align: center; } .orbit-bullets-container { text-align: center; }
.orbit-bullets { .orbit-bullets {
display: block;
float: none;
margin: 0 auto 30px auto; margin: 0 auto 30px auto;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
top: 10px;
float: none;
text-align: center; text-align: center;
display: block; top: 10px;
li { li {
cursor:pointer;
display: inline-block;
width: $orbit-bullet-radius;
height: $orbit-bullet-radius;
background: $orbit-bullet-nav-color; background: $orbit-bullet-nav-color;
cursor: pointer;
display: inline-block;
// float: $default-float; // float: $default-float;
float: none; float: none;
height: $orbit-bullet-radius;
margin-#{$opposite-direction}: 6px; margin-#{$opposite-direction}: 6px;
width: $orbit-bullet-radius;
@include radius(1000px); @include radius(1000px);
&.active { &.active {
@ -344,9 +364,9 @@ $orbit-timer-hide-for-small: true !default;
.orbit-stack-on-small { .orbit-stack-on-small {
.orbit-slides-container {height: auto !important;} .orbit-slides-container {height: auto !important;}
.orbit-slides-container > * { .orbit-slides-container > * {
margin:0 !important;
opacity: 1 !important;
position: relative; position: relative;
margin:0 !important;
opacity:1 !important;
} }
.orbit-slide-number { .orbit-slide-number {

30
assets/scss/foundation/components/_pagination.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -68,19 +68,19 @@ $pagination-link-current-active-bg: $primary-color !default;
a, button { a, button {
background: $pagination-link-current-background; background: $pagination-link-current-background;
color: $pagination-link-current-font-color; color: $pagination-link-current-font-color;
font-weight: $pagination-link-current-font-weight;
cursor: $pagination-link-current-cursor; cursor: $pagination-link-current-cursor;
font-weight: $pagination-link-current-font-weight;
&:hover, &:hover,
&:focus { background: $pagination-link-current-active-bg; } &:focus { background: $pagination-link-current-active-bg; }
} }
} @else { } @else {
height: auto;
padding: $pagination-link-pad;
background: $pagination-link-current-background; background: $pagination-link-current-background;
color: $pagination-link-current-font-color; color: $pagination-link-current-font-color;
font-weight: $pagination-link-current-font-weight;
cursor: $pagination-link-current-cursor; cursor: $pagination-link-current-cursor;
font-weight: $pagination-link-current-font-weight;
height: auto;
padding: $pagination-link-pad;
@include radius; @include radius;
&:hover, &:hover,
@ -98,25 +98,25 @@ $pagination-link-current-active-bg: $primary-color !default;
@if $base-style { @if $base-style {
display: block; display: block;
min-height: $pagination-height;
margin-#{$default-float}: $pagination-margin; margin-#{$default-float}: $pagination-margin;
min-height: $pagination-height;
li { li {
height: $pagination-li-height;
color: $pagination-li-font-color; color: $pagination-li-font-color;
font-size: $pagination-li-font-size; font-size: $pagination-li-font-size;
height: $pagination-li-height;
margin-#{$default-float}: $pagination-li-margin; margin-#{$default-float}: $pagination-li-margin;
a, button { a, button {
display: block;
padding: $pagination-link-pad;
color: $pagination-link-font-color;
background: none;
@include radius; @include radius;
font-weight: normal; @include single-transition(background-color);
background: none;
color: $pagination-link-font-color;
display: block;
font-size: 1em; font-size: 1em;
font-weight: normal;
line-height: inherit; line-height: inherit;
@include single-transition(background-color); padding: $pagination-link-pad;
} }
&:hover a, &:hover a,
@ -135,11 +135,11 @@ $pagination-link-current-active-bg: $primary-color !default;
// Left or center align the li elements // Left or center align the li elements
li { li {
@if $center { @if $center {
float: none;
display: inline-block; display: inline-block;
float: none;
} @else { } @else {
float: $pagination-li-float;
display: block; display: block;
float: $pagination-li-float;
} }
} }
} }

36
assets/scss/foundation/components/_panels.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -13,10 +13,10 @@ $include-html-panel-classes: $include-html-classes !default;
$panel-bg: scale-color($white, $lightness: -5%) !default; $panel-bg: scale-color($white, $lightness: -5%) !default;
$panel-border-style: solid !default; $panel-border-style: solid !default;
$panel-border-size: 1px !default; $panel-border-size: 1px !default;
$callout-panel-bg: scale-color($primary-color, $lightness: 94%) !default;
// We use this % to control how much we darken things on hover // We use this % to control how much we darken things on hover
$panel-function-factor: -11% !default; $panel-border-color: scale-color($panel-bg, $lightness: -11%) !default;
$panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor) !default;
// We use these to set default inner padding and bottom margin // We use these to set default inner padding and bottom margin
$panel-margin-bottom: rem-calc(20) !default; $panel-margin-bottom: rem-calc(20) !default;
@ -36,14 +36,20 @@ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightne
// $bg - Sets the panel background color. Default: $panel-pg || scale-color($white, $lightness: -5%) !default // $bg - Sets the panel background color. Default: $panel-pg || scale-color($white, $lightness: -5%) !default
// $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20) // $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
// $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true // $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
@mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) { @mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust, $border:true) {
@if $bg { @if $bg {
$bg-lightness: lightness($bg); $bg-lightness: lightness($bg);
border-style: $panel-border-style; @if $border {
border-width: $panel-border-size; border-style: $panel-border-style;
border-color: scale-color($bg, $lightness: $panel-function-factor); border-width: $panel-border-size;
border-color: $panel-border-color;
} @else {
border-style: none;
border-width: 0;
}
margin-bottom: $panel-margin-bottom; margin-bottom: $panel-margin-bottom;
padding: $padding; padding: $padding;
@ -52,20 +58,20 @@ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightne
@else { color: $panel-font-color-alt; } @else { color: $panel-font-color-alt; }
// Respect the padding, fool. // Respect the padding, fool.
&>:first-child { margin-top: 0; } > :first-child { margin-top: 0; }
&>:last-child { margin-bottom: 0; } > :last-child { margin-bottom: 0; }
@if $adjust { @if $adjust {
// We set the font color based on the darkness of the bg. // We set the font color based on the darkness of the bg.
@if $bg-lightness >= 50% { @if $bg-lightness >= 50% {
h1,h2,h3,h4,h5,h6,p,li,dl { color: $panel-font-color; } h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color; }
} }
@else { @else {
h1,h2,h3,h4,h5,h6,p,li,dl { color: $panel-font-color-alt; } h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color-alt; }
} }
// reset header line-heights for panels // reset header line-heights for panels
h1,h2,h3,h4,h5,h6 { h1, h2, h3, h4, h5, h6 {
line-height: 1; margin-bottom: rem-calc(20) / 2; line-height: 1; margin-bottom: rem-calc(20) / 2;
&.subheader { line-height: 1.4; } &.subheader { line-height: 1.4; }
} }
@ -80,7 +86,7 @@ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightne
.panel { @include panel; .panel { @include panel;
&.callout { &.callout {
@include panel(scale-color($primary-color, $lightness: 94%)); @include panel($callout-panel-bg);
a:not(.button) { a:not(.button) {
color: $callout-panel-link-color; color: $callout-panel-link-color;

32
assets/scss/foundation/components/_pricing-tables.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -75,12 +75,12 @@ $price-cta-padding: rem-calc(20 20 0) !default;
// We use this mixin to create the pricing table title styles // We use this mixin to create the pricing table title styles
@mixin pricing-table-title { @mixin pricing-table-title {
background-color: $price-title-bg; background-color: $price-title-bg;
padding: $price-title-padding;
text-align: $price-title-align;
color: $price-title-color; color: $price-title-color;
font-weight: $price-title-weight;
font-size: $price-title-size;
font-family: $price-title-font-family; font-family: $price-title-font-family;
font-size: $price-title-size;
font-weight: $price-title-weight;
padding: $price-title-padding;
text-align: $price-title-align;
} }
// @mixins // @mixins
@ -88,12 +88,12 @@ $price-cta-padding: rem-calc(20 20 0) !default;
// We use this mixin to control the pricing table price styles // We use this mixin to control the pricing table price styles
@mixin pricing-table-price { @mixin pricing-table-price {
background-color: $price-money-bg; background-color: $price-money-bg;
padding: $price-money-padding;
text-align: $price-money-align;
color: $price-money-color; color: $price-money-color;
font-weight: $price-money-weight;
font-size: $price-money-size;
font-family: $price-money-font-family; font-family: $price-money-font-family;
font-size: $price-money-size;
font-weight: $price-money-weight;
padding: $price-money-padding;
text-align: $price-money-align;
} }
// @mixins // @mixins
@ -101,13 +101,13 @@ $price-cta-padding: rem-calc(20 20 0) !default;
// We use this mixin to create the description styles for the pricing table // We use this mixin to create the description styles for the pricing table
@mixin pricing-table-description { @mixin pricing-table-description {
background-color: $price-bg; background-color: $price-bg;
padding: $price-desc-padding; border-bottom: $price-desc-bottom-border;
text-align: $price-desc-align;
color: $price-desc-color; color: $price-desc-color;
font-size: $price-desc-font-size; font-size: $price-desc-font-size;
font-weight: $price-desc-weight; font-weight: $price-desc-weight;
line-height: $price-desc-line-height; line-height: $price-desc-line-height;
border-bottom: $price-desc-bottom-border; padding: $price-desc-padding;
text-align: $price-desc-align;
} }
// @mixins // @mixins
@ -115,12 +115,12 @@ $price-cta-padding: rem-calc(20 20 0) !default;
// We use this mixin to style the bullet items in the pricing table // We use this mixin to style the bullet items in the pricing table
@mixin pricing-table-bullet { @mixin pricing-table-bullet {
background-color: $price-bg; background-color: $price-bg;
padding: $price-item-padding; border-bottom: $price-item-bottom-border;
text-align: $price-item-align;
color: $price-item-color; color: $price-item-color;
font-size: $price-item-font-size; font-size: $price-item-font-size;
font-weight: $price-item-weight; font-weight: $price-item-weight;
border-bottom: $price-item-bottom-border; padding: $price-item-padding;
text-align: $price-item-align;
} }
// @mixins // @mixins
@ -128,8 +128,8 @@ $price-cta-padding: rem-calc(20 20 0) !default;
// We use this mixin to style the CTA area of the pricing tables // We use this mixin to style the CTA area of the pricing tables
@mixin pricing-table-cta { @mixin pricing-table-cta {
background-color: $price-cta-bg; background-color: $price-cta-bg;
text-align: $price-cta-align;
padding: $price-cta-padding; padding: $price-cta-padding;
text-align: $price-cta-align;
} }
@include exports("pricing-table") { @include exports("pricing-table") {

8
assets/scss/foundation/components/_progress-bars.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -34,10 +34,10 @@ $progress-meter-alert-color: $alert-color !default;
// We use this to set up the progress bar container // We use this to set up the progress bar container
@mixin progress-container { @mixin progress-container {
background-color: $progress-bar-color; background-color: $progress-bar-color;
height: $progress-bar-height;
border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color; border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color;
padding: $progress-bar-pad; height: $progress-bar-height;
margin-bottom: $progress-bar-margin-bottom; margin-bottom: $progress-bar-margin-bottom;
padding: $progress-bar-pad;
} }
// @mixins // @mixins
@ -45,8 +45,8 @@ $progress-meter-alert-color: $alert-color !default;
// $bg - Default: $progress-meter-color || $primary-color // $bg - Default: $progress-meter-color || $primary-color
@mixin progress-meter($bg:$progress-meter-color) { @mixin progress-meter($bg:$progress-meter-color) {
background: $bg; background: $bg;
height: 100%;
display: block; display: block;
height: 100%;
} }

39
assets/scss/foundation/components/_range-slider.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @name _range-slider.scss // @name _range-slider.scss
@ -44,7 +44,7 @@ $range-slider-handle-round: $global-rounded !default;
$range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%) !default; $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%) !default;
$range-slider-handle-cursor: pointer !default; $range-slider-handle-cursor: pointer !default;
$range-slider-disabled-opacity: 0.7 !default; $range-slider-disabled-opacity: .7 !default;
$range-slider-disabled-cursor: $cursor-disabled-value !default; $range-slider-disabled-cursor: $cursor-disabled-value !default;
// //
@ -52,19 +52,19 @@ $range-slider-disabled-cursor: $cursor-disabled-value !default;
// //
@mixin range-slider-bar-base($vertical: false) { @mixin range-slider-bar-base($vertical: false) {
position: relative;
border: $range-slider-bar-border-width $range-slider-bar-border-style $range-slider-bar-border-color; border: $range-slider-bar-border-width $range-slider-bar-border-style $range-slider-bar-border-color;
margin: rem-calc(20 0); margin: rem-calc(20 0);
position: relative;
-ms-touch-action: none; -ms-touch-action: none;
touch-action: none; touch-action: none;
@if $vertical == true { @if $vertical == true {
display: inline-block; display: inline-block;
width: $range-slider-vertical-bar-width;
height: $range-slider-vertical-bar-height; height: $range-slider-vertical-bar-height;
width: $range-slider-vertical-bar-width;
} @else { } @else {
display: block; display: block;
width: $range-slider-bar-width;
height: $range-slider-bar-height; height: $range-slider-bar-height;
width: $range-slider-bar-width;
} }
} }
@mixin range-slider-bar-style( @mixin range-slider-bar-style(
@ -89,19 +89,20 @@ $range-slider-disabled-cursor: $cursor-disabled-value !default;
} }
@mixin range-slider-handle-base() { @mixin range-slider-handle-base() {
border: $range-slider-handle-border-width $range-slider-handle-border-style $range-slider-handle-border-color;
cursor: $range-slider-handle-cursor;
display: inline-block; display: inline-block;
height: $range-slider-handle-height;
position: absolute; position: absolute;
z-index: 1;
top: $range-slider-handle-position-top; top: $range-slider-handle-position-top;
width: $range-slider-handle-width; width: $range-slider-handle-width;
height: $range-slider-handle-height; z-index: 1;
border: $range-slider-handle-border-width $range-slider-handle-border-style $range-slider-handle-border-color;
cursor: $range-slider-handle-cursor;
// This removes the 300ms touch delay on Windows 8 // This removes the 300ms touch delay on Windows 8
-ms-touch-action: manipulation; -ms-touch-action: manipulation;
touch-action: manipulation; touch-action: manipulation;
} }
@mixin range-slider-handle-style( @mixin range-slider-handle-style(
$bg: true, $bg: true,
$radius: false, $radius: false,
@ -118,6 +119,7 @@ $range-slider-disabled-cursor: $cursor-disabled-value !default;
background: $range-slider-handle-bg-hover-color; background: $range-slider-handle-bg-hover-color;
} }
} }
@mixin range-slider-handle() { @mixin range-slider-handle() {
@include range-slider-handle-base; @include range-slider-handle-base;
@include range-slider-handle-style; @include range-slider-handle-style;
@ -132,15 +134,18 @@ $range-slider-disabled-cursor: $cursor-disabled-value !default;
&.vertical-range { &.vertical-range {
@include range-slider-bar-base($vertical: true); @include range-slider-bar-base($vertical: true);
.range-slider-handle { .range-slider-handle {
margin-top: 0; bottom: -($range-slider-vertical-bar-height - $range-slider-handle-width);
margin-#{$default-float}: -($range-slider-handle-width / 4); margin-#{$default-float}: -($range-slider-handle-width / 4);
margin-top: 0;
position: absolute; position: absolute;
bottom: -($range-slider-vertical-bar-height - $range-slider-handle-width);
} }
.range-slider-active-segment { .range-slider-active-segment {
width: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2)); border-bottom-left-radius: inherit;
height: auto; border-bottom-right-radius: inherit;
border-top-left-radius: initial;
bottom: 0; bottom: 0;
height: auto;
width: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
} }
} }
&.radius { &.radius {
@ -157,10 +162,12 @@ $range-slider-disabled-cursor: $cursor-disabled-value !default;
} }
} }
.range-slider-active-segment { .range-slider-active-segment {
background: $range-slider-active-segment-bg-color;
border-bottom-left-radius: inherit;
border-top-left-radius: inherit;
display: inline-block; display: inline-block;
position: absolute;
height: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2)); height: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
background: $range-slider-active-segment-bg-color; position: absolute;
} }
.range-slider-handle { .range-slider-handle {
@include range-slider-handle-base; @include range-slider-handle-base;

54
assets/scss/foundation/components/_reveal.scss

@ -2,8 +2,8 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
@import "grid"; @import 'grid';
// //
// @name _reveal.scss // @name _reveal.scss
@ -21,7 +21,7 @@ $reveal-modal-bg: $white !default;
$reveal-position-top: rem-calc(100) !default; $reveal-position-top: rem-calc(100) !default;
$reveal-default-width: 80% !default; $reveal-default-width: 80% !default;
$reveal-max-width: $row-width !default; $reveal-max-width: $row-width !default;
$reveal-modal-padding: rem-calc(20) !default; $reveal-modal-padding: rem-calc(30) !default;
$reveal-box-shadow: 0 0 10px rgba($black,.4) !default; $reveal-box-shadow: 0 0 10px rgba($black,.4) !default;
// We use these to style the reveal close button // We use these to style the reveal close button
@ -52,16 +52,16 @@ $z-index-base: 1005;
// We use this to create the reveal background overlay styles // We use this to create the reveal background overlay styles
@mixin reveal-bg( $include-z-index-value: true ) { @mixin reveal-bg( $include-z-index-value: true ) {
position: fixed;
// position: absolute; // allows modal background to extend beyond window position // position: absolute; // allows modal background to extend beyond window position
top: 0; background: $reveal-overlay-bg-old; // Autoprefixer should be used to avoid such variables needed when Foundation for Sites can do so in the near future.
background: $reveal-overlay-bg;
bottom: 0; bottom: 0;
display: none;
left: 0; left: 0;
position: fixed;
right: 0; right: 0;
background: $reveal-overlay-bg-old; // Autoprefixer should be used to avoid such variables needed when Foundation for Sites can do so in the near future. top: 0;
background: $reveal-overlay-bg;
z-index: if( $include-z-index-value, $z-index-base - 1, auto ); z-index: if( $include-z-index-value, $z-index-base - 1, auto );
display: none;
#{$default-float}: 0; #{$default-float}: 0;
} }
@ -72,13 +72,13 @@ $z-index-base: 1005;
// //
@mixin reveal-modal-base( $base-style: true, $width:$reveal-default-width, $max-width:$reveal-max-width, $border-radius: $reveal-radius) { @mixin reveal-modal-base( $base-style: true, $width:$reveal-default-width, $max-width:$reveal-max-width, $border-radius: $reveal-radius) {
@if $base-style { @if $base-style {
visibility: hidden; border-radius: $border-radius;
display: none; display: none;
position: absolute; position: absolute;
z-index: $z-index-base;
width: 100%;
top:0; top:0;
border-radius: $border-radius; visibility: hidden;
width: 100%;
z-index: $z-index-base;
#{$default-float}: 0; #{$default-float}: 0;
@media #{$small-only} { @media #{$small-only} {
@ -89,18 +89,18 @@ $z-index-base: 1005;
.column, .columns { min-width: 0; } .column, .columns { min-width: 0; }
// Get rid of margin from first and last element inside modal // Get rid of margin from first and last element inside modal
& > :first-child { margin-top: 0; } > :first-child { margin-top: 0; }
& > :last-child { margin-bottom: 0; } > :last-child { margin-bottom: 0; }
} }
@if $width { @if $width {
@media #{$medium-up} { @media #{$medium-up} {
width: $width;
max-width: $max-width;
left: 0; left: 0;
right: 0;
margin: 0 auto; margin: 0 auto;
max-width: $max-width;
right: 0;
width: $width;
} }
} }
} }
@ -152,14 +152,14 @@ $z-index-base: 1005;
// //
// $color - Default: $reveal-close-color || $base // $color - Default: $reveal-close-color || $base
@mixin reveal-close($color:$reveal-close-color) { @mixin reveal-close($color:$reveal-close-color) {
color: $color;
cursor: $cursor-pointer-value;
font-size: $reveal-close-font-size; font-size: $reveal-close-font-size;
font-weight: $reveal-close-weight;
line-height: 1; line-height: 1;
position: absolute; position: absolute;
top: $reveal-close-top; top: $reveal-close-top;
#{$opposite-direction}: $reveal-close-side; #{$opposite-direction}: $reveal-close-side;
color: $color;
font-weight: $reveal-close-weight;
cursor: $cursor-pointer-value;
} }
@include exports("reveal") { @include exports("reveal") {
@ -172,7 +172,7 @@ $z-index-base: 1005;
@include reveal-modal-base; @include reveal-modal-base;
@include reveal-modal-style( @include reveal-modal-style(
$bg:$reveal-modal-bg, $bg:$reveal-modal-bg,
$padding:$reveal-modal-padding * 1.5, $padding:$reveal-modal-padding,
$border:true, $border:true,
$box-shadow:true, $box-shadow:true,
$radius:false, $radius:false,
@ -189,15 +189,15 @@ $z-index-base: 1005;
&.xlarge { @include reveal-modal-base(false, 95%); } &.xlarge { @include reveal-modal-base(false, 95%); }
&.full { &.full {
@include reveal-modal-base(false, 100%); @include reveal-modal-base(false, 100%);
top:0;
left:0;
height:100%;
height: 100vh; height: 100vh;
min-height:100vh; height:100%;
max-width: none !important; left:0;
margin-left: 0 !important; margin-left: 0 !important;
max-width: none !important;
min-height:100vh;
top:0;
} }
// Modals pushed to back // Modals pushed to back
&.toback { &.toback {
z-index: $z-index-base - 2; z-index: $z-index-base - 2;

26
assets/scss/foundation/components/_side-nav.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @variables // @variables
@ -22,7 +22,7 @@ $side-nav-list-margin: rem-calc(0 0 7 0) !default;
$side-nav-link-color: $primary-color !default; $side-nav-link-color: $primary-color !default;
$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default; $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default; $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
$side-nav-link-bg-hover: hsla(0, 0, 0, 0.025) !default; $side-nav-link-bg-hover: hsla(0, 0, 0, .025) !default;
$side-nav-link-margin: 0 !default; $side-nav-link-margin: 0 !default;
$side-nav-link-padding: rem-calc(7 14) !default; $side-nav-link-padding: rem-calc(7 14) !default;
$side-nav-font-size: rem-calc(14) !default; $side-nav-font-size: rem-calc(14) !default;
@ -40,7 +40,7 @@ $side-nav-heading-text-transform: uppercase !default;
// We use these to control border styles // We use these to control border styles
$side-nav-divider-size: 1px !default; $side-nav-divider-size: 1px !default;
$side-nav-divider-style: solid !default; $side-nav-divider-style: solid !default;
$side-nav-divider-color: scale-color($white, $lightness: 10%) !default; $side-nav-divider-color: scale-color($white, $lightness: -10%) !default;
// //
@ -58,23 +58,24 @@ $side-nav-divider-color: scale-color($white, $lightness: 10%) !default;
$divider-color:$side-nav-divider-color, $divider-color:$side-nav-divider-color,
$font-size:$side-nav-font-size, $font-size:$side-nav-font-size,
$link-color:$side-nav-link-color, $link-color:$side-nav-link-color,
$link-color-active:$side-nav-link-color-active,
$link-color-hover:$side-nav-link-color-hover, $link-color-hover:$side-nav-link-color-hover,
$link-bg-hover:$side-nav-link-bg-hover) { $link-bg-hover:$side-nav-link-bg-hover) {
display: block; display: block;
font-family: $side-nav-font-family;
list-style-position: $side-nav-list-position;
list-style-type: $side-nav-list-type;
margin: 0; margin: 0;
padding: $side-nav-padding; padding: $side-nav-padding;
list-style-type: $side-nav-list-type;
list-style-position: $side-nav-list-position;
font-family: $side-nav-font-family;
li { li {
margin: $side-nav-list-margin;
font-size: $font-size; font-size: $font-size;
font-weight: $side-nav-font-weight; font-weight: $side-nav-font-weight;
margin: $side-nav-list-margin;
a:not(.button) { a:not(.button) {
display: block;
color: $link-color; color: $link-color;
display: block;
margin: $side-nav-link-margin; margin: $side-nav-link-margin;
padding: $side-nav-link-padding; padding: $side-nav-link-padding;
&:hover, &:hover,
@ -82,19 +83,22 @@ $side-nav-divider-color: scale-color($white, $lightness: 10%) !default;
background: $link-bg-hover; background: $link-bg-hover;
color: $link-color-hover; color: $link-color-hover;
} }
&:active {
color: $link-color-active;
}
} }
&.active > a:first-child:not(.button) { &.active > a:first-child:not(.button) {
color: $side-nav-link-color-active; color: $side-nav-link-color-active;
font-weight: $side-nav-font-weight-active;
font-family: $side-nav-font-family-active; font-family: $side-nav-font-family-active;
font-weight: $side-nav-font-weight-active;
} }
&.divider { &.divider {
border-top: $side-nav-divider-size $side-nav-divider-style; border-top: $side-nav-divider-size $side-nav-divider-style;
height: 0; height: 0;
padding: 0;
list-style: none; list-style: none;
padding: 0;
border-top-color: $divider-color; border-top-color: $divider-color;
} }
@ -111,6 +115,6 @@ $side-nav-divider-color: scale-color($white, $lightness: 10%) !default;
@include exports("side-nav") { @include exports("side-nav") {
@if $include-html-nav-classes { @if $include-html-nav-classes {
.side-nav { @include side-nav; } .side-nav {@include side-nav;}
} }
} }

32
assets/scss/foundation/components/_split-buttons.scss

@ -2,9 +2,9 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
@import "buttons"; @import 'buttons';
@import "dropdown-buttons"; @import 'dropdown-buttons';
// //
// @name _split-buttons.scss // @name _split-buttons.scss
@ -22,6 +22,7 @@ $split-button-function-factor: 10% !default;
$split-button-pip-color: $white !default; $split-button-pip-color: $white !default;
$split-button-pip-color-alt: $oil !default; $split-button-pip-color-alt: $oil !default;
$split-button-active-bg-tint: rgba(0,0,0,0.1) !default; $split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
$split-button-span-border-color: rgba(255,255,255,0.5) !default;
// We use these to control tiny split buttons // We use these to control tiny split buttons
$split-button-padding-tny: $button-pip-tny * 10 !default; $split-button-padding-tny: $button-pip-tny * 10 !default;
@ -60,12 +61,12 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
// //
// $padding - Type of padding to apply. Default: medium. Options: tiny, small, medium, large. // $padding - Type of padding to apply. Default: medium. Options: tiny, small, medium, large.
// $pip-color - Color of the triangle. Default: $split-button-pip-color. // $pip-color - Color of the triangle. Default: $split-button-pip-color.
// $span-border - Border color of button divider. Default: $primary-color. // $span-border - Border color of button divider. Default: $split-button-span-border-color.
// $base-style - Apply base style to split button. Default: true. // $base-style - Apply base style to split button. Default: true.
@mixin split-button( @mixin split-button(
$padding:medium, $padding:medium,
$pip-color:$split-button-pip-color, $pip-color:$split-button-pip-color,
$span-border:$primary-color, $span-border:$split-button-span-border-color,
$base-style:true) { $base-style:true) {
// With this, we can control whether or not the base styles come through. // With this, we can control whether or not the base styles come through.
@ -90,7 +91,6 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
display: block; display: block;
border-style: inset; border-style: inset;
top: 50%; top: 50%;
#{$default-float}: 50%; #{$default-float}: 50%;
} }
@ -101,7 +101,7 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
// Control the border color for the span area of the split button // Control the border color for the span area of the split button
@if $span-border { @if $span-border {
span { span {
border-#{$default-float}-color: rgba(255,255,255,0.5); border-#{$default-float}-color: $span-border;
} }
} }
@ -113,8 +113,8 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
&:after { &:after {
border-top-style: solid; border-top-style: solid;
border-width: $split-button-pip-size-tny; border-width: $split-button-pip-size-tny;
top: 48%;
margin-#{$default-float}: $split-button-pip-default-float-tny; margin-#{$default-float}: $split-button-pip-default-float-tny;
top: 48%;
} }
} }
} }
@ -127,8 +127,8 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
&:after { &:after {
border-top-style: solid; border-top-style: solid;
border-width: $split-button-pip-size-sml; border-width: $split-button-pip-size-sml;
top: 48%;
margin-#{$default-float}: $split-button-pip-default-float-sml; margin-#{$default-float}: $split-button-pip-default-float-sml;
top: 48%;
} }
} }
} }
@ -141,8 +141,8 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
&:after { &:after {
border-top-style: solid; border-top-style: solid;
border-width: $split-button-pip-size-med; border-width: $split-button-pip-size-med;
top: 48%;
margin-#{$default-float}: $split-button-pip-default-float-med; margin-#{$default-float}: $split-button-pip-default-float-med;
top: 48%;
} }
} }
} }
@ -155,8 +155,8 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
&:after { &:after {
border-top-style: solid; border-top-style: solid;
border-width: $split-button-pip-size-lrg; border-width: $split-button-pip-size-lrg;
top: 48%;
margin-#{$default-float}: $split-button-pip-default-float-lrg; margin-#{$default-float}: $split-button-pip-default-float-lrg;
top: 48%;
} }
} }
} }
@ -172,9 +172,9 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
.split.button { @include split-button; .split.button { @include split-button;
&.secondary { @include split-button(false, $split-button-pip-color, $secondary-color, false); } &.secondary { @include split-button(false, $split-button-pip-color, $split-button-span-border-color, false); }
&.alert { @include split-button(false, false, $alert-color, false); } &.alert { @include split-button(false, false, $split-button-span-border-color, false); }
&.success { @include split-button(false, false, $success-color, false); } &.success { @include split-button(false, false, $split-button-span-border-color, false); }
&.tiny { @include split-button(tiny, false, false, false); } &.tiny { @include split-button(tiny, false, false, false); }
&.small { @include split-button(small, false, false, false); } &.small { @include split-button(small, false, false, false); }
@ -189,12 +189,12 @@ $split-button-pip-default-float-lrg: rem-calc(-6) !default;
span:before{ border-style:none; } span:before{ border-style:none; }
span:after{ border-style:none; } span:after{ border-style:none; }
span>i{ span>i{
top: 50%;
display: block; display: block;
position: absolute;
left: 50%; left: 50%;
margin-left: -0.28889em; margin-left: -0.28889em;
margin-top: -0.48889em; margin-top: -0.48889em;
position: absolute;
top: 50%;
} }
} }
} }

25
assets/scss/foundation/components/_sub-nav.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @name _sub-nav.scss // @name _sub-nav.scss
@ -59,10 +59,10 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
$active-bg: $sub-nav-active-bg, $active-bg: $sub-nav-active-bg,
$active-bg-hover: $sub-nav-active-bg-hover) { $active-bg-hover: $sub-nav-active-bg-hover) {
display: block; display: block;
width: auto; margin: $sub-nav-list-margin;
overflow: hidden; overflow: hidden;
margin-bottom: $sub-nav-list-margin;
padding-top: $sub-nav-list-padding-top; padding-top: $sub-nav-list-padding-top;
width: auto;
dt { dt {
text-transform: uppercase; text-transform: uppercase;
@ -71,18 +71,19 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
dt, dt,
dd, dd,
li { li {
color: $font-color;
float: $default-float; float: $default-float;
margin-#{$default-float}: rem-calc(16);
margin-bottom: 0;
font-family: $sub-nav-font-family; font-family: $sub-nav-font-family;
font-weight: $sub-nav-font-weight;
font-size: $font-size; font-size: $font-size;
color: $font-color; font-weight: $sub-nav-font-weight;
margin-#{$default-float}: rem-calc(16);
margin-bottom: 0;
a { a {
text-decoration: $sub-nav-text-decoration;
color: $sub-nav-font-color; color: $sub-nav-font-color;
padding: $sub-nav-padding; padding: $sub-nav-padding;
text-decoration: $sub-nav-text-decoration;
&:hover { &:hover {
color: $sub-nav-font-color-hover; color: $sub-nav-font-color-hover;
} }
@ -90,15 +91,17 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
&.active a { &.active a {
@include radius($sub-nav-border-radius); @include radius($sub-nav-border-radius);
font-weight: $sub-nav-active-font-weight;
background: $active-bg; background: $active-bg;
padding: $sub-nav-active-padding;
cursor: $sub-nav-active-cursor;
color: $sub-nav-active-color; color: $sub-nav-active-color;
cursor: $sub-nav-active-cursor;
font-weight: $sub-nav-active-font-weight;
padding: $sub-nav-active-padding;
&:hover { &:hover {
background: $active-bg-hover; background: $active-bg-hover;
} }
} }
@if $sub-nav-item-divider != "" { @if $sub-nav-item-divider != "" {
margin-#{$default-float}: 0; margin-#{$default-float}: 0;

41
assets/scss/foundation/components/_switches.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @name // @name
@ -44,24 +44,26 @@ $switch-active-color: $primary-color !default;
$transition-speed:$switch-paddle-transition-speed, $transition-speed:$switch-paddle-transition-speed,
$transition-ease:$switch-paddle-transition-ease) { $transition-ease:$switch-paddle-transition-ease) {
padding: 0;
border: none; border: none;
position: relative; margin-bottom: $switch-bottom-margin;
outline: 0; outline: 0;
padding: 0;
position: relative;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
user-select: none; -ms-user-select: none;
user-select: none;
// Default label styles for type and transition // Default label styles for type and transition
label { label {
background: $switch-bg;
color: transparent;
cursor: pointer;
display: block; display: block;
margin-bottom: ($switch-height-med / 2); margin-bottom: ($switch-height-med / 2);
position: relative; position: relative;
color: transparent;
background: $switch-bg;
text-indent: 100%; text-indent: 100%;
width: $switch-height-med * 2; height: $switch-height-med; width: $switch-height-med * 2; height: $switch-height-med;
cursor: pointer;
// Transition for the switch label to follow paddle // Transition for the switch label to follow paddle
@include single-transition(left, $transition-speed, $transition-ease); @include single-transition(left, $transition-speed, $transition-ease);
@ -70,11 +72,11 @@ $switch-active-color: $primary-color !default;
// So that we don't need to recreate the form with any JS, we use the // So that we don't need to recreate the form with any JS, we use the
// existing checkbox or radio button, but we cleverly position and hide it. // existing checkbox or radio button, but we cleverly position and hide it.
input { input {
left: 10px;
opacity: 0; opacity: 0;
padding:0;
position: absolute; position: absolute;
top: 9px; top: 9px;
left: 10px;
padding:0;
& + label { margin-left: 0; margin-right: 0; } & + label { margin-left: 0; margin-right: 0; }
} }
@ -84,14 +86,14 @@ $switch-active-color: $primary-color !default;
// the state of the input. // the state of the input.
label:after { label:after {
background: $switch-paddle-bg;
content: ""; content: "";
display: block; display: block;
background: $switch-paddle-bg; height: $switch-height-med - .5rem;
left: .25rem;
position: absolute; position: absolute;
top: .25rem; top: .25rem;
left: .25rem; width: $switch-height-med - .5rem;
width: $switch-height-med - 0.5rem;
height: $switch-height-med - 0.5rem;
-webkit-transition: left $transition-speed $transition-ease; -webkit-transition: left $transition-speed $transition-ease;
-moz-transition: left $transition-speed $transition-ease; -moz-transition: left $transition-speed $transition-ease;
@ -100,6 +102,7 @@ $switch-active-color: $primary-color !default;
-webkit-transform: translate3d(0,0,0); -webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0); -moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0); -o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0); transform: translate3d(0,0,0);
} }
@ -109,7 +112,7 @@ $switch-active-color: $primary-color !default;
} }
input:checked + label:after { input:checked + label:after {
left: $switch-height-med + 0.25rem; left: $switch-height-med + .25rem;
} }
} }
@ -121,17 +124,17 @@ $switch-active-color: $primary-color !default;
@mixin switch-size($height: $switch-height-med) { @mixin switch-size($height: $switch-height-med) {
label { label {
width: $height * 2;
height: $height; height: $height;
width: $height * 2;
} }
label:after { label:after {
width: $height - 0.5rem; height: $height - .5rem;
height: $height - 0.5rem; width: $height - .5rem;
} }
input:checked + label:after { input:checked + label:after {
left: $height + 0.25rem; left: $height + .25rem;
} }
} }

16
assets/scss/foundation/components/_tables.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @name _tables.scss // @name _tables.scss
@ -62,8 +62,8 @@ $table-margin-bottom: rem-calc(20) !default;
@mixin table { @mixin table {
background: $table-bg; background: $table-bg;
margin-bottom: $table-margin-bottom;
border: $table-border-style $table-border-size $table-border-color; border: $table-border-style $table-border-size $table-border-color;
margin-bottom: $table-margin-bottom;
table-layout: $table-layout; table-layout: $table-layout;
caption { caption {
@ -81,10 +81,10 @@ $table-margin-bottom: rem-calc(20) !default;
tr { tr {
th, th,
td { td {
padding: $table-head-padding; color: $table-head-font-color;
font-size: $table-head-font-size; font-size: $table-head-font-size;
font-weight: $table-head-font-weight; font-weight: $table-head-font-weight;
color: $table-head-font-color; padding: $table-head-padding;
} }
} }
} }
@ -95,10 +95,10 @@ $table-margin-bottom: rem-calc(20) !default;
tr { tr {
th, th,
td { td {
padding: $table-foot-padding; color: $table-foot-font-color;
font-size: $table-foot-font-size; font-size: $table-foot-font-size;
font-weight: $table-foot-font-weight; font-weight: $table-foot-font-weight;
color: $table-foot-font-color; padding: $table-foot-padding;
} }
} }
} }
@ -106,9 +106,9 @@ $table-margin-bottom: rem-calc(20) !default;
tr { tr {
th, th,
td { td {
padding: $table-row-padding;
font-size: $table-row-font-size;
color: $table-row-font-color; color: $table-row-font-color;
font-size: $table-row-font-size;
padding: $table-row-padding;
text-align: $default-float; text-align: $default-float;
} }

81
assets/scss/foundation/components/_tabs.scss

@ -2,8 +2,8 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
@import "grid"; @import 'grid';
// //
// @variables // @variables
@ -31,46 +31,48 @@ $tabs-vertical-navigation-margin-bottom: 1.25rem !default;
@include clearfix; @include clearfix;
margin-bottom: 0 !important; margin-bottom: 0 !important;
margin-left: 0; margin-left: 0;
dd, .tab-title {
position: relative; dd,
margin-bottom: 0 !important; .tab-title {
list-style: none;
float: $default-float; float: $default-float;
list-style: none;
margin-bottom: 0 !important;
position: relative;
> a { > a {
display: block; display: block;
background: { background-color: $tabs-navigation-bg-color;
color: $tabs-navigation-bg-color;
}
color: $tabs-navigation-font-color; color: $tabs-navigation-font-color;
padding: $tabs-navigation-padding $tabs-navigation-padding * 2;
font-family: $tabs-navigation-font-family; font-family: $tabs-navigation-font-family;
font-size: $tabs-navigation-font-size; font-size: $tabs-navigation-font-size;
padding: $tabs-navigation-padding $tabs-navigation-padding * 2;
&:hover { &:hover {
background: { background-color: $tabs-navigation-hover-bg-color;
color: $tabs-navigation-hover-bg-color;
}
}
&:focus{
outline: none;
} }
} }
&.active a { &.active a {
background: { background-color: $tabs-navigation-active-bg-color;
color: $tabs-navigation-active-bg-color; color: $tabs-navigation-active-font-color;
} }
color:$tabs-navigation-active-font-color;
}
} }
&.radius { &.radius {
dd:first-child, .tab:first-child { dd:first-child,
.tab:first-child {
a { @include side-radius($default-float, $global-radius); } a { @include side-radius($default-float, $global-radius); }
} }
dd:last-child, .tab:last-child {
dd:last-child,
.tab:last-child {
a { @include side-radius($opposite-direction, $global-radius); } a { @include side-radius($opposite-direction, $global-radius); }
} }
} }
&.vertical { &.vertical {
dd, .tab-title { dd,
.tab-title {
position: inherit; position: inherit;
float: none; float: none;
display: block; display: block;
@ -83,38 +85,53 @@ $tabs-vertical-navigation-margin-bottom: 1.25rem !default;
@include clearfix; @include clearfix;
margin-bottom: $tabs-content-margin-bottom; margin-bottom: $tabs-content-margin-bottom;
width: 100%; width: 100%;
> .content { > .content {
display: none; display: none;
float: $default-float; float: $default-float;
padding: $tabs-content-padding 0; padding: $tabs-content-padding 0;
width: 100%; width: 100%;
&.active { display: block; float: none; }
&.contained { padding: $tabs-content-padding; } &.active {
display: block;
float: none;
}
&.contained {
padding: $tabs-content-padding;
}
} }
&.vertical { &.vertical {
display: block; display: block;
> .content { padding: 0 $tabs-content-padding; }
> .content {
padding: 0 $tabs-content-padding;
}
} }
} }
@media #{$medium-up} { @media #{$medium-up} {
.tabs { .tabs {
&.vertical { &.vertical {
width: 20%;
max-width: 20%;
float: $default-float; float: $default-float;
margin: 0 0 $tabs-vertical-navigation-margin-bottom; margin: 0;
margin-bottom: $tabs-vertical-navigation-margin-bottom !important;
max-width: 20%;
width: 20%;
} }
} }
.tabs-content { .tabs-content {
&.vertical { &.vertical {
width: 80%;
max-width: 80%;
float: $default-float; float: $default-float;
margin-#{$default-float}: -1px; margin-#{$default-float}: -1px;
max-width: 80%;
padding-#{$default-float}: 1rem; padding-#{$default-float}: 1rem;
width: 80%;
} }
} }
} }
.no-js { .no-js {
.tabs-content > .content { .tabs-content > .content {
display: block; display: block;

16
assets/scss/foundation/components/_thumbs.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// @name _thumbs.scss // @name _thumbs.scss
@ -36,14 +36,14 @@ $thumb-transition-speed: 200ms !default;
// $box-shadow - Box shadow to apply to thumbnail. Default: $thumb-box-shadow. // $box-shadow - Box shadow to apply to thumbnail. Default: $thumb-box-shadow.
// $box-shadow-hover - Box shadow to apply on hover. Default: $thumb-box-shadow-hover. // $box-shadow-hover - Box shadow to apply on hover. Default: $thumb-box-shadow-hover.
@mixin thumb( @mixin thumb(
$border-width:$thumb-border-width, $border-width:$thumb-border-width,
$box-shadow:$thumb-box-shadow, $box-shadow:$thumb-box-shadow,
$box-shadow-hover:$thumb-box-shadow-hover) { $box-shadow-hover:$thumb-box-shadow-hover) {
line-height: 0;
display: inline-block;
border: $thumb-border-style $border-width $thumb-border-color; border: $thumb-border-style $border-width $thumb-border-color;
max-width: 100%;
box-shadow: $box-shadow; box-shadow: $box-shadow;
display: inline-block;
line-height: 0;
max-width: 100%;
&:hover, &:hover,
&:focus { &:focus {
@ -58,9 +58,9 @@ $thumb-transition-speed: 200ms !default;
/* Image Thumbnails */ /* Image Thumbnails */
.th { .th {
@include thumb; @include thumb;
@include single-transition(all,$thumb-transition-speed,ease-out); @include single-transition(all, $thumb-transition-speed, ease-out);
&.radius { @include radius($thumb-radius); } &.radius { @include radius($thumb-radius); }
} }
} }
} }

50
assets/scss/foundation/components/_tooltips.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// Tooltip Variables // Tooltip Variables
@ -37,9 +37,9 @@ $tooltip-max-width: 300px !default;
/* Tooltips */ /* Tooltips */
.has-tip { .has-tip {
border-bottom: $has-tip-border-bottom; border-bottom: $has-tip-border-bottom;
color: $has-tip-font-color;
cursor: $has-tip-cursor-type; cursor: $has-tip-cursor-type;
font-weight: $has-tip-font-weight; font-weight: $has-tip-font-weight;
color: $has-tip-font-color;
&:hover, &:hover,
&:focus { &:focus {
@ -52,29 +52,29 @@ $tooltip-max-width: 300px !default;
} }
.tooltip { .tooltip {
background: $tooltip-bg;
color: $tooltip-font-color;
display: none; display: none;
position: absolute;
z-index: 1006;
font-weight: $tooltip-font-weight;
font-size: $tooltip-font-size; font-size: $tooltip-font-size;
font-weight: $tooltip-font-weight;
line-height: $tooltip-line-height; line-height: $tooltip-line-height;
padding: $tooltip-padding;
max-width: $tooltip-max-width; max-width: $tooltip-max-width;
#{$default-float}: 50%; padding: $tooltip-padding;
position: absolute;
width: 100%; width: 100%;
color: $tooltip-font-color; z-index: 1006;
background: $tooltip-bg; #{$default-float}: 50%;
&>.nub { > .nub {
border-color: transparent transparent $tooltip-bg transparent;
border: solid $tooltip-pip-size;
display: block; display: block;
#{$default-float}: $tooltip-pip-size;
position: absolute;
width: 0;
height: 0; height: 0;
border: solid $tooltip-pip-size;
border-color: transparent transparent $tooltip-bg transparent;
top: -($tooltip-pip-size * 2);
pointer-events: none; pointer-events: none;
position: absolute;
top: -($tooltip-pip-size * 2);
width: 0;
#{$default-float}: $tooltip-pip-size;
&.rtl { &.rtl {
left: auto; left: auto;
@ -87,34 +87,34 @@ $tooltip-max-width: 300px !default;
} }
&.round { &.round {
@include radius($tooltip-rounded); @include radius($tooltip-rounded);
&>.nub { > .nub {
left: 2rem; left: 2rem;
} }
} }
&.opened { &.opened {
color: $has-tip-font-color-hover !important;
border-bottom: $has-tip-border-bottom-hover !important; border-bottom: $has-tip-border-bottom-hover !important;
color: $has-tip-font-color-hover !important;
} }
} }
.tap-to-close { .tap-to-close {
color: $tooltip-close-font-color;
display: block; display: block;
font-size: $tooltip-close-font-size; font-size: $tooltip-close-font-size;
color: $tooltip-close-font-color;
font-weight: $tooltip-close-font-weight; font-weight: $tooltip-close-font-weight;
} }
@media #{$small} { @media #{$small} {
.tooltip { .tooltip {
&>.nub { > .nub {
border-color: transparent transparent $tooltip-bg transparent; border-color: transparent transparent $tooltip-bg transparent;
top: -($tooltip-pip-size * 2); top: -($tooltip-pip-size * 2);
} }
&.tip-top>.nub { &.tip-top>.nub {
border-color: $tooltip-bg transparent transparent transparent; border-color: $tooltip-bg transparent transparent transparent;
top: auto;
bottom: -($tooltip-pip-size * 2); bottom: -($tooltip-pip-size * 2);
top: auto;
} }
&.tip-left, &.tip-left,
@ -122,17 +122,17 @@ $tooltip-max-width: 300px !default;
&.tip-left>.nub { &.tip-left>.nub {
border-color: transparent transparent transparent $tooltip-bg; border-color: transparent transparent transparent $tooltip-bg;
right: -($tooltip-pip-size * 2);
left: auto; left: auto;
top: 50%;
margin-top: -$tooltip-pip-size; margin-top: -$tooltip-pip-size;
right: -($tooltip-pip-size * 2);
top: 50%;
} }
&.tip-right>.nub { &.tip-right>.nub {
border-color: transparent $tooltip-bg transparent transparent; border-color: transparent $tooltip-bg transparent transparent;
right: auto;
left: -($tooltip-pip-size * 2); left: -($tooltip-pip-size * 2);
top: 50%;
margin-top: -$tooltip-pip-size; margin-top: -$tooltip-pip-size;
right: auto;
top: 50%;
} }
} }

285
assets/scss/foundation/components/_top-bar.scss

@ -2,10 +2,10 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
@import "grid"; @import 'grid';
@import "buttons"; @import 'buttons';
@import "forms"; @import 'forms';
// //
// Top Bar Variables // Top Bar Variables
@ -33,7 +33,7 @@ $topbar-link-weight: $font-weight-normal !default;
$topbar-link-font-size: rem-calc(13) !default; $topbar-link-font-size: rem-calc(13) !default;
$topbar-link-hover-lightness: -10% !default; // Darken by 10% $topbar-link-hover-lightness: -10% !default; // Darken by 10%
$topbar-link-bg: $topbar-bg !default; $topbar-link-bg: $topbar-bg !default;
$topbar-link-bg-hover: $oil !default; $topbar-link-bg-hover: $jet !default;
$topbar-link-bg-color-hover: $charcoal !default; $topbar-link-bg-color-hover: $charcoal !default;
$topbar-link-bg-active: $primary-color !default; $topbar-link-bg-active: $primary-color !default;
$topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default; $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default;
@ -42,7 +42,7 @@ $topbar-link-text-transform: none !default;
$topbar-link-padding: ($topbar-height / 3) !default; $topbar-link-padding: ($topbar-height / 3) !default;
$topbar-back-link-size: rem-calc(18) !default; $topbar-back-link-size: rem-calc(18) !default;
$topbar-link-dropdown-padding: rem-calc(20) !default; $topbar-link-dropdown-padding: rem-calc(20) !default;
$topbar-button-font-size: 0.75rem !default; $topbar-button-font-size: .75rem !default;
$topbar-button-top: 7px !default; $topbar-button-top: 7px !default;
// Style the top bar dropdown elements // Style the top bar dropdown elements
@ -50,11 +50,11 @@ $topbar-dropdown-bg: $oil !default;
$topbar-dropdown-link-color: $white !default; $topbar-dropdown-link-color: $white !default;
$topbar-dropdown-link-color-hover: $topbar-link-color-hover !default; $topbar-dropdown-link-color-hover: $topbar-link-color-hover !default;
$topbar-dropdown-link-bg: $oil !default; $topbar-dropdown-link-bg: $oil !default;
$topbar-dropdown-link-bg-hover: $oil !default; $topbar-dropdown-link-bg-hover: $jet !default;
$topbar-dropdown-link-weight: $font-weight-normal !default; $topbar-dropdown-link-weight: $font-weight-normal !default;
$topbar-dropdown-toggle-size: 5px !default; $topbar-dropdown-toggle-size: 5px !default;
$topbar-dropdown-toggle-color: $white !default; $topbar-dropdown-toggle-color: $white !default;
$topbar-dropdown-toggle-alpha: 0.4 !default; $topbar-dropdown-toggle-alpha: .4 !default;
$topbar-dropdown-label-color: $monsoon !default; $topbar-dropdown-label-color: $monsoon !default;
$topbar-dropdown-label-text-transform: uppercase !default; $topbar-dropdown-label-text-transform: uppercase !default;
@ -76,7 +76,7 @@ $topbar-menu-icon-position: $opposite-direction !default; // Change to $default-
$topbar-transition-speed: 300ms !default; $topbar-transition-speed: 300ms !default;
// Using rem-calc for the below breakpoint causes issues with top bar // Using rem-calc for the below breakpoint causes issues with top bar
$topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout $topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout
$topbar-media-query: $medium-up !default; $topbar-media-query: "#{$screen} and (min-width:#{lower-bound($topbar-breakpoint)})";
// Top-bar input styles // Top-bar input styles
$topbar-input-height: rem-calc(28) !default; $topbar-input-height: rem-calc(28) !default;
@ -93,13 +93,13 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
// Accessibility mixins for hiding and showing the menu dropdown items // Accessibility mixins for hiding and showing the menu dropdown items
@mixin topbar-hide-dropdown { @mixin topbar-hide-dropdown {
// Makes an element visually hidden by default, but visible when focused. // Makes an element visually hidden by default, but visible when focused.
display: block;
@include element-invisible(); @include element-invisible();
display: block;
} }
@mixin topbar-show-dropdown { @mixin topbar-show-dropdown {
display: block;
@include element-invisible-off(); @include element-invisible-off();
display: block;
position: absolute !important; // Reset the position from static to absolute position: absolute !important; // Reset the position from static to absolute
} }
@ -120,67 +120,76 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
width: 100%; width: 100%;
background: $topbar-bg; background: $topbar-bg;
.top-bar { margin-bottom: $topbar-margin-bottom; } .top-bar {
margin-bottom: $topbar-margin-bottom;
}
} }
// Wrapped around .top-bar to make it stick to the top // Wrapped around .top-bar to make it stick to the top
.fixed { .fixed {
width: 100%;
#{$default-float}: 0;
position: fixed; position: fixed;
top: 0; top: 0;
width: 100%;
z-index: 99; z-index: 99;
#{$default-float}: 0;
&.expanded:not(.top-bar) { &.expanded:not(.top-bar) {
overflow-y: auto;
height: auto; height: auto;
width: 100%;
max-height: 100%; max-height: 100%;
overflow-y: auto;
width: 100%;
.title-area { .title-area {
position: fixed; position: fixed;
width: 100%; width: 100%;
z-index: 99; z-index: 99;
} }
// Ensure you can scroll the menu on small screens // Ensure you can scroll the menu on small screens
.top-bar-section { .top-bar-section {
z-index: 98;
margin-top: $topbar-height; margin-top: $topbar-height;
z-index: 98;
} }
} }
} }
.top-bar { .top-bar {
overflow: hidden; background: $topbar-bg;
height: $topbar-height; height: $topbar-height;
line-height: $topbar-height; line-height: $topbar-height;
position: relative;
background: $topbar-bg;
margin-bottom: $topbar-margin-bottom; margin-bottom: $topbar-margin-bottom;
overflow: hidden;
position: relative;
// Topbar Global list Styles // Topbar Global list Styles
ul { ul {
margin-bottom: 0;
list-style: none; list-style: none;
margin-bottom: 0;
} }
.row { max-width: none; } .row {
max-width: none;
}
form, form,
input { margin-bottom: 0; } input,
select {
margin-bottom: 0;
}
input { input,
height: $topbar-input-height; select {
padding-top: .35rem; font-size: $topbar-button-font-size;
padding-bottom: .35rem; height: $topbar-input-height;
font-size: $topbar-button-font-size; padding-bottom: .35rem;
padding-top: .35rem;
} }
.button, button { .button, button {
padding-top: .35rem + rem-calc(1);
padding-bottom: .35rem + rem-calc(1);
margin-bottom: 0;
font-size: $topbar-button-font-size; font-size: $topbar-button-font-size;
margin-bottom: 0;
padding-bottom: .35rem + rem-calc(1);
padding-top: .35rem + rem-calc(1);
// position: relative; // position: relative;
// top: -1px; // top: -1px;
@ -193,26 +202,26 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
// Title Area // Title Area
.title-area { .title-area {
position: relative;
margin: 0; margin: 0;
position: relative;
} }
.name { .name {
font-size: $rem-base;
height: $topbar-height; height: $topbar-height;
margin: 0; margin: 0;
font-size: $rem-base;
// @if $topbar-menu-icon-position == $default-float {float: $opposite-direction;}
h1, h2, h3, h4, p, span { h1, h2, h3, h4, p, span {
line-height: $topbar-height;
font-size: $topbar-title-font-size; font-size: $topbar-title-font-size;
line-height: $topbar-height;
margin: 0; margin: 0;
a { a {
font-weight: $topbar-title-weight;
color: $topbar-link-color; color: $topbar-link-color;
width: 75%;
display: block; display: block;
font-weight: $topbar-title-weight;
padding: 0 $topbar-link-padding; padding: 0 $topbar-link-padding;
width: 75%;
} }
} }
} }
@ -225,59 +234,50 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
a { a {
color: $topbar-link-color; color: $topbar-link-color;
text-transform: $topbar-menu-link-transform; display: block;
font-size: $topbar-menu-link-font-size; font-size: $topbar-menu-link-font-size;
font-weight: $topbar-menu-link-weight; font-weight: $topbar-menu-link-weight;
position: relative;
display: block;
padding: 0 $topbar-link-padding;
height: $topbar-height; height: $topbar-height;
line-height: $topbar-height; line-height: $topbar-height;
padding: 0 $topbar-link-padding;
position: relative;
text-transform: $topbar-menu-link-transform;
} }
// Adding the class "menu-icon" will add the 3-line icon people love and adore. // Adding the class "menu-icon" will add the 3-line icon people love and adore.
&.menu-icon { &.menu-icon {
top: 50%;
margin-top: -16px; margin-top: -16px;
top: 50%;
a { a {
@include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, "", false);
@if $text-direction == rtl { @if $text-direction == rtl {
text-indent: -58px; text-indent: -58px;
} }
color: $topbar-menu-link-color;
height: 34px; height: 34px;
line-height: 33px; line-height: 33px;
padding: 0 $topbar-link-padding+rem-calc(25) 0 $topbar-link-padding; padding: 0 $topbar-link-padding+rem-calc(25) 0 $topbar-link-padding;
color: $topbar-menu-link-color;
position: relative; position: relative;
& {
// @include hamburger icon
//
// We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon
// $width - Width of hamburger icon
// $left - If false, icon will be centered horizontally || explicitly set value in rem
// $top - If false, icon will be centered vertically || explicitly set value in rem
// $thickness - thickness of lines in hamburger icon, set value in px
// $gap - spacing between the lines in hamburger icon, set value in px
// $color - icon color
// $hover-color - icon color during hover, here it isn't set b/c it would override $topbar-menu-icon-color-toggled
// $offcanvas - Set to false of @include in topbar
@include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, "", false);
}
} }
} }
} }
// Change things up when the top-bar is expanded // Change things up when the top-bar is expanded
&.expanded { &.expanded {
height: auto;
background: transparent; background: transparent;
height: auto;
.title-area { background: $topbar-bg; } .title-area {
background: $topbar-bg;
}
.toggle-topbar { .toggle-topbar {
a { color: $topbar-menu-link-color-toggled; a {
span::after { color: $topbar-menu-link-color-toggled;
span::after {
// Shh, don't tell, but box-shadows create the menu icon :) // Shh, don't tell, but box-shadows create the menu icon :)
// Change the color of the bars when the menu is expanded, using given thickness from hamburger() above // Change the color of the bars when the menu is expanded, using given thickness from hamburger() above
box-shadow: 0 0 0 1px $topbar-menu-icon-color-toggled, box-shadow: 0 0 0 1px $topbar-menu-icon-color-toggled,
@ -286,6 +286,21 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
} }
} }
// Fixes an issue with Desktop and Mobile Safari where deeply-nested menus don't appear
@media screen and (-webkit-min-device-pixel-ratio:0) {
.top-bar-section {
.has-dropdown.moved > .dropdown,
.dropdown {
clip: initial;
}
// This was needed as parent ul's had padding, and the clip: was allowing content to peak through
.has-dropdown:not(.moved) > ul {
padding: 0;
}
}
}
} }
} }
@ -297,12 +312,12 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
@include single-transition($default-float, $topbar-transition-speed); @include single-transition($default-float, $topbar-transition-speed);
ul { ul {
padding: 0;
width: 100%;
height: auto;
display: block; display: block;
font-size: $rem-base; font-size: $rem-base;
height: auto;
margin: 0; margin: 0;
padding: 0;
width: 100%;
} }
.divider, .divider,
@ -315,54 +330,60 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
ul li { ul li {
background: $topbar-dropdown-bg; background: $topbar-dropdown-bg;
& > a {
display: block; > a {
width: 100%;
color: $topbar-link-color; color: $topbar-link-color;
padding: 12px 0 12px 0; display: block;
padding-#{$default-float}: $topbar-link-padding;
font-family: $topbar-link-font-family; font-family: $topbar-link-font-family;
font-size: $topbar-link-font-size; font-size: $topbar-link-font-size;
font-weight: $topbar-link-weight; font-weight: $topbar-link-weight;
padding-#{$default-float}: $topbar-link-padding;
padding: 12px 0 12px $topbar-link-padding;
text-transform: $topbar-link-text-transform; text-transform: $topbar-link-text-transform;
width: 100%;
&.button { &.button {
font-size: $topbar-link-font-size; font-size: $topbar-link-font-size;
padding-#{$opposite-direction}: $topbar-link-padding;
padding-#{$default-float}: $topbar-link-padding; padding-#{$default-float}: $topbar-link-padding;
padding-#{$opposite-direction}: $topbar-link-padding;
@include button-style($bg:$primary-color); @include button-style($bg:$primary-color);
} }
&.button.secondary { @include button-style($bg:$secondary-color); } &.button.secondary { @include button-style($bg:$secondary-color); }
&.button.success { @include button-style($bg:$success-color); } &.button.success { @include button-style($bg:$success-color); }
&.button.alert { @include button-style($bg:$alert-color); } &.button.alert { @include button-style($bg:$alert-color); }
&.button.warning { @include button-style($bg:$warning-color); } &.button.warning { @include button-style($bg:$warning-color); }
&.button.info { @include button-style($bg:$info-color); }
} }
> button { > button {
font-size: $topbar-link-font-size; font-size: $topbar-link-font-size;
padding-#{$opposite-direction}: $topbar-link-padding;
padding-#{$default-float}: $topbar-link-padding; padding-#{$default-float}: $topbar-link-padding;
padding-#{$opposite-direction}: $topbar-link-padding;
@include button-style($bg:$primary-color); @include button-style($bg:$primary-color);
&.secondary { @include button-style($bg:$secondary-color); } &.secondary { @include button-style($bg:$secondary-color); }
&.success { @include button-style($bg:$success-color); } &.success { @include button-style($bg:$success-color); }
&.alert { @include button-style($bg:$alert-color); } &.alert { @include button-style($bg:$alert-color); }
&.warning { @include button-style($bg:$warning-color); } &.warning { @include button-style($bg:$warning-color); }
&.info { @include button-style($bg:$info-color); }
} }
// Apply the hover link color when it has that class // Apply the hover link color when it has that class
&:hover:not(.has-form) > a { &:hover:not(.has-form) > a {
background-color: $topbar-link-bg-color-hover; background-color: $topbar-link-bg-color-hover;
color: $topbar-link-color-hover;
@if ($topbar-link-bg-hover) { @if ($topbar-link-bg-hover) {
background: $topbar-link-bg-hover; background: $topbar-link-bg-hover;
} }
color: $topbar-link-color-hover;
} }
// Apply the active link color when it has that class // Apply the active link color when it has that class
&.active > a { &.active > a {
background: $topbar-link-bg-active; background: $topbar-link-bg-active;
color: $topbar-link-color-active; color: $topbar-link-color-active;
&:hover { &:hover {
background: $topbar-link-bg-active-hover; background: $topbar-link-bg-active-hover;
color: $topbar-link-color-active-hover; color: $topbar-link-color-active-hover;
@ -371,17 +392,20 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
// Add some extra padding for list items contains buttons // Add some extra padding for list items contains buttons
.has-form { padding: $topbar-link-padding; } .has-form {
padding: $topbar-link-padding;
}
// Styling for list items that have a dropdown within them. // Styling for list items that have a dropdown within them.
.has-dropdown { .has-dropdown {
position: relative; position: relative;
& > a { > a {
&:after { &:after {
@if ($topbar-arrows){ @if ($topbar-arrows) {
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float); @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float);
} }
margin-#{$opposite-direction}: $topbar-link-padding; margin-#{$opposite-direction}: $topbar-link-padding;
margin-top: -($topbar-dropdown-toggle-size / 2) - 2; margin-top: -($topbar-dropdown-toggle-size / 2) - 2;
position: absolute; position: absolute;
@ -390,12 +414,15 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
} }
&.moved { position: static; &.moved {
& > .dropdown { position: static;
> .dropdown {
@include topbar-show-dropdown(); @include topbar-show-dropdown();
width: 100%; width: 100%;
} }
& > a:after {
> a:after {
display: none; display: none;
} }
} }
@ -403,16 +430,16 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
// Styling elements inside of dropdowns // Styling elements inside of dropdowns
.dropdown { .dropdown {
@include topbar-hide-dropdown();
padding: 0; padding: 0;
position: absolute; position: absolute;
#{$default-float}: 100%;
top: 0; top: 0;
z-index: 99; z-index: 99;
@include topbar-hide-dropdown(); #{$default-float}: 100%;
li { li {
width: 100%;
height: auto; height: auto;
width: 100%;
a { a {
font-weight: $topbar-dropdown-link-weight; font-weight: $topbar-dropdown-link-weight;
@ -422,7 +449,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
} }
&.title h5, &.parent-link { &.title h5,
&.parent-link {
// Back Button // Back Button
margin-bottom: 0; margin-bottom: 0;
margin-top: 0; margin-top: 0;
@ -434,17 +462,24 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
&:hover { background:none; } &:hover { background:none; }
} }
} }
&.has-form { padding: 8px $topbar-link-padding; }
.button, button { top: auto; } &.has-form {
padding: 8px $topbar-link-padding;
}
.button,
button {
top: auto;
}
} }
label { label {
padding: 8px $topbar-link-padding 2px;
margin-bottom: 0;
text-transform: $topbar-dropdown-label-text-transform;
color: $topbar-dropdown-label-color; color: $topbar-dropdown-label-color;
font-weight: $topbar-dropdown-label-font-weight;
font-size: $topbar-dropdown-label-font-size; font-size: $topbar-dropdown-label-font-size;
font-weight: $topbar-dropdown-label-font-weight;
margin-bottom: 0;
padding: 8px $topbar-link-padding 2px;
text-transform: $topbar-dropdown-label-text-transform;
} }
} }
} }
@ -455,8 +490,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
// Top Bar styles intended for screen sizes above the breakpoint. // Top Bar styles intended for screen sizes above the breakpoint.
@media #{$topbar-media-query} { @media #{$topbar-media-query} {
.top-bar { .top-bar {
background: $topbar-bg;
@include clearfix; @include clearfix;
background: $topbar-bg;
overflow: visible; overflow: visible;
.toggle-topbar { display: none; } .toggle-topbar { display: none; }
@ -470,21 +505,24 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
.name h6 a { width: auto; } .name h6 a { width: auto; }
input, input,
select,
.button, .button,
button { button {
font-size: rem-calc(14); font-size: rem-calc(14);
position: relative;
height: $topbar-input-height; height: $topbar-input-height;
position: relative;
top: (($topbar-height - $topbar-input-height) / 2); top: (($topbar-height - $topbar-input-height) / 2);
} }
&.expanded { background: $topbar-bg; } &.expanded {
background: $topbar-bg;
}
} }
.contain-to-grid .top-bar { .contain-to-grid .top-bar {
max-width: $row-width;
margin: 0 auto;
margin-bottom: $topbar-margin-bottom; margin-bottom: $topbar-margin-bottom;
margin: 0 auto;
max-width: $row-width;
} }
.top-bar-section { .top-bar-section {
@ -492,9 +530,9 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
#{$default-float}: 0 !important; #{$default-float}: 0 !important;
ul { ul {
width: auto;
height: auto !important;
display: inline; display: inline;
height: auto !important;
width: auto;
li { li {
float: $default-float; float: $default-float;
@ -512,11 +550,12 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
color: $topbar-link-color-hover; color: $topbar-link-color-hover;
} }
} }
&:not(.has-form) { &:not(.has-form) {
a:not(.button) { a:not(.button) {
padding: 0 $topbar-link-padding;
line-height: $topbar-height;
background: $topbar-link-bg; background: $topbar-link-bg;
line-height: $topbar-height;
padding: 0 $topbar-link-padding;
&:hover { &:hover {
background-color: $topbar-link-bg-color-hover; background-color: $topbar-link-bg-color-hover;
@if ($topbar-link-bg-hover) { @if ($topbar-link-bg-hover) {
@ -525,12 +564,13 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
} }
} }
&.active:not(.has-form) { &.active:not(.has-form) {
a:not(.button) { a:not(.button) {
padding: 0 $topbar-link-padding;
line-height: $topbar-height;
color: $topbar-link-color-active;
background: $topbar-link-bg-active; background: $topbar-link-bg-active;
color: $topbar-link-color-active;
line-height: $topbar-height;
padding: 0 $topbar-link-padding;
&:hover { &:hover {
background: $topbar-link-bg-active-hover; background: $topbar-link-bg-active-hover;
color: $topbar-link-color-active-hover; color: $topbar-link-color-active-hover;
@ -540,8 +580,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
.has-dropdown { .has-dropdown {
@if($topbar-arrows){ @if $topbar-arrows {
& > a { > a {
padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important; padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important;
&:after { &:after {
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top); @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
@ -552,30 +592,30 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
&.moved { position: relative; &.moved { position: relative;
& > .dropdown { > .dropdown {
@include topbar-hide-dropdown(); @include topbar-hide-dropdown();
} }
} }
&.hover, &.not-click:hover { &.hover, &.not-click:hover {
& > .dropdown { > .dropdown {
@include topbar-show-dropdown(); @include topbar-show-dropdown();
} }
} }
> a:focus + .dropdown { > a:focus + .dropdown {
@include topbar-show-dropdown(); @include topbar-show-dropdown();
} }
.dropdown li.has-dropdown { .dropdown li.has-dropdown {
& > a { > a {
@if ($topbar-dropdown-arrows){ @if ($topbar-dropdown-arrows) {
&:after { &:after {
border: none; border: none;
content: "\00bb"; content: "\00bb";
top: 1rem; top: rem-calc(3);
margin-top: -1px;
#{$opposite-direction}: 5px; #{$opposite-direction}: 5px;
line-height: 1.2;
} }
} }
} }
@ -584,28 +624,28 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
.dropdown { .dropdown {
#{$default-float}: 0; #{$default-float}: 0;
top: auto;
background: transparent; background: transparent;
min-width: 100%; min-width: 100%;
top: auto;
li { li {
a { a {
background: $topbar-dropdown-link-bg;
color: $topbar-dropdown-link-color; color: $topbar-dropdown-link-color;
line-height: $topbar-height; line-height: $topbar-height;
white-space: nowrap;
padding: 12px $topbar-link-padding; padding: 12px $topbar-link-padding;
background: $topbar-dropdown-link-bg; white-space: nowrap;
} }
&:not(.has-form):not(.active) { &:not(.has-form):not(.active) {
& > a:not(.button) { > a:not(.button) {
color: $topbar-dropdown-link-color;
background: $topbar-dropdown-link-bg; background: $topbar-dropdown-link-bg;
color: $topbar-dropdown-link-color;
} }
&:hover > a:not(.button) { &:hover > a:not(.button) {
color: $topbar-dropdown-link-color-hover;
background-color: $topbar-link-bg-color-hover; background-color: $topbar-link-bg-color-hover;
color: $topbar-dropdown-link-color-hover;
@if ($topbar-dropdown-link-bg-hover) { @if ($topbar-dropdown-link-bg-hover) {
background: $topbar-dropdown-link-bg-hover; background: $topbar-dropdown-link-bg-hover;
} }
@ -613,8 +653,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
label { label {
white-space: nowrap;
background: $topbar-dropdown-label-bg; background: $topbar-dropdown-label-bg;
white-space: nowrap;
} }
// Second Level Dropdowns // Second Level Dropdowns
@ -625,11 +665,11 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
} }
} }
& > ul > .divider, > ul > .divider,
& > ul > [role="separator"] { > ul > [role="separator"] {
border-#{$opposite-direction}: $topbar-divider-border-bottom;
border-bottom: none; border-bottom: none;
border-top: none; border-top: none;
border-#{$opposite-direction}: $topbar-divider-border-bottom;
clear: none; clear: none;
height: $topbar-height; height: $topbar-height;
width: 0; width: 0;
@ -637,8 +677,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
.has-form { .has-form {
background: $topbar-link-bg; background: $topbar-link-bg;
padding: 0 $topbar-link-padding;
height: $topbar-height; height: $topbar-height;
padding: 0 $topbar-link-padding;
} }
// Position overrides for ul.right and ul.left // Position overrides for ul.right and ul.left
@ -682,10 +722,11 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
.has-dropdown { .has-dropdown {
&:hover { &:hover {
& > .dropdown { > .dropdown {
@include topbar-show-dropdown(); @include topbar-show-dropdown();
} }
} }
> a:focus + .dropdown { > a:focus + .dropdown {
@include topbar-show-dropdown(); @include topbar-show-dropdown();
} }

38
assets/scss/foundation/components/_type.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
$include-html-type-classes: $include-html-classes !default; $include-html-type-classes: $include-html-classes !default;
@ -216,8 +216,8 @@ $align-class-breakpoints:
/* Default Link Styles */ /* Default Link Styles */
a { a {
color: $anchor-font-color; color: $anchor-font-color;
text-decoration: $anchor-text-decoration;
line-height: inherit; line-height: inherit;
text-decoration: $anchor-text-decoration;
&:hover, &:hover,
&:focus { &:focus {
@ -233,8 +233,8 @@ $align-class-breakpoints:
/* Default paragraph styles */ /* Default paragraph styles */
p { p {
font-family: $paragraph-font-family; font-family: $paragraph-font-family;
font-weight: $paragraph-font-weight;
font-size: $paragraph-font-size; font-size: $paragraph-font-size;
font-weight: $paragraph-font-weight;
line-height: $paragraph-line-height; line-height: $paragraph-line-height;
margin-bottom: $paragraph-margin-bottom; margin-bottom: $paragraph-margin-bottom;
text-rendering: $paragraph-text-rendering; text-rendering: $paragraph-text-rendering;
@ -243,25 +243,25 @@ $align-class-breakpoints:
& aside { & aside {
font-size: $paragraph-aside-font-size; font-size: $paragraph-aside-font-size;
line-height: $paragraph-aside-line-height;
font-style: $paragraph-aside-font-style; font-style: $paragraph-aside-font-style;
line-height: $paragraph-aside-line-height;
} }
} }
/* Default header styles */ /* Default header styles */
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
color: $header-font-color;
font-family: $header-font-family; font-family: $header-font-family;
font-weight: $header-font-weight;
font-style: $header-font-style; font-style: $header-font-style;
color: $header-font-color; font-weight: $header-font-weight;
text-rendering: $header-text-rendering;
margin-top: $header-top-margin;
margin-bottom: $header-bottom-margin;
line-height: $header-line-height; line-height: $header-line-height;
margin-bottom: $header-bottom-margin;
margin-top: $header-top-margin;
text-rendering: $header-text-rendering;
small { small {
font-size: $small-font-size;
color: $small-font-color; color: $small-font-color;
font-size: $small-font-size;
line-height: 0; line-height: 0;
} }
} }
@ -279,8 +279,8 @@ $align-class-breakpoints:
border: $hr-border-style $hr-border-color; border: $hr-border-style $hr-border-color;
border-width: $hr-border-width 0 0; border-width: $hr-border-width 0 0;
clear: both; clear: both;
margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width));
height: 0; height: 0;
margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width));
} }
/* Helpful Typography Defaults */ /* Helpful Typography Defaults */
@ -302,13 +302,13 @@ $align-class-breakpoints:
} }
code { code {
font-family: $code-font-family;
font-weight: $code-font-weight;
color: $code-color;
background-color: $code-background-color; background-color: $code-background-color;
border-width: $code-border-size;
border-style: $code-border-style;
border-color: $code-border-color; border-color: $code-border-color;
border-style: $code-border-style;
border-width: $code-border-size;
color: $code-color;
font-family: $code-font-family;
font-weight: $code-font-weight;
padding: $code-padding; padding: $code-padding;
} }
@ -316,11 +316,11 @@ $align-class-breakpoints:
ul, ul,
ol, ol,
dl { dl {
font-family: $list-font-family;
font-size: $list-font-size; font-size: $list-font-size;
line-height: $list-line-height; line-height: $list-line-height;
margin-bottom: $list-margin-bottom;
list-style-position: $list-style-position; list-style-position: $list-style-position;
font-family: $list-font-family; margin-bottom: $list-margin-bottom;
} }
ul { ul {
@ -452,7 +452,7 @@ $align-class-breakpoints:
@media #{$medium-up} { @media #{$medium-up} {
h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; } h1, h2, h3, h4, h5, h6 { line-height: $header-line-height; }
h1 { font-size: $h1-font-size; } h1 { font-size: $h1-font-size; }
h2 { font-size: $h2-font-size; } h2 { font-size: $h2-font-size; }
h3 { font-size: $h3-font-size; } h3 { font-size: $h3-font-size; }

28
assets/scss/foundation/components/_visibility.scss

@ -2,7 +2,7 @@
// foundation.zurb.com // foundation.zurb.com
// Licensed under MIT Open Source // Licensed under MIT Open Source
@import "global"; @import 'global';
// //
// Foundation Visibility Classes // Foundation Visibility Classes
@ -276,8 +276,8 @@ $visibility-breakpoint-queries:
} }
} }
@include exports("visibility"){
@if $include-html-visibility-classes != false { @if $include-html-visibility-classes != false {
@include visibility-loop; @include visibility-loop;
@ -390,6 +390,19 @@ $visibility-breakpoint-queries:
th.hide-for-touch { display: table-cell !important; } th.hide-for-touch { display: table-cell !important; }
.touch th.show-for-touch { display: table-cell !important; } .touch th.show-for-touch { display: table-cell !important; }
/* Screen reader-specific classes */
.show-for-sr {
@include element-invisible;
}
.show-on-focus {
@include element-invisible;
&:focus,
&:active {
@include element-invisible-off;
}
}
// Only include these styles if you want them. // Only include these styles if you want them.
@if $include-print-styles { @if $include-print-styles {
/* /*
@ -402,8 +415,8 @@ $visibility-breakpoint-queries:
@media print { @media print {
* { * {
background: transparent !important; background: transparent !important;
color: $black !important; /* Black prints faster: h5bp.com/s */
box-shadow: none !important; box-shadow: none !important;
color: $black !important; /* Black prints faster: h5bp.com/s */
text-shadow: none !important; text-shadow: none !important;
} }
.show-for-print { display: block; } .show-for-print { display: block; }
@ -440,7 +453,7 @@ $visibility-breakpoint-queries:
img { max-width: 100% !important; } img { max-width: 100% !important; }
@page { margin: 0.5cm; } @page { margin: .5cm; }
p, p,
h2, h2,
@ -470,5 +483,10 @@ $visibility-breakpoint-queries:
tr.show-for-print { display: table-row !important; } tr.show-for-print { display: table-row !important; }
td.show-for-print { display: table-cell !important; } td.show-for-print { display: table-cell !important; }
th.show-for-print { display: table-cell !important; } th.show-for-print { display: table-cell !important; }
}
@media not print{
.show-for-print { display: none !important; }
}
} }
} }

1
assets/scss/style.scss

@ -256,6 +256,7 @@ body {
} }
.post-view-content { .post-view-content {
margin-top: rem-calc(60); margin-top: rem-calc(60);
overflow-x: hidden;
} }
.post-meta { .post-meta {
font-family: $headers-font; font-family: $headers-font;

2
default.hbs

@ -15,7 +15,7 @@
{{! Styles - Foundation 5 included}} {{! Styles - Foundation 5 included}}
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900"> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic">
{{!-- styles for syntax highlighter you will find more here: https://github.com/isagalaev/highlight.js/tree/master/src/styles just change .min.css file name below --}} {{!-- styles for syntax highlighter you will find more here: https://github.com/isagalaev/highlight.js/tree/master/src/styles just change .min.css file name below --}}

8
package.json

@ -1,10 +1,10 @@
{ {
"name": "Abc", "name": "Abc",
"version": "1.5.0", "version": "1.5.1",
"devDependencies": { "devDependencies": {
"load-grunt-tasks": "~3.1.0", "load-grunt-tasks": "~3.2.0",
"node-sass": "~2.1.1", "node-sass": "~3.2.0",
"grunt-sass": "~0.18.1", "grunt-sass": "~1.0.0",
"grunt": "~0.4.5", "grunt": "~0.4.5",
"grunt-contrib-watch": "~0.6.1" "grunt-contrib-watch": "~0.6.1"
} }

Loading…
Cancel
Save