From 15ebe58f2c23b33480229ab353671be744328caf Mon Sep 17 00:00:00 2001 From: Christopher Tarwater Date: Tue, 22 Mar 2016 17:15:04 -0700 Subject: [PATCH] update foundation zurb files --- .jekyll-metadata | Bin 28568 -> 0 bytes _sass/foundation/_foundation.scss | 100 +- _sass/foundation/_global.scss | 523 ++++++++++- .../components/_accordion-menu.scss | 6 +- _sass/foundation/components/_accordion.scss | 9 +- _sass/foundation/components/_badge.scss | 2 +- .../foundation/components/_button-group.scss | 131 ++- _sass/foundation/components/_button.scss | 41 +- _sass/foundation/components/_callout.scss | 20 +- _sass/foundation/components/_drilldown.scss | 28 +- .../foundation/components/_dropdown-menu.scss | 216 +++-- _sass/foundation/components/_dropdown.scss | 7 +- _sass/foundation/components/_flex-video.scss | 5 - _sass/foundation/components/_flex.scss | 28 + _sass/foundation/components/_label.scss | 2 +- .../foundation/components/_media-object.scss | 55 +- _sass/foundation/components/_menu-icon.scss | 9 + _sass/foundation/components/_menu.scss | 177 +++- _sass/foundation/components/_off-canvas.scss | 15 +- _sass/foundation/components/_orbit.scss | 7 + _sass/foundation/components/_pagination.scss | 14 +- .../foundation/components/_progress-bar.scss | 49 +- _sass/foundation/components/_reveal.scss | 40 +- _sass/foundation/components/_slider.scss | 45 +- _sass/foundation/components/_sticky.scss | 2 +- _sass/foundation/components/_switch.scss | 3 +- _sass/foundation/components/_table.scss | 154 ++-- _sass/foundation/components/_tabs.scss | 162 ++-- _sass/foundation/components/_title-bar.scss | 77 +- _sass/foundation/components/_tooltip.scss | 16 +- _sass/foundation/components/_top-bar.scss | 131 ++- _sass/foundation/components/_visibility.scss | 11 +- _sass/foundation/forms/_checkbox.scss | 6 +- _sass/foundation/forms/_error.scss | 12 +- _sass/foundation/forms/_fieldset.scss | 1 + _sass/foundation/forms/_forms.scss | 20 +- _sass/foundation/forms/_help-text.scss | 2 +- _sass/foundation/forms/_input-group.scss | 71 +- _sass/foundation/forms/_meter.scss | 109 +++ _sass/foundation/forms/_progress.scss | 85 ++ _sass/foundation/forms/_range.scss | 144 +++ _sass/foundation/forms/_select.scss | 10 +- _sass/foundation/forms/_text.scss | 18 +- _sass/foundation/grid/_classes.scss | 128 +-- _sass/foundation/grid/_column.scss | 41 +- _sass/foundation/grid/_flex-grid.scss | 228 +++-- _sass/foundation/grid/_grid.scss | 35 +- _sass/foundation/grid/_gutter.scss | 19 +- _sass/foundation/grid/_layout.scss | 20 +- _sass/foundation/grid/_position.scss | 11 +- _sass/foundation/grid/_row.scss | 43 +- _sass/foundation/settings/_settings.scss | 862 +++++++++--------- _sass/foundation/typography/_alignment.scss | 22 +- _sass/foundation/typography/_base.scss | 9 +- _sass/foundation/typography/_print.scss | 14 +- _sass/foundation/util/_breakpoint.scss | 137 ++- _sass/foundation/util/_color.scss | 19 + _sass/foundation/util/_flex.scss | 68 ++ _sass/foundation/util/_mixins.scss | 55 +- _sass/foundation/util/_unit.scss | 42 +- _sass/foundation/util/_util.scss | 6 +- _sass/foundation/util/_value.scss | 45 +- _sass/foundation/vendor/normalize.scss | 424 --------- 63 files changed, 3118 insertions(+), 1673 deletions(-) delete mode 100644 .jekyll-metadata create mode 100644 _sass/foundation/components/_flex.scss create mode 100644 _sass/foundation/components/_menu-icon.scss create mode 100644 _sass/foundation/forms/_meter.scss create mode 100644 _sass/foundation/forms/_progress.scss create mode 100644 _sass/foundation/forms/_range.scss create mode 100644 _sass/foundation/util/_flex.scss delete mode 100644 _sass/foundation/vendor/normalize.scss diff --git a/.jekyll-metadata b/.jekyll-metadata deleted file mode 100644 index bf135eefceb347ec51cd920329627ed5780e2335..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28568 zcmeI5Yls_F6vvZo$@bymf~bhA)KD!x?q*-rb^}`Lt~IunZFjB3+NQHJH_7eJ%uVOf zZR(@ZS`_@ywN}NdMSOe`D=0|)B0jzp!4C=w7OfVFB3kML5k$muCz;tvW@b~FNtNM# zYs2p3?8*Jz|2gNLb2ERz{VQ_mSza^s>m`jN*I1CU#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+ZuX;>PX@NcSE6wprYgzu2+lQtKKBULwhGaf_+A zZH+F0vpTl(Rs(l1b5Fh5Q|({7{DNlYI!-$QrNIS`3tXH9E);XMxrmGlw!A2aCEQ!7 z-6`i&sk{nw?(nIjix;t5tUhxh$!D$VWc5JSbv;+pbx~`>><&bg@b0-Ps7!y4fA{+_ z&t8yqY<#5byBUaK?3yk7!xcU3_B^;41Wr|I_YFGs@-qv5H(zFUshqbH%k!|beYS|- z;IQz6*N5I|Mlt!J9SUFOQ&xoo&23>wYz)@x*L$|8|Go;hqHXx|aH4LhbMsxtac9$b zh9A4|3b5UOR=-R(UMce3(NPB_gWza=18fWPyUuhsZwnn4ChdJ;8BdWpY_Wzd)XZC> z#Mz_I!NlDI`SH6?u7A!$+zWPo+*zo{?e18ecNOrig7|b5L|6gVVLT+5wh3q^*!R)( z7kg-1?a+1)r;Y1dto1FzU{c347&aD6-n99z5f5xP+QDS1-?!S+h9+KK-Qm@p|Dw9H zE==N9zr?W@E^!Q)`C#8&kVy3HYTbw)A@rsW_k#pYp|EznEq!NCd7yvKDc3yB6_zV( ztQGc-Fx0Qh-8Q;@d^CXgi-9kCs{45lU!4wL(>@(TP`M4&9KUh&){(nLgRy5vPQ6FF z?e8b4eYp}le!9U4tnc3L6?-siV;El*s0!b)L|`nOLJu*fMu69T`JC;O)i3J%WW9*& z_k}4DnxpS3{-4Y-j6!I0LPchcAJ#N{@m6SiLUqR0PgZMlRS2$wg!#oC<)F`u6>2`g z_r2@^Z`6)vI|uy13zgkA8mVBZg^6!1^)c~M2f}fG6C?Da4%ZjSa~Qb^Hn4-=e1FK} z$5$L9i~dH23Sk=kxO*-OS&<--m^s-xsEY8D-7OEy;WW1R&b;mO$)0c)-` and ``. We use 100% by default so the value is inherited from the user's browser settings. /// @type Number $global-font-size: 100% !default; +/// Global width of your site. Used by the grid to determine row width. +/// @type Number +$global-width: rem-calc(1200) !default; + /// Default line height for all type. `$global-lineheight` is 24px while `$global-font-size` is 16px /// @type Number $global-lineheight: 1.5 !default; -/// Primary color for interactive components like links and buttons. -/// @type Color -$primary-color: #2199e8 !default; - -/// Secondary color, used with components that support the `.secondary` class. -/// @type Color -$secondary-color: #777 !default; - -/// Color to indicate a positive status or action, used with the `.success` class. -/// @type Color -$success-color: #3adb76 !default; - -/// Color to indicate a caution status or action, used with the `.warning` class. -/// @type Color -$warning-color: #ffae00 !default; - -/// Color to indicate a negative status or action, used with the `.alert` class. -/// @type Color -$alert-color: #ec5840 !default; +/// Colors used for buttons, callouts, links, etc. There must always be a color called `primary`. +/// @type Map +$foundation-palette: ( + primary: #2199e8, + secondary: #777, + success: #3adb76, + warning: #ffae00, + alert: #ec5840, +) !default; /// Color used for light gray UI items. /// @type Color @@ -82,10 +74,6 @@ $global-margin: 1rem !default; /// @type Number $global-padding: 1rem !default; -/// Global value used for margin between components. -/// @type Number -$global-margin: 1rem !default; - /// Global font weight used for normal type. /// @type Keyword | Number $global-weight-normal: normal !default; @@ -99,32 +87,49 @@ $global-weight-bold: bold !default; $global-radius: 0 !default; /// Sets the text direction of the CSS. Can be either `ltr` or `rtl`. +/// @type Keyword $global-text-direction: ltr !default; +/// Enables flexbox for components that support it. +/// @type Boolean +$global-flexbox: false !default; + +@if not map-has-key($foundation-palette, primary) { + @error 'In $foundation-palette, you must have a color named "primary".'; +} + // Internal variables used for text direction $global-left: if($global-text-direction == rtl, right, left); $global-right: if($global-text-direction == rtl, left, right); -// Internal map used to iterate through colors, to generate CSS classes with less code -$foundation-colors: ( - primary: $primary-color, - secondary: $secondary-color, - success: $success-color, - alert: $alert-color, - warning: $warning-color, -); +// Internal variables used for colors +$primary-color: map-get($foundation-palette, primary); +$secondary-color: map-get($foundation-palette, secondary); +$success-color: map-get($foundation-palette, success); +$warning-color: map-get($foundation-palette, warning); +$alert-color: map-get($foundation-palette, alert); + +// Remove this in 6.3 +$-zf-menu-icon-imported: false; +$-zf-flex-classes-imported: false; @mixin foundation-global-styles { - html, - body { + @include -zf-normalize; + + // These styles are applied to a tag, which is read by the Foundation JavaScript + .foundation-mq { + font-family: '#{-zf-bp-serialize($breakpoints)}'; + } + + html { font-size: $global-font-size; box-sizing: border-box; } // Set box-sizing globally to handle padding and border widths *, - *:before, - *:after { + *::before, + *::after { box-sizing: inherit; } @@ -182,6 +187,7 @@ $foundation-colors: ( // Reset