diff --git a/src/assets/scss/_settings.scss b/src/assets/scss/_settings.scss index ac9a124..e4bd31f 100644 --- a/src/assets/scss/_settings.scss +++ b/src/assets/scss/_settings.scss @@ -1,566 +1,566 @@ // Foundation for Sites Settings // ----------------------------- // // Table of Contents: // // 1. Global // 2. Breakpoints // 3. The Grid // 4. Base Typography // 5. Typography Helpers // 6. Abide // 7. Accordion // 8. Accordion Menu // 9. Badge // 10. Breadcrumbs // 11. Button // 12. Button Group // 13. Callout // 14. Close Button // 15. Drilldown // 16. Dropdown // 17. Dropdown Menu // 18. Flex Video // 19. Forms // 20. Label // 21. Media Object // 22. Menu // 23. Meter // 24. Off-canvas // 25. Orbit // 26. Pagination // 27. Progress Bar // 28. Reveal // 29. Slider // 30. Switch // 31. Table // 32. Tabs // 33. Thumbnail // 34. Title Bar // 35. Tooltip // 36. Top Bar @import 'util/util'; // 1. Global // --------- $global-font-size: 100%; $global-width: rem-calc(1200); $global-lineheight: 1.5; $foundation-palette: ( primary: #2C6A74, secondary: #3F8B82, success: #3F8B82, - warning: #F06330, + warning: #F2792E, alert: #F06330, ); $light-gray: #e6e6e6; $medium-gray: #cacaca; $dark-gray: #8a8a8a; $black: #262626; $white: #F2E8DF; $body-background: $black; $body-font-color: $white; $body-font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; $body-antialiased: true; $global-margin: 1rem; $global-padding: 1rem; $global-weight-normal: normal; $global-weight-bold: bold; $global-radius: 0; $global-text-direction: ltr; $global-flexbox: false; $print-transparent-backgrounds: true; @include add-foundation-colors; // 2. Breakpoints // -------------- $breakpoints: ( small: 0, medium: 640px, large: 1024px, xlarge: 1200px, xxlarge: 1440px, ); $breakpoint-classes: (small medium large); // 3. The Grid // ----------- $grid-row-width: $global-width; $grid-column-count: 12; $grid-column-gutter: ( small: 20px, medium: 30px, ); $grid-column-align-edge: true; $block-grid-max: 8; // 4. Base Typography // ------------------ $header-font-family: $body-font-family; $header-font-weight: $global-weight-normal; $header-font-style: normal; $font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace; $header-sizes: ( small: ( 'h1': 24, 'h2': 20, 'h3': 19, 'h4': 18, 'h5': 17, 'h6': 16, ), medium: ( 'h1': 48, 'h2': 40, 'h3': 31, 'h4': 25, 'h5': 20, 'h6': 16, ), ); $header-color: inherit; $header-lineheight: 1.4; $header-margin-bottom: 0.5rem; $header-text-rendering: optimizeLegibility; $small-font-size: 80%; $header-small-font-color: $medium-gray; $paragraph-lineheight: 1.6; $paragraph-margin-bottom: 1rem; $paragraph-text-rendering: optimizeLegibility; $code-color: $black; $code-font-family: $font-family-monospace; $code-font-weight: $global-weight-normal; $code-background: $light-gray; $code-border: 1px solid $medium-gray; $code-padding: rem-calc(2 5 1); $anchor-color: $secondary-color; $anchor-color-hover: scale-color($anchor-color, $lightness: -14%); $anchor-text-decoration: none; $anchor-text-decoration-hover: none; $hr-width: $global-width; $hr-border: 1px solid $medium-gray; $hr-margin: rem-calc(20) auto; $list-lineheight: $paragraph-lineheight; $list-margin-bottom: $paragraph-margin-bottom; $list-style-type: disc; $list-style-position: outside; $list-side-margin: 1.25rem; $list-nested-side-margin: 1.25rem; $defnlist-margin-bottom: 1rem; $defnlist-term-weight: $global-weight-bold; $defnlist-term-margin-bottom: 0.3rem; $blockquote-color: $dark-gray; $blockquote-padding: rem-calc(9 20 0 19); $blockquote-border: 1px solid $medium-gray; $cite-font-size: rem-calc(13); $cite-color: $dark-gray; $keystroke-font: $font-family-monospace; $keystroke-color: $black; $keystroke-background: $light-gray; $keystroke-padding: rem-calc(2 4 0); $keystroke-radius: $global-radius; $abbr-underline: 1px dotted $black; // 5. Typography Helpers // --------------------- $lead-font-size: $global-font-size * 1.25; $lead-lineheight: 1.6; $subheader-lineheight: 1.4; $subheader-color: $dark-gray; $subheader-font-weight: $global-weight-normal; $subheader-margin-top: 0.2rem; $subheader-margin-bottom: 0.5rem; $stat-font-size: 2.5rem; // 6. Abide // -------- $abide-inputs: true; $abide-labels: true; $input-background-invalid: map-get($foundation-palette, alert); $form-label-color-invalid: map-get($foundation-palette, alert); $input-error-color: map-get($foundation-palette, alert); $input-error-font-size: rem-calc(12); $input-error-font-weight: $global-weight-bold; // 7. Accordion // ------------ $accordion-background: $black; $accordion-plusminus: true; $accordion-item-color: foreground($accordion-background, $primary-color); $accordion-item-background-hover: $light-gray; $accordion-item-padding: 1.25rem 1rem; $accordion-content-background: $black; $accordion-content-border: 1px solid $light-gray; $accordion-content-color: foreground($accordion-background, $primary-color); $accordion-content-padding: 1rem; // 8. Accordion Menu // ----------------- $accordionmenu-arrows: true; $accordionmenu-arrow-color: $primary-color; // 9. Badge // -------- $badge-background: $primary-color; $badge-color: foreground($badge-background); $badge-padding: 0.3em; $badge-minwidth: 2.1em; $badge-font-size: 0.6rem; // 10. Breadcrumbs // --------------- $breadcrumbs-margin: 0 0 $global-margin 0; $breadcrumbs-item-font-size: rem-calc(11); $breadcrumbs-item-color: $primary-color; $breadcrumbs-item-color-current: $white; $breadcrumbs-item-color-disabled: $medium-gray; $breadcrumbs-item-margin: 0.75rem; $breadcrumbs-item-uppercase: true; $breadcrumbs-item-slash: true; // 11. Button // ---------- $button-padding: 0.85em 1em; $button-margin: 0 0 $global-margin 0; $button-fill: solid; $button-background: $primary-color; $button-background-hover: scale-color($button-background, $lightness: -15%); $button-color: $white; $button-color-alt: $black; $button-radius: $global-radius; $button-sizes: ( tiny: 0.6rem, small: 0.75rem, default: 0.9rem, large: 1.25rem, ); $button-opacity-disabled: 0.25; // 12. Button Group // ---------------- $buttongroup-margin: 1rem; $buttongroup-spacing: 1px; $buttongroup-child-selector: '.button'; $buttongroup-expand-max: 6; // 13. Callout // ----------- $callout-background: $black; $callout-background-fade: 15%; $callout-border: 1px solid rgba($black, 0.25); $callout-margin: 0 0 1rem 0; $callout-padding: 1rem; $callout-font-color: $body-font-color; $callout-font-color-alt: $body-background; $callout-radius: $global-radius; $callout-link-tint: 30%; // 14. Close Button // ---------------- $closebutton-position: right top; $closebutton-offset-horizontal: 1rem; $closebutton-offset-vertical: 0.5rem; $closebutton-size: 2em; $closebutton-lineheight: 1; $closebutton-color: $light-gray; $closebutton-color-hover: $white; // 15. Drilldown // ------------- $drilldown-transition: transform 0.15s linear; $drilldown-arrows: true; $drilldown-arrow-color: $primary-color; $drilldown-background: $black; // 16. Dropdown // ------------ $dropdown-padding: 1rem; $dropdown-border: 1px solid $medium-gray; $dropdown-font-size: 1rem; $dropdown-width: 300px; $dropdown-radius: $global-radius; $dropdown-sizes: ( tiny: 100px, small: 200px, large: 400px, ); // 17. Dropdown Menu // ----------------- $dropdownmenu-arrows: true; $dropdownmenu-arrow-color: $anchor-color; $dropdownmenu-min-width: 200px; $dropdownmenu-background: $black; $dropdownmenu-border: 1px solid $medium-gray; // 18. Flex Video // -------------- $flexvideo-margin-bottom: rem-calc(16); $flexvideo-ratio: 4 by 3; $flexvideo-ratio-widescreen: 16 by 9; // 19. Forms // --------- $fieldset-border: 1px solid $dark-gray; $fieldset-padding: rem-calc(20); $fieldset-margin: rem-calc(18 0); $legend-padding: rem-calc(0 3); $form-spacing: rem-calc(16); $helptext-color: $white; $helptext-font-size: rem-calc(13); $helptext-font-style: italic; $input-prefix-color: $black; $input-prefix-background: $light-gray; $input-prefix-border: 1px solid $medium-gray; $input-prefix-padding: 1rem; $form-label-color: $white; $form-label-font-size: rem-calc(14); $form-label-font-weight: $global-weight-normal; $form-label-line-height: 1.8; $select-background: $black; $select-triangle-color: $light-gray; $select-radius: $global-radius; $input-color: $white; $input-placeholder-color: $medium-gray; $input-font-family: inherit; $input-font-size: rem-calc(16); $input-background: $black; $input-background-focus: $black; $input-background-disabled: $dark-gray; $input-border: 1px solid $medium-gray; $input-border-focus: 1px solid $dark-gray; $input-shadow: inset 0 1px 2px rgba($black, 0.1); $input-shadow-focus: 0 0 5px $medium-gray; $input-cursor-disabled: default; $input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out; $input-number-spinners: true; $input-radius: $global-radius; // 20. Label // --------- $label-background: $primary-color; $label-color: foreground($label-background); $label-font-size: 0.8rem; $label-padding: 0.33333rem 0.5rem; $label-radius: $global-radius; // 21. Media Object // ---------------- $mediaobject-margin-bottom: $global-margin; $mediaobject-section-padding: $global-padding; $mediaobject-image-width-stacked: 100%; // 22. Menu // -------- $menu-margin: 0; $menu-margin-nested: 1rem; $menu-item-padding: 0.7rem 1rem; $menu-item-color-active: $white; $menu-item-background-active: map-get($foundation-palette, primary); $menu-icon-spacing: 0.25rem; // 23. Meter // --------- $meter-height: 1rem; $meter-radius: $global-radius; $meter-background: $medium-gray; $meter-fill-good: $success-color; $meter-fill-medium: $warning-color; $meter-fill-bad: $alert-color; // 24. Off-canvas // -------------- $offcanvas-size: 250px; $offcanvas-background: $light-gray; $offcanvas-zindex: -1; $offcanvas-transition-length: 0.5s; $offcanvas-transition-timing: ease; $offcanvas-fixed-reveal: true; $offcanvas-exit-background: rgba($white, 0.25); $maincontent-class: 'off-canvas-content'; $maincontent-shadow: 0 0 10px rgba($black, 0.5); // 25. Orbit // --------- $orbit-bullet-background: $medium-gray; $orbit-bullet-background-active: $dark-gray; $orbit-bullet-diameter: 1.2rem; $orbit-bullet-margin: 0.1rem; $orbit-bullet-margin-top: 0.8rem; $orbit-bullet-margin-bottom: 0.8rem; $orbit-caption-background: rgba($black, 0.5); $orbit-caption-padding: 1rem; $orbit-control-background-hover: rgba($black, 0.5); $orbit-control-padding: 1rem; $orbit-control-zindex: 10; // 26. Pagination // -------------- $pagination-font-size: rem-calc(14); $pagination-margin-bottom: $global-margin; $pagination-item-color: $black; $pagination-item-padding: rem-calc(3 10); $pagination-item-spacing: rem-calc(1); $pagination-radius: $global-radius; $pagination-item-background-hover: $light-gray; $pagination-item-background-current: $primary-color; $pagination-item-color-current: foreground($pagination-item-background-current); $pagination-item-color-disabled: $medium-gray; $pagination-ellipsis-color: $black; $pagination-mobile-items: false; $pagination-arrows: true; // 27. Progress Bar // ---------------- $progress-height: 1rem; $progress-background: $medium-gray; $progress-margin-bottom: $global-margin; $progress-meter-background: $primary-color; $progress-radius: $global-radius; // 28. Reveal // ---------- $reveal-background: $black; $reveal-width: 600px; $reveal-max-width: $global-width; $reveal-padding: $global-padding; $reveal-border: 1px solid $medium-gray; $reveal-radius: $global-radius; $reveal-zindex: 1005; $reveal-overlay-background: rgba($black, 0.45); // 29. Slider // ---------- $slider-width-vertical: 0.5rem; $slider-transition: all 0.2s ease-in-out; $slider-height: 0.5rem; $slider-background: $light-gray; $slider-fill-background: $medium-gray; $slider-handle-height: 1.4rem; $slider-handle-width: 1.4rem; $slider-handle-background: $primary-color; $slider-opacity-disabled: 0.25; $slider-radius: $global-radius; // 30. Switch // ---------- $switch-background: $medium-gray; $switch-background-active: $primary-color; $switch-height: 2rem; $switch-height-tiny: 1.5rem; $switch-height-small: 1.75rem; $switch-height-large: 2.5rem; $switch-radius: $global-radius; $switch-margin: $global-margin; $switch-paddle-background: $black; $switch-paddle-offset: 0.25rem; $switch-paddle-radius: $global-radius; $switch-paddle-transition: all 0.25s ease-out; // 31. Table // --------- $table-background: $black; $table-color-scale: 5%; $table-border: 1px solid smart-scale($table-background, $table-color-scale); $table-padding: rem-calc(8 10 10); $table-hover-scale: 2%; $table-row-hover: darken($table-background, $table-hover-scale); $table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale); $table-striped-background: smart-scale($table-background, $table-color-scale); $table-stripe: even; $table-head-background: smart-scale($table-background, $table-color-scale / 2); $table-foot-background: smart-scale($table-background, $table-color-scale); $table-head-font-color: $body-font-color; $show-header-for-stacked: false; // 32. Tabs // -------- $tab-margin: 0; $tab-background: $black; $tab-background-active: $light-gray; $tab-item-font-size: rem-calc(12); $tab-item-background-hover: $white; $tab-item-padding: 1.25rem 1.5rem; $tab-expand-max: 6; $tab-content-background: $black; $tab-content-border: $light-gray; $tab-content-color: foreground($tab-background, $primary-color); $tab-content-padding: 1rem; // 33. Thumbnail // ------------- $thumbnail-border: solid 4px $white; $thumbnail-margin-bottom: $global-margin; $thumbnail-shadow: 0 0 0 1px rgba($black, 0.2); $thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5); $thumbnail-transition: box-shadow 200ms ease-out; $thumbnail-radius: $global-radius; // 34. Title Bar // ------------- $titlebar-background: $black; $titlebar-color: $white; $titlebar-padding: 0.5rem; $titlebar-text-font-weight: bold; $titlebar-icon-color: $white; $titlebar-icon-color-hover: $medium-gray; $titlebar-icon-spacing: 0.25rem; // 35. Tooltip // ----------- $has-tip-font-weight: $global-weight-bold; $has-tip-border-bottom: dotted 1px $dark-gray; $tooltip-background-color: $black; $tooltip-color: $white; $tooltip-padding: 0.75rem; $tooltip-font-size: $small-font-size; $tooltip-pip-width: 0.75rem; $tooltip-pip-height: $tooltip-pip-width * 0.866; $tooltip-radius: $global-radius; // 36. Top Bar // ----------- $topbar-padding: 0.5rem; $topbar-background: $light-gray; $topbar-submenu-background: $topbar-background; $topbar-title-spacing: 1rem; $topbar-input-width: 200px; $topbar-unstack-breakpoint: medium; diff --git a/src/styleguide/index.md b/src/styleguide/index.md index c02d120..deae99c 100644 --- a/src/styleguide/index.md +++ b/src/styleguide/index.md @@ -1,355 +1,355 @@ # The Grid

Problem: You've got tons of content, each needing different sized vertical columns, and don't know how to quick and easily get it all done. Solution: The awesome grid!

--- ## Overview The grid is built around two key elements: rows and columns. Rows create a max-width and contain the columns, and columns create the final structure. Everything on your page that you don't give a specific structural style to should be within a row or column. --- ## Nesting In the Grid you can nest columns down as far as you'd like. Just embed rows inside columns and go from there. Each embedded row can contain up to 12 columns. --- ## How to Use Using this framework is easy. Here's how your code will look when you use a series of
tags to create vertical columns. ```html
...
...
```
4
4
4
3
6
3
2
8
2
3
9
4
8
5
7
6
6
--- ## Nesting Rows In the Grid you can nest columns down as far as you'd like. Just embed rows inside columns and go from there. Each embedded row can contain up to 12 columns. ```html
8
8 Nested
8 Nested Again
4
4
4
```
8
8 Nested
8 Nested Again
4
4
4
--- ## Small Grid As you've probably noticed in the examples above, you have access to a small, medium, and large grid. If you know that your grid structure will be the same for small devices as it will be on large devices, just use the small grid. You can override your small grid classes by adding medium or large grid classes. ```html
2
10, last
3
9, last
```
2
10, last
3
9, last
# Colors

Below you can find the different values we created that support the primary color variable you can change at any time in \_settings.scss

---
- - #2199e8 + + #2C6A74
- - #3adb76 + + #3F8B82
- - #ffae00 + + #3F8B82
- - #ec5840 + + #F2792E
- - #0a0a0a + + #F06330
# Typography

This design uses Helvetica Neue for headings and paragraph text.

--- ## Headings Headings are used to denote different sections of content, usually consisting of related paragraphs and other HTML elements. They range from h1 to h6 and should be styled in a clear hierarchy (i.e., largest to smallest) --- ## Paragraphs Paragraphs are groups of sentences, each with a lead (first sentence) and transition (last sentence). They are block level elements, meaning they stack vertically when repeated. Use them as such. ---

Heading Level 1

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quibusdam ratione sunt dolorum, qui illo maxime doloremque accusantium cum libero eum, a optio odio placeat debitis ullam aut non distinctio.

Heading Level 2

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quibusdam ratione sunt dolorum, qui illo maxime doloremque accusantium cum libero eum, a optio odio placeat debitis ullam aut non distinctio.

Heading Level 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quibusdam ratione sunt dolorum, qui illo maxime doloremque accusantium cum libero eum, a optio odio placeat debitis ullam aut non distinctio.

Heading Level 4

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quibusdam ratione sunt dolorum, qui illo maxime doloremque accusantium cum libero eum, a optio odio placeat debitis ullam aut non distinctio.
Heading Level 5
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quibusdam ratione sunt dolorum, qui illo maxime doloremque accusantium cum libero eum, a optio odio placeat debitis ullam aut non distinctio.
Heading Level 6
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quibusdam ratione sunt dolorum, qui illo maxime doloremque accusantium cum libero eum, a optio odio placeat debitis ullam aut non distinctio. # Buttons

Buttons are tied to an action of some kind, whether that button is on a cheese dispenser or launches the rocket that you're strapped to. On the web, we follow similar conventions.

--- ## Primary Buttons These buttons are primary calls to action and should be used sparingly. Their size can be adjusted with the `.tiny`, `.small`, and `.large` classes. ```html_example Large button Regular button Small button Tiny button ``` --- ## Secondary Buttons These buttons are used for less important, secondary actions on a page. ```html_example Large button Regular button Small button Tiny button ``` # Forms

Use forms to allow users to interact with the site and provide information to the company.

--- ## Elements of a Form A form should be marked up using its default HTML properties. The ones we make use of include (in hierarchical order): - Form - Label - Input - Select - Text area - Button --- ## How to Use Make forms great and easy to use with the following rules: - Wrap checkboxes and radio buttons within labels for larger hit areas, and be sure to set the for, name, and id attributes for all applicable elements. - Series of checkboxes and radio buttons below within a `