luda 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +5 -5
- data/assets/javascripts/luda-degradation.js +1 -1
- data/assets/javascripts/luda-degradation.js.map +1 -1
- data/assets/javascripts/luda-degradation.min.js +1 -1
- data/assets/javascripts/luda-degradation.min.js.map +1 -1
- data/assets/javascripts/luda-sprockets.js +11 -11
- data/assets/javascripts/luda.js +1 -1
- data/assets/javascripts/luda.js.map +1 -1
- data/assets/javascripts/luda.min.js +1 -1
- data/assets/javascripts/luda.min.js.map +1 -1
- data/assets/javascripts/luda/install.js +1 -1
- data/assets/stylesheets/luda/_core/_base.sass +429 -429
- data/assets/stylesheets/luda/_core/_functions.sass +239 -239
- data/assets/stylesheets/luda/_core/_variables.sass +709 -709
- data/assets/stylesheets/luda/_core/behaviours/_disabled.sass +11 -11
- data/assets/stylesheets/luda/_core/behaviours/_focus.sass +6 -6
- data/assets/stylesheets/luda/_core/behaviours/_readonly.sass +15 -15
- data/assets/stylesheets/luda/_core/behaviours/_toggle.sass +3 -3
- data/assets/stylesheets/luda/_core/collections/_alert.sass +23 -23
- data/assets/stylesheets/luda/_core/collections/_avatar.sass +116 -116
- data/assets/stylesheets/luda/_core/collections/_breadcrumb.sass +20 -20
- data/assets/stylesheets/luda/_core/collections/_button-group.sass +66 -66
- data/assets/stylesheets/luda/_core/collections/_button-icon.sass +45 -45
- data/assets/stylesheets/luda/_core/collections/_carousel.sass +131 -131
- data/assets/stylesheets/luda/_core/collections/_dropdown.sass +59 -59
- data/assets/stylesheets/luda/_core/collections/_form-button.sass +22 -22
- data/assets/stylesheets/luda/_core/collections/_form-dropdown.sass +20 -20
- data/assets/stylesheets/luda/_core/collections/_form-group.sass +47 -47
- data/assets/stylesheets/luda/_core/collections/_form-icon.sass +70 -70
- data/assets/stylesheets/luda/_core/collections/_media.sass +54 -54
- data/assets/stylesheets/luda/_core/collections/_modal.sass +11 -11
- data/assets/stylesheets/luda/_core/collections/_nav.sass +161 -161
- data/assets/stylesheets/luda/_core/collections/_tab.sass +17 -17
- data/assets/stylesheets/luda/_core/elements/_badge.sass +18 -18
- data/assets/stylesheets/luda/_core/elements/_baseline.sass +21 -21
- data/assets/stylesheets/luda/_core/elements/_button.sass +135 -135
- data/assets/stylesheets/luda/_core/elements/_container.sass +7 -7
- data/assets/stylesheets/luda/_core/elements/_grid.sass +54 -54
- data/assets/stylesheets/luda/_core/elements/_icon.sass +109 -109
- data/assets/stylesheets/luda/_core/elements/_overlay.sass +10 -10
- data/assets/stylesheets/luda/_core/elements/_progress.sass +30 -30
- data/assets/stylesheets/luda/_core/elements/_scrollbar.sass +20 -20
- data/assets/stylesheets/luda/_core/elements/_table.sass +101 -101
- data/assets/stylesheets/luda/_core/elements/_turbolinks-progress-bar.sass +4 -4
- data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +104 -104
- data/assets/stylesheets/luda/_core/elements/form/_form-element.sass +82 -82
- data/assets/stylesheets/luda/_core/elements/form/_form-helper.sass +65 -65
- data/assets/stylesheets/luda/_core/elements/form/_form-label.sass +19 -19
- data/assets/stylesheets/luda/_core/elements/form/_form-range.sass +91 -91
- data/assets/stylesheets/luda/_core/elements/form/_form-row.sass +213 -213
- data/assets/stylesheets/luda/_core/elements/typography/_code.sass +26 -26
- data/assets/stylesheets/luda/_core/elements/typography/_link.sass +14 -14
- data/assets/stylesheets/luda/_core/elements/typography/_list.sass +13 -13
- data/assets/stylesheets/luda/_core/elements/typography/_mark.sass +6 -6
- data/assets/stylesheets/luda/_core/elements/typography/_quote.sass +67 -67
- data/assets/stylesheets/luda/_core/elements/typography/_sub-sup.sass +15 -15
- data/assets/stylesheets/luda/_core/elements/typography/_typography.sass +51 -51
- data/assets/stylesheets/luda/_core/mixins/_browser.sass +14 -14
- data/assets/stylesheets/luda/_core/mixins/_button.sass +89 -89
- data/assets/stylesheets/luda/_core/mixins/_dropdown.sass +39 -39
- data/assets/stylesheets/luda/_core/mixins/_focus.sass +2 -2
- data/assets/stylesheets/luda/_core/mixins/_form.sass +26 -26
- data/assets/stylesheets/luda/_core/mixins/_install.sass +6 -6
- data/assets/stylesheets/luda/_core/mixins/_media-query.sass +65 -65
- data/assets/stylesheets/luda/_core/mixins/_overlay.sass +13 -13
- data/assets/stylesheets/luda/_core/mixins/_sass-lint-fix.sass +2 -2
- data/assets/stylesheets/luda/_core/mixins/_typography.sass +39 -39
- data/assets/stylesheets/luda/_core/utilities/_align.sass +18 -18
- data/assets/stylesheets/luda/_core/utilities/_background.sass +87 -87
- data/assets/stylesheets/luda/_core/utilities/_color.sass +35 -35
- data/assets/stylesheets/luda/_core/utilities/_display.sass +39 -39
- data/assets/stylesheets/luda/_core/utilities/_flex.sass +113 -113
- data/assets/stylesheets/luda/_core/utilities/_float.sass +20 -20
- data/assets/stylesheets/luda/_core/utilities/_opacity.sass +18 -18
- data/assets/stylesheets/luda/_core/utilities/_overflow.sass +17 -17
- data/assets/stylesheets/luda/_core/utilities/_position.sass +47 -47
- data/assets/stylesheets/luda/_core/utilities/_shape.sass +61 -61
- data/assets/stylesheets/luda/_core/utilities/_size.sass +66 -66
- data/assets/stylesheets/luda/_core/utilities/_space.sass +226 -226
- data/assets/stylesheets/luda/_core/utilities/_text.sass +84 -84
- data/assets/stylesheets/luda/_core/utilities/_visibility.sass +10 -10
- data/assets/stylesheets/luda/_core/utilities/_z-index.sass +18 -18
- data/assets/stylesheets/luda/_default.sass +51 -51
- data/assets/stylesheets/luda/default/_banner.sass +1 -1
- data/assets/stylesheets/luda/default/_base.sass +5 -5
- data/assets/stylesheets/luda/default/_mixins.sass +9 -9
- data/assets/stylesheets/luda/default/behaviours/_disabled.sass +4 -4
- data/assets/stylesheets/luda/default/behaviours/_focus.sass +4 -4
- data/assets/stylesheets/luda/default/behaviours/_readonly.sass +4 -4
- data/assets/stylesheets/luda/default/behaviours/_toggle.sass +4 -4
- data/assets/stylesheets/luda/default/collections/_alert.sass +5 -5
- data/assets/stylesheets/luda/default/collections/_avatar.sass +6 -6
- data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +5 -5
- data/assets/stylesheets/luda/default/collections/_button-group.sass +6 -6
- data/assets/stylesheets/luda/default/collections/_button-icon.sass +7 -7
- data/assets/stylesheets/luda/default/collections/_carousel.sass +6 -6
- data/assets/stylesheets/luda/default/collections/_dropdown.sass +7 -7
- data/assets/stylesheets/luda/default/collections/_form-button.sass +8 -8
- data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +7 -7
- data/assets/stylesheets/luda/default/collections/_form-group.sass +10 -10
- data/assets/stylesheets/luda/default/collections/_form-icon.sass +7 -7
- data/assets/stylesheets/luda/default/collections/_media.sass +6 -6
- data/assets/stylesheets/luda/default/collections/_modal.sass +6 -6
- data/assets/stylesheets/luda/default/collections/_nav.sass +9 -9
- data/assets/stylesheets/luda/default/collections/_tab.sass +8 -8
- data/assets/stylesheets/luda/default/elements/_badge.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_baseline.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_button.sass +6 -6
- data/assets/stylesheets/luda/default/elements/_container.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_form.sass +12 -12
- data/assets/stylesheets/luda/default/elements/_grid.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_icon.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_overlay.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_progress.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_scrollbar.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_table.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_turbolinks-progress-bar.sass +5 -5
- data/assets/stylesheets/luda/default/elements/_typography.sass +11 -11
- data/assets/stylesheets/luda/default/elements/form/_form-check-radio.sass +4 -4
- data/assets/stylesheets/luda/default/elements/form/_form-element.sass +4 -4
- data/assets/stylesheets/luda/default/elements/form/_form-helper.sass +4 -4
- data/assets/stylesheets/luda/default/elements/form/_form-label.sass +4 -4
- data/assets/stylesheets/luda/default/elements/form/_form-range.sass +4 -4
- data/assets/stylesheets/luda/default/elements/form/_form-row.sass +4 -4
- data/assets/stylesheets/luda/default/elements/typography/_code.sass +4 -4
- data/assets/stylesheets/luda/default/elements/typography/_link.sass +4 -4
- data/assets/stylesheets/luda/default/elements/typography/_list.sass +3 -3
- data/assets/stylesheets/luda/default/elements/typography/_mark.sass +4 -4
- data/assets/stylesheets/luda/default/elements/typography/_quote.sass +4 -4
- data/assets/stylesheets/luda/default/elements/typography/_sub-sup.sass +4 -4
- data/assets/stylesheets/luda/default/elements/typography/_typography.sass +4 -4
- data/assets/stylesheets/luda/default/index.sass +55 -55
- data/assets/stylesheets/luda/default/utilities/_align.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_background.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_color.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_display.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_flex.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_float.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_opacity.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_overflow.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_position.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_shape.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_size.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_space.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_text.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_visibility.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_z-index.sass +4 -4
- data/lib/luda.rb +72 -72
- data/lib/luda/engine.rb +11 -11
- data/lib/luda/version.rb +1 -1
- metadata +3 -74
- data/assets/stylesheets/luda/core/_base.sass +0 -430
- data/assets/stylesheets/luda/core/_functions.sass +0 -240
- data/assets/stylesheets/luda/core/_variables.sass +0 -710
- data/assets/stylesheets/luda/core/behaviours/_disabled.sass +0 -12
- data/assets/stylesheets/luda/core/behaviours/_focus.sass +0 -7
- data/assets/stylesheets/luda/core/behaviours/_readonly.sass +0 -16
- data/assets/stylesheets/luda/core/behaviours/_toggle.sass +0 -4
- data/assets/stylesheets/luda/core/collections/_alert.sass +0 -24
- data/assets/stylesheets/luda/core/collections/_avatar.sass +0 -117
- data/assets/stylesheets/luda/core/collections/_breadcrumb.sass +0 -21
- data/assets/stylesheets/luda/core/collections/_button-group.sass +0 -67
- data/assets/stylesheets/luda/core/collections/_button-icon.sass +0 -46
- data/assets/stylesheets/luda/core/collections/_carousel.sass +0 -132
- data/assets/stylesheets/luda/core/collections/_dropdown.sass +0 -60
- data/assets/stylesheets/luda/core/collections/_form-button.sass +0 -23
- data/assets/stylesheets/luda/core/collections/_form-dropdown.sass +0 -21
- data/assets/stylesheets/luda/core/collections/_form-group.sass +0 -48
- data/assets/stylesheets/luda/core/collections/_form-icon.sass +0 -71
- data/assets/stylesheets/luda/core/collections/_media.sass +0 -55
- data/assets/stylesheets/luda/core/collections/_modal.sass +0 -12
- data/assets/stylesheets/luda/core/collections/_nav.sass +0 -162
- data/assets/stylesheets/luda/core/collections/_tab.sass +0 -18
- data/assets/stylesheets/luda/core/elements/_badge.sass +0 -19
- data/assets/stylesheets/luda/core/elements/_baseline.sass +0 -22
- data/assets/stylesheets/luda/core/elements/_button.sass +0 -136
- data/assets/stylesheets/luda/core/elements/_container.sass +0 -8
- data/assets/stylesheets/luda/core/elements/_grid.sass +0 -55
- data/assets/stylesheets/luda/core/elements/_icon.sass +0 -110
- data/assets/stylesheets/luda/core/elements/_overlay.sass +0 -11
- data/assets/stylesheets/luda/core/elements/_progress.sass +0 -31
- data/assets/stylesheets/luda/core/elements/_scrollbar.sass +0 -21
- data/assets/stylesheets/luda/core/elements/_table.sass +0 -102
- data/assets/stylesheets/luda/core/elements/_turbolinks-progress-bar.sass +0 -5
- data/assets/stylesheets/luda/core/elements/form/_form-check-radio.sass +0 -105
- data/assets/stylesheets/luda/core/elements/form/_form-element.sass +0 -83
- data/assets/stylesheets/luda/core/elements/form/_form-helper.sass +0 -66
- data/assets/stylesheets/luda/core/elements/form/_form-label.sass +0 -20
- data/assets/stylesheets/luda/core/elements/form/_form-range.sass +0 -92
- data/assets/stylesheets/luda/core/elements/form/_form-row.sass +0 -214
- data/assets/stylesheets/luda/core/elements/typography/_code.sass +0 -27
- data/assets/stylesheets/luda/core/elements/typography/_link.sass +0 -15
- data/assets/stylesheets/luda/core/elements/typography/_list.sass +0 -14
- data/assets/stylesheets/luda/core/elements/typography/_mark.sass +0 -7
- data/assets/stylesheets/luda/core/elements/typography/_quote.sass +0 -68
- data/assets/stylesheets/luda/core/elements/typography/_sub-sup.sass +0 -16
- data/assets/stylesheets/luda/core/elements/typography/_typography.sass +0 -52
- data/assets/stylesheets/luda/core/mixins/_browser.sass +0 -15
- data/assets/stylesheets/luda/core/mixins/_button.sass +0 -90
- data/assets/stylesheets/luda/core/mixins/_dropdown.sass +0 -40
- data/assets/stylesheets/luda/core/mixins/_focus.sass +0 -3
- data/assets/stylesheets/luda/core/mixins/_form.sass +0 -27
- data/assets/stylesheets/luda/core/mixins/_install.sass +0 -7
- data/assets/stylesheets/luda/core/mixins/_media-query.sass +0 -66
- data/assets/stylesheets/luda/core/mixins/_overlay.sass +0 -14
- data/assets/stylesheets/luda/core/mixins/_sass-lint-fix.sass +0 -3
- data/assets/stylesheets/luda/core/mixins/_typography.sass +0 -40
- data/assets/stylesheets/luda/core/utilities/_align.sass +0 -19
- data/assets/stylesheets/luda/core/utilities/_background.sass +0 -88
- data/assets/stylesheets/luda/core/utilities/_color.sass +0 -36
- data/assets/stylesheets/luda/core/utilities/_display.sass +0 -40
- data/assets/stylesheets/luda/core/utilities/_flex.sass +0 -114
- data/assets/stylesheets/luda/core/utilities/_float.sass +0 -21
- data/assets/stylesheets/luda/core/utilities/_opacity.sass +0 -19
- data/assets/stylesheets/luda/core/utilities/_overflow.sass +0 -18
- data/assets/stylesheets/luda/core/utilities/_position.sass +0 -48
- data/assets/stylesheets/luda/core/utilities/_shape.sass +0 -62
- data/assets/stylesheets/luda/core/utilities/_size.sass +0 -67
- data/assets/stylesheets/luda/core/utilities/_space.sass +0 -227
- data/assets/stylesheets/luda/core/utilities/_text.sass +0 -85
- data/assets/stylesheets/luda/core/utilities/_visibility.sass +0 -11
- data/assets/stylesheets/luda/core/utilities/_z-index.sass +0 -19
@@ -1,240 +1,240 @@
|
|
1
|
-
// sass-lint:disable max-line-length
|
2
|
-
// sass-lint:disable variable-name-format
|
3
|
-
$_CONSTANTS: (scale-ratios: (minor-second: 1.067, major-second: 1.125, minor-third: 1.2, major-third: 1.25, perfect-fourth: 1.333, augmented-fourth: 1.414, perfect-fifth: 1.5, golden-ratio: 1.618), typography-stacks: (sans-serif: ("Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif), code: (SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)), baseline-offset-ratios: (Abel: 0.15772, "Abril Fatface": 0.1165, Anton: 0.096, Arial: 0.15332, "Arial Black": 0.10449, "Arial Narrow": 0.13818, Arimo: 0.15332, Arvo: 0.14307, Avenir: 0.183, Baskerville: 0.17407, "Bebas Neue": 0.2, Bitter: 0.165, "Bree Serif": 0.102, Cabin: 0.1425, Courier: 0.171, "Courier New": 0.23389, "Courier Prime": 0.31, "Crimson Text": 0.146, Dosis: 0.105, "Droid Sans": 0.15454, "Droid Serif": 0.15454, "Fira Sans": 0.225, "Fjalla One": 0.11963, Futura: 0.1106, Geneva: 0.125, "Gill Sans": 0.161, Georgia: 0.15112, Helvetica: 0.121, "Helvetica Neue": 0.128, Hind: 0.2455, Impact: 0.10107, Inconsolata: 0.1655, "Indie Flower": 0.25879, Josefin Sans: 0.25, Lato: 0.113, "League Gothic": 0.165, "Libre Baskerville": 0.15, "Libre Franklin": 0.14, Lobster: 0.125, Lora: 0.16235, "Lucida Grande": 0.122, Merriweather: 0.14502, "Merriweather Sans": 0.14502, Montserrat: 0.1415, Muli: 0.1225, "Noto Sans": 0.11206, "Noto Serif": 0.11206, Nunito: 0.171, "Open Sans": 0.11206, "Open Sans Condensed": 0.11206, Oswald: 0.04761, Oxygen: 0.10449, Palatino: 0.231, "Playfair Display": 0.08447, Poppins: 0.205, "PT Sans": 0.188, "PT Sans Narrow": 0.188, "PT Serif": 0.129, Raleway: 0.147, Roboto: 0.1582, "Roboto Condensed": 0.1582, "Roboto Slab": 0.11157, Rosario: 0.141, "San Francisco": 0.122, "Segoe UI": 0.086, "Slabo": 0.18519, "Source Sans Pro": 0.1445, "Source Code Pro": 0.145, "Source Serif Pro": 0.15, "Space Mono": 0.121, Tahoma: 0.10303, Times: 0.175, "Times New Roman": 0.1626, "Titillium Web": 0.1275, "Trebuchet MS": 0.1416, Ubuntu: 0.1285, "Ubuntu Condensed": 0.1285, "Varela Round": 0.184, Verdana: 0.1023, "Yanone Kaffeesatz": 0.1215, Yrsa: 0.25))
|
4
|
-
// sass-lint:enable max-line-length
|
5
|
-
// sass-lint:enable variable-name-format
|
6
|
-
|
7
|
-
@function constant-get($keys...)
|
8
|
-
$value: $_CONSTANTS // sass-lint:disable-line variable-name-format
|
9
|
-
@each $key in $keys
|
10
|
-
@if $value and map-has-key($value, $key)
|
11
|
-
$value: map-get($value, $key)
|
12
|
-
@else
|
13
|
-
$value: null
|
14
|
-
@return $value
|
15
|
-
|
16
|
-
@function existing($values...)
|
17
|
-
@each $value in $values
|
18
|
-
@if $value
|
19
|
-
@return $value
|
20
|
-
@return null
|
21
|
-
|
22
|
-
@function pow($value, $pow)
|
23
|
-
$pow-value: 1
|
24
|
-
@if $pow > 0
|
25
|
-
@for $i from 1 through $pow
|
26
|
-
$pow-value: $pow-value * $value
|
27
|
-
@else if $pow < 0
|
28
|
-
@for $i from 1 through -$pow
|
29
|
-
$pow-value: $pow-value / $value
|
30
|
-
@return $pow-value
|
31
|
-
|
32
|
-
@function hsba($h-hsb, $s-hsb, $b-hsb, $a: 1)
|
33
|
-
$value: null
|
34
|
-
@if $b-hsb == 0
|
35
|
-
$value: hsla(0, 0, 0, $a)
|
36
|
-
@else
|
37
|
-
$l-hsl: $b-hsb / 2 * (2 - $s-hsb / 100)
|
38
|
-
$rotate-deg: if($l-hsl < 50, $l-hsl * 2, 200 - $l-hsl * 2)
|
39
|
-
$s-hsl: if($s-hsb == 0, 0, $b-hsb * $s-hsb / $rotate-deg)
|
40
|
-
$value: hsla($h-hsb, $s-hsl, $l-hsl, $a)
|
41
|
-
@return $value
|
42
|
-
|
43
|
-
@function _mirror-nth-two($values: null)
|
44
|
-
$right-value: if(length($values) >= 2, nth($values, 2), nth($values, 1))
|
45
|
-
@return $right-value
|
46
|
-
|
47
|
-
@function _mirror-nth-three($values: null)
|
48
|
-
$top-value: nth($values, 1)
|
49
|
-
$bottom-value: if(length($values) >= 3, nth($values, 3), $top-value)
|
50
|
-
@return $bottom-value
|
51
|
-
|
52
|
-
@function _mirror-nth-four($values: null)
|
53
|
-
$left-value: if(length($values) >= 4, nth($values, 4), null)
|
54
|
-
$left-value: if($left-value, $left-value, _mirror-nth-two($values))
|
55
|
-
@return $left-value
|
56
|
-
|
57
|
-
@function mirror-nth($values, $index)
|
58
|
-
$value: null
|
59
|
-
@if $index == 2
|
60
|
-
$value: _mirror-nth-two($values)
|
61
|
-
@else if $index == 3
|
62
|
-
$value: _mirror-nth-three($values)
|
63
|
-
@else if $index == 4
|
64
|
-
$value: _mirror-nth-four($values)
|
65
|
-
@return $value
|
66
|
-
|
67
|
-
@function _is-same-unit($values...)
|
68
|
-
$unit-cache: null
|
69
|
-
@each $value in $values
|
70
|
-
$value-unit: $value / strip-unit($value)
|
71
|
-
@if $value-unit != 0
|
72
|
-
@if not $unit-cache
|
73
|
-
$unit-cache: $value-unit
|
74
|
-
@else
|
75
|
-
@if $unit-cache != $value-unit
|
76
|
-
@return false
|
77
|
-
@return true
|
78
|
-
|
79
|
-
@function _is-rem($value)
|
80
|
-
@if $value / strip-unit($value) == 1rem
|
81
|
-
@return true
|
82
|
-
@return false
|
83
|
-
|
84
|
-
@function strip-unit($value)
|
85
|
-
@return $value / ($value * 0 + 1)
|
86
|
-
|
87
|
-
@function px-to-rem($px)
|
88
|
-
@if $px
|
89
|
-
@return $px / _baseline-height-px(1) * 1rem
|
90
|
-
@return null
|
91
|
-
|
92
|
-
@function _responsive-class-fix($breakpoint)
|
93
|
-
$first-breakpoint: nth(map-keys($breakpoint-width-pxs), 1)
|
94
|
-
$class-fix: if($breakpoint == $first-breakpoint, null, "-#{$breakpoint}")
|
95
|
-
@return $class-fix
|
96
|
-
|
97
|
-
@function _baseline-height-px($count: 1)
|
98
|
-
$baseline: $typography-main-size-px * $typography-main-line-height-ratio / 2
|
99
|
-
$baseline: if($baseline < 12px, 12px, $baseline)
|
100
|
-
@return $baseline * $count
|
101
|
-
|
102
|
-
@function _typo-size-px($level)
|
103
|
-
@if $level
|
104
|
-
$pow: $typography-main-size-level - $level
|
105
|
-
$pow-value: pow($typography-size-scale-ratio, $pow)
|
106
|
-
@return round($typography-main-size-px * $pow-value)
|
107
|
-
@else
|
108
|
-
@return null
|
109
|
-
|
110
|
-
@function _typo-line-height-px($level)
|
111
|
-
@if $level
|
112
|
-
$baseline-count: 1
|
113
|
-
$font-size: _typo-size-px($level)
|
114
|
-
@while _baseline-height-px($baseline-count) / $font-size < 1.2
|
115
|
-
$baseline-count: $baseline-count + 1
|
116
|
-
@return _baseline-height-px($baseline-count)
|
117
|
-
@else
|
118
|
-
@return null
|
119
|
-
|
120
|
-
@function _typo-padding-top-px($level, $typeface-baseline-offset)
|
121
|
-
@if $typeface-baseline-offset
|
122
|
-
$font-size: _typo-size-px($level)
|
123
|
-
$line-height: _typo-line-height-px($level)
|
124
|
-
@return ($line-height - $font-size) / 2 + $font-size * $typeface-baseline-offset
|
125
|
-
@else
|
126
|
-
@return null
|
127
|
-
|
128
|
-
@function _typo-padding-bottom-px($level, $typeface-baseline-offset)
|
129
|
-
@if $typeface-baseline-offset
|
130
|
-
$offset-top: _typo-padding-top-px($level, $typeface-baseline-offset)
|
131
|
-
$offset-bottom: 0
|
132
|
-
$baseline-count: 1
|
133
|
-
@while $offset-bottom <= 0
|
134
|
-
$offset-bottom: _baseline-height-px($baseline-count) - $offset-top
|
135
|
-
$baseline-count: $baseline-count + 1
|
136
|
-
@return $offset-bottom
|
137
|
-
@else
|
138
|
-
@return null
|
139
|
-
|
140
|
-
@function typo-size($level)
|
141
|
-
@return px-to-rem(_typo-size-px($level))
|
142
|
-
|
143
|
-
@function typo-line-height($level)
|
144
|
-
@return px-to-rem(_typo-line-height-px($level))
|
145
|
-
|
146
|
-
@function typo-padding-top($level, $typeface-baseline-offset)
|
147
|
-
@return px-to-rem(_typo-padding-top-px($level, $typeface-baseline-offset))
|
148
|
-
|
149
|
-
@function typo-padding-bottom($type, $typeface-baseline-offset)
|
150
|
-
@return px-to-rem(_typo-padding-bottom-px($type, $typeface-baseline-offset))
|
151
|
-
|
152
|
-
@function _str-replace($string, $search, $replace: "")
|
153
|
-
$index: str-index($string, $search)
|
154
|
-
$sliced: if($index, str-slice($string, 1, $index - 1), null)
|
155
|
-
$replaced-sliced: if($index, str-slice($string, $index + str-length($search)), null)
|
156
|
-
$replaced: if($index, _str-replace($replaced-sliced, $search, $replace), null)
|
157
|
-
@return if($index, $sliced + $replace + $replaced, $string)
|
158
|
-
|
159
|
-
@function svg-encode($svg)
|
160
|
-
@if not str-index($svg, xmlns)
|
161
|
-
$svg: _str-replace($svg, "<svg", '<svg xmlns="http://www.w3.org/2000/svg"')
|
162
|
-
$encoded: ""
|
163
|
-
$slice: 2000
|
164
|
-
$index: 0
|
165
|
-
$loops: ceil(str-length($svg) / $slice)
|
166
|
-
@for $i from 1 through $loops
|
167
|
-
$chunk: str-slice($svg, $index, $index + $slice - 1)
|
168
|
-
$chunk: _str-replace($chunk, '"', "'")
|
169
|
-
$chunk: _str-replace($chunk, "%", "%25")
|
170
|
-
$chunk: _str-replace($chunk, "&", "%26")
|
171
|
-
$chunk: _str-replace($chunk, "#", "%23")
|
172
|
-
$chunk: _str-replace($chunk, "{", "%7B")
|
173
|
-
$chunk: _str-replace($chunk, "}", "%7D")
|
174
|
-
$chunk: _str-replace($chunk, "<", "%3C")
|
175
|
-
$chunk: _str-replace($chunk, ">", "%3E")
|
176
|
-
// The maybe list
|
177
|
-
// Keep size and compile time down
|
178
|
-
// ... only add on documented fail
|
179
|
-
// $chunk: _str-replace($chunk, '|', '%7C')
|
180
|
-
// $chunk: _str-replace($chunk, '[', '%5B')
|
181
|
-
// $chunk: _str-replace($chunk, ']', '%5D')
|
182
|
-
// $chunk: _str-replace($chunk, '^', '%5E')
|
183
|
-
// $chunk: _str-replace($chunk, '`', '%60')
|
184
|
-
// $chunk: _str-replace($chunk, ';', '%3B')
|
185
|
-
// $chunk: _str-replace($chunk, '?', '%3F')
|
186
|
-
// $chunk: _str-replace($chunk, ':', '%3A')
|
187
|
-
// $chunk: _str-replace($chunk, '@', '%40')
|
188
|
-
// $chunk: _str-replace($chunk, '=', '%3D')
|
189
|
-
$encoded: #{$encoded}#{$chunk}
|
190
|
-
$index: $index + $slice
|
191
|
-
@return unquote('"data:image/svg+xml,#{$encoded}"')
|
192
|
-
|
193
|
-
@function svg-icon($icon: null, $fill: null, $stroke: null)
|
194
|
-
$icon: if($fill, _str-replace($icon, "#fill", "#{$fill}"), $icon)
|
195
|
-
$icon: if($stroke, _str-replace($icon, "#stroke", "#{$stroke}"), $icon)
|
196
|
-
@return svg-encode($icon)
|
197
|
-
|
198
|
-
@function _form-icon-margin-top($form-element-textfield-height-rem, $form-element-typography-size-level)
|
199
|
-
$border-bottom-width: mirror-nth($form-element-border-width, 3)
|
200
|
-
$border-top-width: nth($form-element-border-width, 1)
|
201
|
-
$border-bottom-unit-is-rem: _is-rem($border-bottom-width)
|
202
|
-
$border-top-unit-is-rem: _is-rem($border-top-width)
|
203
|
-
$font-size: typo-size($form-element-typography-size-level)
|
204
|
-
$icon-size: $font-size * strip-unit($form-element-icon-size-em)
|
205
|
-
$total-height: ($form-element-textfield-height-rem + $icon-size) / 2
|
206
|
-
$border-unit-is-rem: $border-bottom-unit-is-rem and $border-top-unit-is-rem
|
207
|
-
$border-unit-is-the-same: _is-same-unit($border-bottom-width, $border-top-width)
|
208
|
-
$border-vertical-diff: if($border-unit-is-the-same, ($border-top-width - $border-bottom-width) / 2, null)
|
209
|
-
@if $border-unit-is-rem
|
210
|
-
@return $border-vertical-diff - $total-height
|
211
|
-
@else if $border-unit-is-the-same
|
212
|
-
@if strip-unit($border-vertical-diff) == 0
|
213
|
-
@return - $total-height
|
214
|
-
@return calc(#{$border-vertical-diff} - #{$total-height})
|
215
|
-
@else
|
216
|
-
@return calc(#{$border-top-width / 2} - #{$border-bottom-width / 2} - #{$total-height})
|
217
|
-
|
218
|
-
@function form-focus-icon-color()
|
219
|
-
$icon-color: if($form-element-focus-icon-color, $form-element-focus-icon-color, $form-element-icon-color)
|
220
|
-
@return $icon-color
|
221
|
-
|
222
|
-
@function form-error-icon-color()
|
223
|
-
$icon-color: if($form-element-error-icon-color, $form-element-error-icon-color, $form-element-icon-color)
|
224
|
-
@return $icon-color
|
225
|
-
|
226
|
-
@function form-error-focus-icon-color()
|
227
|
-
$icon-color: if($form-element-focus-icon-color, $form-element-focus-icon-color, $form-element-error-icon-color)
|
228
|
-
@return $icon-color
|
229
|
-
|
230
|
-
@function form-focus-background()
|
231
|
-
$background: if($form-element-focus-background, $form-element-focus-background, $form-element-background)
|
232
|
-
@return $background
|
233
|
-
|
234
|
-
@function form-error-background()
|
235
|
-
$background: if($form-element-error-background, $form-element-error-background, $form-element-background)
|
236
|
-
@return $background
|
237
|
-
|
238
|
-
@function form-error-focus-background()
|
239
|
-
$background: if($form-element-focus-background, $form-element-focus-background, $form-element-error-background)
|
1
|
+
// sass-lint:disable max-line-length
|
2
|
+
// sass-lint:disable variable-name-format
|
3
|
+
$_CONSTANTS: (scale-ratios: (minor-second: 1.067, major-second: 1.125, minor-third: 1.2, major-third: 1.25, perfect-fourth: 1.333, augmented-fourth: 1.414, perfect-fifth: 1.5, golden-ratio: 1.618), typography-stacks: (sans-serif: ("Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif), code: (SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)), baseline-offset-ratios: (Abel: 0.15772, "Abril Fatface": 0.1165, Anton: 0.096, Arial: 0.15332, "Arial Black": 0.10449, "Arial Narrow": 0.13818, Arimo: 0.15332, Arvo: 0.14307, Avenir: 0.183, Baskerville: 0.17407, "Bebas Neue": 0.2, Bitter: 0.165, "Bree Serif": 0.102, Cabin: 0.1425, Courier: 0.171, "Courier New": 0.23389, "Courier Prime": 0.31, "Crimson Text": 0.146, Dosis: 0.105, "Droid Sans": 0.15454, "Droid Serif": 0.15454, "Fira Sans": 0.225, "Fjalla One": 0.11963, Futura: 0.1106, Geneva: 0.125, "Gill Sans": 0.161, Georgia: 0.15112, Helvetica: 0.121, "Helvetica Neue": 0.128, Hind: 0.2455, Impact: 0.10107, Inconsolata: 0.1655, "Indie Flower": 0.25879, Josefin Sans: 0.25, Lato: 0.113, "League Gothic": 0.165, "Libre Baskerville": 0.15, "Libre Franklin": 0.14, Lobster: 0.125, Lora: 0.16235, "Lucida Grande": 0.122, Merriweather: 0.14502, "Merriweather Sans": 0.14502, Montserrat: 0.1415, Muli: 0.1225, "Noto Sans": 0.11206, "Noto Serif": 0.11206, Nunito: 0.171, "Open Sans": 0.11206, "Open Sans Condensed": 0.11206, Oswald: 0.04761, Oxygen: 0.10449, Palatino: 0.231, "Playfair Display": 0.08447, Poppins: 0.205, "PT Sans": 0.188, "PT Sans Narrow": 0.188, "PT Serif": 0.129, Raleway: 0.147, Roboto: 0.1582, "Roboto Condensed": 0.1582, "Roboto Slab": 0.11157, Rosario: 0.141, "San Francisco": 0.122, "Segoe UI": 0.086, "Slabo": 0.18519, "Source Sans Pro": 0.1445, "Source Code Pro": 0.145, "Source Serif Pro": 0.15, "Space Mono": 0.121, Tahoma: 0.10303, Times: 0.175, "Times New Roman": 0.1626, "Titillium Web": 0.1275, "Trebuchet MS": 0.1416, Ubuntu: 0.1285, "Ubuntu Condensed": 0.1285, "Varela Round": 0.184, Verdana: 0.1023, "Yanone Kaffeesatz": 0.1215, Yrsa: 0.25))
|
4
|
+
// sass-lint:enable max-line-length
|
5
|
+
// sass-lint:enable variable-name-format
|
6
|
+
|
7
|
+
@function constant-get($keys...)
|
8
|
+
$value: $_CONSTANTS // sass-lint:disable-line variable-name-format
|
9
|
+
@each $key in $keys
|
10
|
+
@if $value and map-has-key($value, $key)
|
11
|
+
$value: map-get($value, $key)
|
12
|
+
@else
|
13
|
+
$value: null
|
14
|
+
@return $value
|
15
|
+
|
16
|
+
@function existing($values...)
|
17
|
+
@each $value in $values
|
18
|
+
@if $value
|
19
|
+
@return $value
|
20
|
+
@return null
|
21
|
+
|
22
|
+
@function pow($value, $pow)
|
23
|
+
$pow-value: 1
|
24
|
+
@if $pow > 0
|
25
|
+
@for $i from 1 through $pow
|
26
|
+
$pow-value: $pow-value * $value
|
27
|
+
@else if $pow < 0
|
28
|
+
@for $i from 1 through -$pow
|
29
|
+
$pow-value: $pow-value / $value
|
30
|
+
@return $pow-value
|
31
|
+
|
32
|
+
@function hsba($h-hsb, $s-hsb, $b-hsb, $a: 1)
|
33
|
+
$value: null
|
34
|
+
@if $b-hsb == 0
|
35
|
+
$value: hsla(0, 0, 0, $a)
|
36
|
+
@else
|
37
|
+
$l-hsl: $b-hsb / 2 * (2 - $s-hsb / 100)
|
38
|
+
$rotate-deg: if($l-hsl < 50, $l-hsl * 2, 200 - $l-hsl * 2)
|
39
|
+
$s-hsl: if($s-hsb == 0, 0, $b-hsb * $s-hsb / $rotate-deg)
|
40
|
+
$value: hsla($h-hsb, $s-hsl, $l-hsl, $a)
|
41
|
+
@return $value
|
42
|
+
|
43
|
+
@function _mirror-nth-two($values: null)
|
44
|
+
$right-value: if(length($values) >= 2, nth($values, 2), nth($values, 1))
|
45
|
+
@return $right-value
|
46
|
+
|
47
|
+
@function _mirror-nth-three($values: null)
|
48
|
+
$top-value: nth($values, 1)
|
49
|
+
$bottom-value: if(length($values) >= 3, nth($values, 3), $top-value)
|
50
|
+
@return $bottom-value
|
51
|
+
|
52
|
+
@function _mirror-nth-four($values: null)
|
53
|
+
$left-value: if(length($values) >= 4, nth($values, 4), null)
|
54
|
+
$left-value: if($left-value, $left-value, _mirror-nth-two($values))
|
55
|
+
@return $left-value
|
56
|
+
|
57
|
+
@function mirror-nth($values, $index)
|
58
|
+
$value: null
|
59
|
+
@if $index == 2
|
60
|
+
$value: _mirror-nth-two($values)
|
61
|
+
@else if $index == 3
|
62
|
+
$value: _mirror-nth-three($values)
|
63
|
+
@else if $index == 4
|
64
|
+
$value: _mirror-nth-four($values)
|
65
|
+
@return $value
|
66
|
+
|
67
|
+
@function _is-same-unit($values...)
|
68
|
+
$unit-cache: null
|
69
|
+
@each $value in $values
|
70
|
+
$value-unit: $value / strip-unit($value)
|
71
|
+
@if $value-unit != 0
|
72
|
+
@if not $unit-cache
|
73
|
+
$unit-cache: $value-unit
|
74
|
+
@else
|
75
|
+
@if $unit-cache != $value-unit
|
76
|
+
@return false
|
77
|
+
@return true
|
78
|
+
|
79
|
+
@function _is-rem($value)
|
80
|
+
@if $value / strip-unit($value) == 1rem
|
81
|
+
@return true
|
82
|
+
@return false
|
83
|
+
|
84
|
+
@function strip-unit($value)
|
85
|
+
@return $value / ($value * 0 + 1)
|
86
|
+
|
87
|
+
@function px-to-rem($px)
|
88
|
+
@if $px
|
89
|
+
@return $px / _baseline-height-px(1) * 1rem
|
90
|
+
@return null
|
91
|
+
|
92
|
+
@function _responsive-class-fix($breakpoint)
|
93
|
+
$first-breakpoint: nth(map-keys($breakpoint-width-pxs), 1)
|
94
|
+
$class-fix: if($breakpoint == $first-breakpoint, null, "-#{$breakpoint}")
|
95
|
+
@return $class-fix
|
96
|
+
|
97
|
+
@function _baseline-height-px($count: 1)
|
98
|
+
$baseline: $typography-main-size-px * $typography-main-line-height-ratio / 2
|
99
|
+
$baseline: if($baseline < 12px, 12px, $baseline)
|
100
|
+
@return $baseline * $count
|
101
|
+
|
102
|
+
@function _typo-size-px($level)
|
103
|
+
@if $level
|
104
|
+
$pow: $typography-main-size-level - $level
|
105
|
+
$pow-value: pow($typography-size-scale-ratio, $pow)
|
106
|
+
@return round($typography-main-size-px * $pow-value)
|
107
|
+
@else
|
108
|
+
@return null
|
109
|
+
|
110
|
+
@function _typo-line-height-px($level)
|
111
|
+
@if $level
|
112
|
+
$baseline-count: 1
|
113
|
+
$font-size: _typo-size-px($level)
|
114
|
+
@while _baseline-height-px($baseline-count) / $font-size < 1.2
|
115
|
+
$baseline-count: $baseline-count + 1
|
116
|
+
@return _baseline-height-px($baseline-count)
|
117
|
+
@else
|
118
|
+
@return null
|
119
|
+
|
120
|
+
@function _typo-padding-top-px($level, $typeface-baseline-offset)
|
121
|
+
@if $typeface-baseline-offset
|
122
|
+
$font-size: _typo-size-px($level)
|
123
|
+
$line-height: _typo-line-height-px($level)
|
124
|
+
@return ($line-height - $font-size) / 2 + $font-size * $typeface-baseline-offset
|
125
|
+
@else
|
126
|
+
@return null
|
127
|
+
|
128
|
+
@function _typo-padding-bottom-px($level, $typeface-baseline-offset)
|
129
|
+
@if $typeface-baseline-offset
|
130
|
+
$offset-top: _typo-padding-top-px($level, $typeface-baseline-offset)
|
131
|
+
$offset-bottom: 0
|
132
|
+
$baseline-count: 1
|
133
|
+
@while $offset-bottom <= 0
|
134
|
+
$offset-bottom: _baseline-height-px($baseline-count) - $offset-top
|
135
|
+
$baseline-count: $baseline-count + 1
|
136
|
+
@return $offset-bottom
|
137
|
+
@else
|
138
|
+
@return null
|
139
|
+
|
140
|
+
@function typo-size($level)
|
141
|
+
@return px-to-rem(_typo-size-px($level))
|
142
|
+
|
143
|
+
@function typo-line-height($level)
|
144
|
+
@return px-to-rem(_typo-line-height-px($level))
|
145
|
+
|
146
|
+
@function typo-padding-top($level, $typeface-baseline-offset)
|
147
|
+
@return px-to-rem(_typo-padding-top-px($level, $typeface-baseline-offset))
|
148
|
+
|
149
|
+
@function typo-padding-bottom($type, $typeface-baseline-offset)
|
150
|
+
@return px-to-rem(_typo-padding-bottom-px($type, $typeface-baseline-offset))
|
151
|
+
|
152
|
+
@function _str-replace($string, $search, $replace: "")
|
153
|
+
$index: str-index($string, $search)
|
154
|
+
$sliced: if($index, str-slice($string, 1, $index - 1), null)
|
155
|
+
$replaced-sliced: if($index, str-slice($string, $index + str-length($search)), null)
|
156
|
+
$replaced: if($index, _str-replace($replaced-sliced, $search, $replace), null)
|
157
|
+
@return if($index, $sliced + $replace + $replaced, $string)
|
158
|
+
|
159
|
+
@function svg-encode($svg)
|
160
|
+
@if not str-index($svg, xmlns)
|
161
|
+
$svg: _str-replace($svg, "<svg", '<svg xmlns="http://www.w3.org/2000/svg"')
|
162
|
+
$encoded: ""
|
163
|
+
$slice: 2000
|
164
|
+
$index: 0
|
165
|
+
$loops: ceil(str-length($svg) / $slice)
|
166
|
+
@for $i from 1 through $loops
|
167
|
+
$chunk: str-slice($svg, $index, $index + $slice - 1)
|
168
|
+
$chunk: _str-replace($chunk, '"', "'")
|
169
|
+
$chunk: _str-replace($chunk, "%", "%25")
|
170
|
+
$chunk: _str-replace($chunk, "&", "%26")
|
171
|
+
$chunk: _str-replace($chunk, "#", "%23")
|
172
|
+
$chunk: _str-replace($chunk, "{", "%7B")
|
173
|
+
$chunk: _str-replace($chunk, "}", "%7D")
|
174
|
+
$chunk: _str-replace($chunk, "<", "%3C")
|
175
|
+
$chunk: _str-replace($chunk, ">", "%3E")
|
176
|
+
// The maybe list
|
177
|
+
// Keep size and compile time down
|
178
|
+
// ... only add on documented fail
|
179
|
+
// $chunk: _str-replace($chunk, '|', '%7C')
|
180
|
+
// $chunk: _str-replace($chunk, '[', '%5B')
|
181
|
+
// $chunk: _str-replace($chunk, ']', '%5D')
|
182
|
+
// $chunk: _str-replace($chunk, '^', '%5E')
|
183
|
+
// $chunk: _str-replace($chunk, '`', '%60')
|
184
|
+
// $chunk: _str-replace($chunk, ';', '%3B')
|
185
|
+
// $chunk: _str-replace($chunk, '?', '%3F')
|
186
|
+
// $chunk: _str-replace($chunk, ':', '%3A')
|
187
|
+
// $chunk: _str-replace($chunk, '@', '%40')
|
188
|
+
// $chunk: _str-replace($chunk, '=', '%3D')
|
189
|
+
$encoded: #{$encoded}#{$chunk}
|
190
|
+
$index: $index + $slice
|
191
|
+
@return unquote('"data:image/svg+xml,#{$encoded}"')
|
192
|
+
|
193
|
+
@function svg-icon($icon: null, $fill: null, $stroke: null)
|
194
|
+
$icon: if($fill, _str-replace($icon, "#fill", "#{$fill}"), $icon)
|
195
|
+
$icon: if($stroke, _str-replace($icon, "#stroke", "#{$stroke}"), $icon)
|
196
|
+
@return svg-encode($icon)
|
197
|
+
|
198
|
+
@function _form-icon-margin-top($form-element-textfield-height-rem, $form-element-typography-size-level)
|
199
|
+
$border-bottom-width: mirror-nth($form-element-border-width, 3)
|
200
|
+
$border-top-width: nth($form-element-border-width, 1)
|
201
|
+
$border-bottom-unit-is-rem: _is-rem($border-bottom-width)
|
202
|
+
$border-top-unit-is-rem: _is-rem($border-top-width)
|
203
|
+
$font-size: typo-size($form-element-typography-size-level)
|
204
|
+
$icon-size: $font-size * strip-unit($form-element-icon-size-em)
|
205
|
+
$total-height: ($form-element-textfield-height-rem + $icon-size) / 2
|
206
|
+
$border-unit-is-rem: $border-bottom-unit-is-rem and $border-top-unit-is-rem
|
207
|
+
$border-unit-is-the-same: _is-same-unit($border-bottom-width, $border-top-width)
|
208
|
+
$border-vertical-diff: if($border-unit-is-the-same, ($border-top-width - $border-bottom-width) / 2, null)
|
209
|
+
@if $border-unit-is-rem
|
210
|
+
@return $border-vertical-diff - $total-height
|
211
|
+
@else if $border-unit-is-the-same
|
212
|
+
@if strip-unit($border-vertical-diff) == 0
|
213
|
+
@return - $total-height
|
214
|
+
@return calc(#{$border-vertical-diff} - #{$total-height})
|
215
|
+
@else
|
216
|
+
@return calc(#{$border-top-width / 2} - #{$border-bottom-width / 2} - #{$total-height})
|
217
|
+
|
218
|
+
@function form-focus-icon-color()
|
219
|
+
$icon-color: if($form-element-focus-icon-color, $form-element-focus-icon-color, $form-element-icon-color)
|
220
|
+
@return $icon-color
|
221
|
+
|
222
|
+
@function form-error-icon-color()
|
223
|
+
$icon-color: if($form-element-error-icon-color, $form-element-error-icon-color, $form-element-icon-color)
|
224
|
+
@return $icon-color
|
225
|
+
|
226
|
+
@function form-error-focus-icon-color()
|
227
|
+
$icon-color: if($form-element-focus-icon-color, $form-element-focus-icon-color, $form-element-error-icon-color)
|
228
|
+
@return $icon-color
|
229
|
+
|
230
|
+
@function form-focus-background()
|
231
|
+
$background: if($form-element-focus-background, $form-element-focus-background, $form-element-background)
|
232
|
+
@return $background
|
233
|
+
|
234
|
+
@function form-error-background()
|
235
|
+
$background: if($form-element-error-background, $form-element-error-background, $form-element-background)
|
236
|
+
@return $background
|
237
|
+
|
238
|
+
@function form-error-focus-background()
|
239
|
+
$background: if($form-element-focus-background, $form-element-focus-background, $form-element-error-background)
|
240
240
|
@return $background
|