vendor/assets/stylesheets/foundation/_settings.scss in foundation-rails-5.0.2.0 vs vendor/assets/stylesheets/foundation/_settings.scss in foundation-rails-5.0.3.0

- old
+ new

@@ -1,12 +1,15 @@ -// +// // FOUNDATION SETTINGS // -// Uncomment to use rem-calc() in your settings -// @import "foundation/functions"; +// This is the default html and body font-size for the base rem value. +// $rem-base: 16px; +// Allows the use of rem-calc() or lower-bound() in your settings +@import "foundation/functions"; + // $experimental: true; // The default font-size is set to 100% of the browser style sheet (usually 16px) // for compatibility with brower-based text zoom or user-set defaults. @@ -16,13 +19,10 @@ // $base-font-size: 100%; // The $base-line-height is 100% while $base-font-size is 150% // $base-line-height: 150%; -// This is the default html and body font-size for the base rem value. -// $rem-base: 16px; - // We use this to control whether or not CSS classes come through in the gem files. // $include-html-classes: true; // $include-print-styles: true; // $include-html-global-classes: $include-html-classes; @@ -109,12 +109,12 @@ // $include-html-accordion-classes: $include-html-classes; // $accordion-navigation-padding: rem-calc(16); // $accordion-navigation-bg-color: #efefef ; -// $accordion-navigation-hover-bg-color: darken($accordion-navigation-bg-color, 5%); -// $accordion-navigation-active-bg-color: darken($accordion-navigation-bg-color, 3%); +// $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%); +// $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%); // $accordion-navigation-font-color: #222; // $accordion-navigation-font-size: rem-calc(16); // $accordion-navigation-font-family: $body-font-family; // $accordion-content-padding: $column-gutter/2; @@ -132,19 +132,19 @@ // We use these to control text style. // $alert-font-weight: normal; // $alert-font-size: rem-calc(13); // $alert-font-color: #fff; -// $alert-font-color-alt: darken($secondary-color, 60%); +// $alert-font-color-alt: scale-color($secondary-color, $lightness: -66%); // We use this for close hover effect. -// $alert-function-factor: 5%; +// $alert-function-factor: -14%; // We use these to control border styles. // $alert-border-style: solid; // $alert-border-width: 1px; -// $alert-border-color: darken($primary-color, $alert-function-factor); +// $alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor); // $alert-bottom-margin: rem-calc(20); // We use these to style the close buttons // $alert-close-color: #333; // $alert-close-top: 50%; @@ -171,21 +171,21 @@ // Breadcrumbs // $include-html-nav-classes: $include-html-classes; // We use this to set the background color for the breadcrumb container. -// $crumb-bg: lighten($secondary-color, 5%); +// $crumb-bg: scale-color($secondary-color, $lightness: 55%); // We use these to set the padding around the breadcrumbs. // $crumb-padding: rem-calc(9 14 9); // $crumb-side-padding: rem-calc(12); // We use these to control border styles. -// $crumb-function-factor: 10%; +// $crumb-function-factor: -10%; // $crumb-border-size: 1px; // $crumb-border-style: solid; -// $crumb-border-color: darken($crumb-bg, $crumb-function-factor); +// $crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor); // $crumb-radius: $global-radius; // We use these to set various text styles for breadcrumbs. // $crumb-font-size: rem-calc(11); // $crumb-font-color: $primary-color; @@ -196,10 +196,51 @@ // We use these to control the slash between breadcrumbs // $crumb-slash-color: #aaa; // $crumb-slash: "/"; +// +// BUTTONS +// + +// $include-html-button-classes: $include-html-classes; + +// We use these to build padding for buttons. +// $button-tny: rem-calc(10); +// $button-sml: rem-calc(14); +// $button-med: rem-calc(16); +// $button-lrg: rem-calc(18); + +// We use this to control the display property. +// $button-display: inline-block; +// $button-margin-bottom: rem-calc(20); + +// We use these to control button text styles. +// $button-font-family: $body-font-family; +// $button-font-color: #fff; +// $button-font-color-alt: #333; +// $button-font-tny: rem-calc(11); +// $button-font-sml: rem-calc(13); +// $button-font-med: rem-calc(16); +// $button-font-lrg: rem-calc(20); +// $button-font-weight: normal; +// $button-font-align: center; + +// We use these to control various hover effects. +// $button-function-factor: 5%; + +// We use these to control button border styles. +// $button-border-width: 1px; +// $button-border-style: solid; + +// We use this to set the default radius used throughout the core. +// $button-radius: $global-radius; +// $button-round: $global-rounded; + +// We use this to set default opacity for disabled buttons. +// $button-disabled-opacity: 0.7; + // Button Groups // $include-html-button-classes: $include-html-classes; // Sets the margin for the right side by default, and the left margin if right-to-left direction is used @@ -235,11 +276,11 @@ // $clearing-carousel-thumb-width: 120px; // $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255); // Dropdown -// $include-html-button-classes: $include-html-classes; +// $include-html-dropdown-classes: $include-html-classes; // We use these to controls height and width styles. // $f-dropdown-max-width: 200px; // $f-dropdown-height: auto; // $f-dropdown-max-height: none; @@ -249,11 +290,11 @@ // $f-dropdown-bg: #fff; // We use this to set the border styles for dropdowns. // $f-dropdown-border-style: solid; // $f-dropdown-border-width: 1px; -// $f-dropdown-border-color: darken(#fff, 20%); +// $f-dropdown-border-color: scale-color(#fff, $lightness: -20%); // We use these to style the triangle pip. // $f-dropdown-triangle-size: 6px; // $f-dropdown-triangle-color: #fff; // $f-dropdown-triangle-side-offset: 10px; @@ -328,19 +369,19 @@ // We use these to style the labels in different ways // $form-label-pointer: pointer; // $form-label-font-size: rem-calc(14); // $form-label-font-weight: normal; -// $form-label-font-color: lighten(#000, 30%); +// $form-label-font-color: scale-color(#000, $lightness: 30%); // $form-label-bottom-margin: rem-calc(8); // $input-font-family: inherit; // $input-font-color: rgba(0,0,0,0.75); // $input-font-size: rem-calc(14); // $input-bg-color: #fff; -// $input-focus-bg-color: darken(#fff, 2%); -// $input-border-color: darken(#fff, 20%); -// $input-focus-border-color: darken(#fff, 40%); +// $input-focus-bg-color: scale-color(#fff, $lightness: -2%); +// $input-border-color: scale-color(#fff, $lightness: -20%); +// $input-focus-border-color: scale-color(#fff, $lightness: -40%); // $input-border-style: solid; // $input-border-width: 1px; // $input-disabled-bg: #ddd; // $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); // $input-include-glowing-effect: true; @@ -356,12 +397,12 @@ // $legend-bg: #fff; // $legend-font-weight: bold; // $legend-padding: rem-calc(0 3); // We use these to style the prefix and postfix input elements -// $input-prefix-bg: darken(#fff, 5%); -// $input-prefix-border-color: darken(#fff, 20%); +// $input-prefix-bg: scale-color(#fff, $lightness: -5%); +// $input-prefix-border-color: scale-color(#fff, $lightness: -20%); // $input-prefix-border-size: 1px; // $input-prefix-border-type: solid; // $input-prefix-overflow: hidden; // $input-prefix-font-color: #333; // $input-prefix-font-color-alt: #fff; @@ -378,11 +419,11 @@ // We use this to style the glowing effect of inputs when focused // $glowing-effect-fade-time: 0.45s; // $glowing-effect-color: $input-focus-border-color; // Select variables -// $select-bg-color: #fafafa ; +// $select-bg-color: #fafafa; // Inline Lists // $include-html-inline-list-classes: $include-html-classes; @@ -443,20 +484,20 @@ // We use these to control text styles. // $keystroke-font: "Consolas", "Menlo", "Courier", monospace; // $keystroke-font-size: rem-calc(14); // $keystroke-font-color: #222; // $keystroke-font-color-alt: #fff; -// $keystroke-function-factor: 7%; +// $keystroke-function-factor: -7%; // We use this to control keystroke padding. // $keystroke-padding: rem-calc(2 4 0); // We use these to control background and border styles. -// $keystroke-bg: darken(#fff, $keystroke-function-factor); +// $keystroke-bg: scale-color(#fff, $lightness: $keystroke-function-factor); // $keystroke-border-style: solid; // $keystroke-border-width: 1px; -// $keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor); +// $keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor); // $keystroke-radius: $global-radius; // Labels // $include-html-label-classes: $include-html-classes; @@ -486,12 +527,12 @@ // $tabbar-line-height: $tabbar-height; // $tabbar-color: #FFF; // $tabbar-middle-padding: 0 rem-calc(10); // Off Canvas Divider Styles -// $tabbar-right-section-border: solid 1px lighten($tabbar-bg, 10%); -// $tabbar-left-section-border: solid 1px darken($tabbar-bg, 10%); +// $tabbar-right-section-border: solid 1px scale-color($tabbar-bg, $lightness: 13%); +// $tabbar-left-section-border: solid 1px scale-color($tabbar-bg, $lightness: -50%); // Off Canvas Tab Bar Headers // $tabbar-header-color: #FFF; // $tabbar-header-weight: bold; // $tabbar-header-line-height: $tabbar-height; @@ -505,20 +546,20 @@ // $off-canvas-label-padding: 0.3rem rem-calc(15); // $off-canvas-label-color: #999; // $off-canvas-label-text-transform: uppercase; // $off-canvas-label-font-weight: bold; // $off-canvas-label-bg: #444; -// $off-canvas-label-border-top: 1px solid lighten(#444, 10%); +// $off-canvas-label-border-top: 1px solid scale-color(#444, $lightness: 14%); // $off-canvas-label-border-bottom: none; // $off-canvas-label-margin:0; // $off-canvas-link-padding: rem-calc(10, 15); // $off-canvas-link-color: rgba(#FFF, 0.7); -// $off-canvas-link-border-bottom: 1px solid darken($off-canvas-bg, 5%); +// $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%); // Off Canvas Menu Icon Variables // $tabbar-menu-icon-color: #FFF; -// $tabbar-menu-icon-hover: darken($tabbar-menu-icon-color, 30%); +// $tabbar-menu-icon-hover: scale-color($tabbar-menu-icon-color, $lightness: -30%); // $tabbar-menu-icon-text-indent: rem-calc(35); // $tabbar-menu-icon-width: $tabbar-height; // $tabbar-menu-icon-height: $tabbar-height; // $tabbar-menu-icon-line-height: rem-calc(33); @@ -533,11 +574,11 @@ // $off-canvas-overlay-cursor: pointer; // $off-canvas-overlay-box-shadow: -4px 0 4px rgba(#000, 0.5), 4px 0 4px rgba(#000, 0.5); // $off-canvas-overlay-background: rgba(#FFF, 0.2); // $off-canvas-overlay-background-hover: rgba(#FFF, 0.05); -// Transition Variabls +// Transition Variables // $menu-slide: "transform 500ms ease"; // Orbit // $include-html-orbit-classes: $include-html-classes; @@ -546,11 +587,11 @@ // $orbit-container-bg: none; // $orbit-caption-bg: rgba(51,51,51, 0.8); // $orbit-caption-font-color: #fff; // $orbit-caption-font-size: rem-calc(14); // $orbit-caption-position: "bottom"; // Supported values: "bottom", "under" -// $orbit-caption-padding: rem-calc(10,14); +// $orbit-caption-padding: rem-calc(10 14); // $orbit-caption-height: auto; // We use these to control the left/right nav styles // $orbit-nav-bg: none; // $orbit-nav-bg-hover: rgba(0,0,0,0.3); @@ -591,11 +632,11 @@ // $pagination-li-margin: rem-calc(5); // We use these for the pagination anchor links // $pagination-link-pad: rem-calc(1 10 1); // $pagination-link-font-color: #999; -// $pagination-link-active-bg: darken(#fff, 10%); +// $pagination-link-active-bg: scale-color(#fff, $lightness: -10%); // We use these for disabled anchor links // $pagination-link-unavailable-cursor: default; // $pagination-link-unavailable-font-color: #999; // $pagination-link-unavailable-bg-active: transparent; @@ -610,17 +651,17 @@ // Panels // $include-html-panel-classes: $include-html-classes; // We use these to control the background and border styles -// $panel-bg: darken(#fff, 5%); +// $panel-bg: scale-color(#fff, $lightness: -5%); // $panel-border-style: solid; // $panel-border-size: 1px; // We use this % to control how much we darken things on hover -// $panel-function-factor: 10%; -// $panel-border-color: darken($panel-bg, $panel-function-factor); +// $panel-function-factor: -11%; +// $panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor); // We use these to set default inner padding and bottom margin // $panel-margin-bottom: rem-calc(20); // $panel-padding: rem-calc(20); @@ -690,11 +731,11 @@ // We use this to se the prog bar height // $progress-bar-height: rem-calc(25); // $progress-bar-color: #f6f6f6 ; // We use these to control the border styles -// $progress-bar-border-color: darken(#fff, 20%); +// $progress-bar-border-color: scale-color(#fff, $lightness: -20%); // $progress-bar-border-size: 1px; // $progress-bar-border-style: solid; // $progress-bar-border-radius: $global-radius; // We use these to control the margin & padding @@ -749,22 +790,22 @@ // $side-nav-list-position: inside; // $side-nav-list-margin: rem-calc(0 0 7 0); // We use these to control link styles. // $side-nav-link-color: $primary-color; -// $side-nav-link-color-active: lighten(#000, 30%); +// $side-nav-link-color-active: scale-color(#000, $lightness: 30%); // $side-nav-font-size: rem-calc(14); // $side-nav-font-weight: normal; // $side-nav-font-family: $body-font-family; // $side-nav-active-font-family: $side-nav-font-family; // We use these to control border styles // $side-nav-divider-size: 1px; // $side-nav-divider-style: solid; -// $side-nav-divider-color: darken(#fff, 10%); +// $side-nav-divider-color: scale-color(#fff, $lightness: -10%); // Split Buttons // $include-html-button-classes: $include-html-classes; @@ -815,25 +856,65 @@ // $sub-nav-font-size: rem-calc(14); // $sub-nav-font-color: #999; // $sub-nav-font-weight: normal; // $sub-nav-text-decoration: none; // $sub-nav-border-radius: 3px; -// $sub-nav-font-color-hover: darken($sub-nav-font-color, 15%); +// $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%); // We use these to control the active item styles // $sub-nav-active-font-weight: normal; // $sub-nav-active-bg: $primary-color; -// $sub-nav-active-bg-hover: darken($sub-nav-active-bg, 5%); +// $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%); // $sub-nav-active-color: #fff; // $sub-nav-active-padding: rem-calc(3 16); // $sub-nav-active-cursor: default; // $sub-nav-item-divider: ""; // $sub-nav-item-divider-margin: rem-calc(12); +// +// SWITCH +// + +// $include-html-form-classes: $include-html-classes; + +// Controlling border styles and background colors for the switch container +// $switch-border-color: scale-color(#fff, $lightness: -20%); +// $switch-border-style: solid; +// $switch-border-width: 1px; +// $switch-bg: #fff; + +// We use these to control the switch heights for our default classes +// $switch-height-tny: 22px; +// $switch-height-sml: 28px; +// $switch-height-med: 36px; +// $switch-height-lrg: 44px; +// $switch-bottom-margin: rem-calc(20); + +// We use these to control default font sizes for our classes. +// $switch-font-size-tny: 11px; +// $switch-font-size-sml: 12px; +// $switch-font-size-med: 14px; +// $switch-font-size-lrg: 17px; +// $switch-label-side-padding: 6px; + +// We use these to style the switch-paddle +// $switch-paddle-bg: #fff; +// $switch-paddle-fade-to-color: scale-color($switch-paddle-bg, $lightness: -10%); +// $switch-paddle-border-color: scale-color($switch-paddle-bg, $lightness: -35%); +// $switch-paddle-border-width: 1px; +// $switch-paddle-border-style: solid; +// $switch-paddle-transition-speed: .1s; +// $switch-paddle-transition-ease: ease-out; +// $switch-positive-color: scale-color($success-color, $lightness: 94%); +// $switch-negative-color: #f5f5f5; + +// Outline Style for tabbing through switches +// $switch-label-outline: 1px dotted #888; + // Tables // $include-html-table-classes: $include-html-classes; // These control the background color for the table and even rows @@ -868,11 +949,12 @@ // $include-html-tabs-classes: $include-html-classes; // $tabs-navigation-padding: rem-calc(16); // $tabs-navigation-bg-color: #efefef ; -// $tabs-navigation-hover-bg-color: darken($tabs-navigation-bg-color, 5%); +// $tabs-navigation-active-bg-color: #fff; +// $tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%); // $tabs-navigation-font-color: #222; // $tabs-navigation-font-size: rem-calc(16); // $tabs-navigation-font-family: $body-font-family; // $tabs-content-margin-bottom: rem-calc(24); @@ -904,11 +986,11 @@ // $include-html-tooltip-classes: $include-html-classes; // $has-tip-border-bottom: dotted 1px #ccc; // $has-tip-font-weight: bold; // $has-tip-font-color: #333; -// $has-tip-border-bottom-hover: dotted 1px darken($primary-color, 20%); +// $has-tip-border-bottom-hover: dotted 1px scale-color($primary-color, $lightness: -55%); // $has-tip-font-color-hover: $primary-color; // $has-tip-cursor-type: help; // $tooltip-padding: rem-calc(12); // $tooltip-bg: #333; @@ -935,20 +1017,19 @@ // Height and margin // $topbar-height: 45px; // $topbar-margin-bottom: 0; -// Control Input height for top bar - // Controlling the styles for the title in the top bar // $topbar-title-weight: normal; // $topbar-title-font-size: rem-calc(17); // Style the top bar dropdown elements // $topbar-dropdown-bg: #333; // $topbar-dropdown-link-color: #fff; // $topbar-dropdown-link-bg: #333; +// $topbar-dropdown-link-weight: normal; // $topbar-dropdown-toggle-size: 5px; // $topbar-dropdown-toggle-color: #fff; // $topbar-dropdown-toggle-alpha: 0.4; // Set the link colors and styles for top-level nav @@ -958,11 +1039,11 @@ // $topbar-link-weight: normal; // $topbar-link-font-size: rem-calc(13); // $topbar-link-hover-lightness: -10%; // Darken by 10% // $topbar-link-bg-hover: #272727 ; // $topbar-link-bg-active: $primary-color; -// $topbar-link-bg-active-hover: darken($primary-color, 5%); +// $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%); // $topbar-link-font-family: $body-font-family; // $topbar-button-font-size: 0.75rem; // $topbar-dropdown-label-color: #777; @@ -985,11 +1066,124 @@ // Using rem-calc for the below breakpoint causes issues with top bar // $topbar-breakpoint: #{upper-bound($medium-range)}; // Change to 9999px for always mobile layout // $topbar-media-query: "only screen and (min-width: #{upper-bound($medium-range)})"; // Divider Styles -// $topbar-divider-border-bottom: solid 1px lighten($topbar-bg-color, 10%); -// $topbar-divider-border-top: solid 1px darken($topbar-bg-color, 10%); +// $topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%); +// $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%); // Sticky Class // $topbar-sticky-class: ".sticky"; -// $topbar-arrows: true; //Set false to remove the triangle icon from the menu item \ No newline at end of file +// $topbar-arrows: true; //Set false to remove the triangle icon from the menu item + +// +// TYPOGRAPHY +// + +// $include-html-type-classes: $include-html-classes; +// $include-open-sans: true; + +// We use these to control header font styles +// $header-font-family: join("Open Sans", $body-font-family); +// $header-font-weight: 300; +// $header-font-style: normal; +// $header-font-color: #222; +// $header-line-height: 1.4; +// $header-top-margin: .2rem; +// $header-bottom-margin: .5rem; +// $header-text-rendering: optimizeLegibility; + +// We use these to control header font sizes +// $h1-font-size: rem-calc(44); +// $h2-font-size: rem-calc(37); +// $h3-font-size: rem-calc(27); +// $h4-font-size: rem-calc(23); +// $h5-font-size: rem-calc(18); +// $h6-font-size: 1rem; + +// These control how subheaders are styled. +// $subheader-line-height: 1.4; +// $subheader-font-color: scale-color($header-font-color, $lightness: 35%); +// $subheader-font-weight: 300; +// $subheader-top-margin: .2rem; +// $subheader-bottom-margin: .5rem; + +// A general <small> styling +// $small-font-size: 60%; +// $small-font-color: scale-color($header-font-color, $lightness: 35%); + +// We use these to style paragraphs +// $paragraph-font-family: inherit; +// $paragraph-font-weight: normal; +// $paragraph-font-size: 1rem; +// $paragraph-line-height: 1.6; +// $paragraph-margin-bottom: rem-calc(20); +// $paragraph-aside-font-size: rem-calc(14); +// $paragraph-aside-line-height: 1.35; +// $paragraph-aside-font-style: italic; +// $paragraph-text-rendering: optimizeLegibility; + +// We use these to style <code> tags +// $code-color: scale-color($alert-color, $lightness: -27%); +// $code-font-family: Consolas, 'Liberation Mono', Courier, monospace; +// $code-font-weight: bold; + +// We use these to style anchors +// $anchor-text-decoration: none; +// $anchor-font-color: $primary-color; +// $anchor-font-color-hover: scale-color($primary-color, $lightness: -14%); + +// We use these to style the <hr> element +// $hr-border-width: 1px; +// $hr-border-style: solid; +// $hr-border-color: #ddd; +// $hr-margin: rem-calc(20); + +// We use these to style lists +// $list-style-position: outside; +// $list-side-margin: 1.1rem; +// $list-ordered-side-margin: 1.4rem; +// $list-side-margin-no-bullet: 0; +// $list-nested-margin: rem-calc(20); +// $definition-list-header-weight: bold; +// $definition-list-header-margin-bottom: .3rem; +// $definition-list-margin-bottom: rem-calc(12); + +// We use these to style blockquotes +// $blockquote-font-color: scale-color($header-font-color, $lightness: 35%); +// $blockquote-padding: rem-calc(9 20 0 19); +// $blockquote-border: 1px solid #ddd; +// $blockquote-cite-font-size: rem-calc(13); +// $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%); +// $blockquote-cite-link-color: $blockquote-cite-font-color; + +// Acronym styles +// $acronym-underline: 1px dotted #ddd; + +// We use these to control padding and margin +// $microformat-padding: rem-calc(10 12); +// $microformat-margin: rem-calc(0 0 20 0); + +// We use these to control the border styles +// $microformat-border-width: 1px; +// $microformat-border-style: solid; +// $microformat-border-color: #ddd; + +// We use these to control full name font styles +// $microformat-fullname-font-weight: bold; +// $microformat-fullname-font-size: rem-calc(15); + +// We use this to control the summary font styles +// $microformat-summary-font-weight: bold; + +// We use this to control abbr padding +// $microformat-abbr-padding: rem-calc(0 1); + +// We use this to control abbr font styles +// $microformat-abbr-font-weight: bold; +// $microformat-abbr-font-decoration: none; + +// +// VISIBILITY CLASSES +// + +// $include-html-visibility-classes: $include-html-classes;