luda 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/luda-degradation.js +2 -2
  3. data/assets/javascripts/luda-degradation.min.js +2 -2
  4. data/assets/javascripts/luda-sprockets.js +2 -2
  5. data/assets/javascripts/luda.js +719 -250
  6. data/assets/javascripts/luda.js.map +1 -1
  7. data/assets/javascripts/luda.min.js +3 -3
  8. data/assets/javascripts/luda.min.js.map +1 -1
  9. data/assets/javascripts/luda/behaviors/{enter-click.js → enter.js} +8 -6
  10. data/assets/javascripts/luda/behaviors/focus.js +14 -8
  11. data/assets/javascripts/luda/behaviors/readonly.js +4 -4
  12. data/assets/javascripts/luda/behaviors/{radio-tab.js → tabulate.js} +8 -6
  13. data/assets/javascripts/luda/behaviors/toggle.js +72 -18
  14. data/assets/javascripts/luda/dom.js +62 -0
  15. data/assets/javascripts/luda/elements/form-file.js +13 -4
  16. data/assets/javascripts/luda/elements/form-select.js +9 -5
  17. data/assets/javascripts/luda/event.js +11 -3
  18. data/assets/javascripts/luda/{component.js → factory.js} +149 -55
  19. data/assets/javascripts/luda/index.js +4 -4
  20. data/assets/javascripts/luda/install.js +2 -2
  21. data/assets/javascripts/luda/patterns/carousel.js +85 -59
  22. data/assets/javascripts/luda/patterns/dropdown.js +86 -68
  23. data/assets/javascripts/luda/patterns/form-dropdown.js +8 -8
  24. data/assets/javascripts/luda/patterns/tab.js +62 -23
  25. data/assets/javascripts/luda/static.js +224 -0
  26. data/assets/stylesheets/luda/_core/_functions.sass +11 -19
  27. data/assets/stylesheets/luda/_core/_variables.sass +140 -131
  28. data/assets/stylesheets/luda/_core/behaviors/_focus.sass +2 -2
  29. data/assets/stylesheets/luda/_core/elements/_button.sass +1 -1
  30. data/assets/stylesheets/luda/_core/elements/_grid.sass +0 -3
  31. data/assets/stylesheets/luda/_core/elements/_scrollbar.sass +8 -2
  32. data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +22 -31
  33. data/assets/stylesheets/luda/_core/elements/form/_form-element.sass +1 -1
  34. data/assets/stylesheets/luda/_core/elements/form/_form-helper.sass +19 -19
  35. data/assets/stylesheets/luda/_core/elements/form/_form-range.sass +19 -19
  36. data/assets/stylesheets/luda/_core/elements/form/_form-row.sass +43 -59
  37. data/assets/stylesheets/luda/_core/elements/typography/_quote.sass +1 -1
  38. data/assets/stylesheets/luda/_core/elements/typography/_typography.sass +9 -9
  39. data/assets/stylesheets/luda/_core/mixins/_dropdown.sass +8 -6
  40. data/assets/stylesheets/luda/_core/mixins/_form.sass +12 -12
  41. data/assets/stylesheets/luda/_core/mixins/_media-query.sass +12 -12
  42. data/assets/stylesheets/luda/_core/mixins/_typography.sass +4 -4
  43. data/assets/stylesheets/luda/_core/patterns/_breadcrumb.sass +2 -2
  44. data/assets/stylesheets/luda/_core/patterns/_button-group.sass +1 -1
  45. data/assets/stylesheets/luda/_core/patterns/_button-icon.sass +2 -2
  46. data/assets/stylesheets/luda/_core/patterns/_carousel.sass +13 -13
  47. data/assets/stylesheets/luda/_core/patterns/_dropdown.sass +5 -1
  48. data/assets/stylesheets/luda/_core/patterns/_form-dropdown.sass +3 -3
  49. data/assets/stylesheets/luda/_core/patterns/_form-group.sass +11 -11
  50. data/assets/stylesheets/luda/_core/patterns/_form-icon.sass +13 -19
  51. data/assets/stylesheets/luda/_core/patterns/_navigation.sass +5 -5
  52. data/assets/stylesheets/luda/_core/patterns/_search-bar.sass +2 -2
  53. data/assets/stylesheets/luda/_core/patterns/_tab.sass +1 -3
  54. data/assets/stylesheets/luda/_core/utilities/_border.sass +15 -15
  55. data/assets/stylesheets/luda/_core/utilities/_color.sass +4 -1
  56. data/assets/stylesheets/luda/_core/utilities/_display.sass +1 -1
  57. data/assets/stylesheets/luda/_core/utilities/_flex.sass +3 -0
  58. data/assets/stylesheets/luda/_core/utilities/_shadow.sass +12 -12
  59. data/assets/stylesheets/luda/_core/utilities/_spacing.sass +227 -0
  60. data/assets/stylesheets/luda/_core/utilities/_visibility.sass +1 -1
  61. data/assets/stylesheets/luda/_default.sass +1 -1
  62. data/assets/stylesheets/luda/default/_banner.sass +2 -2
  63. data/assets/stylesheets/luda/default/index.sass +1 -1
  64. data/assets/stylesheets/luda/default/utilities/_border.sass +4 -4
  65. data/assets/stylesheets/luda/default/utilities/_shadow.sass +4 -4
  66. data/assets/stylesheets/luda/default/utilities/_spacing.sass +5 -0
  67. data/lib/luda/version.rb +1 -1
  68. metadata +9 -11
  69. data/assets/javascripts/luda/singleton.js +0 -77
  70. data/assets/stylesheets/luda/_core/patterns/_form-button.sass +0 -23
  71. data/assets/stylesheets/luda/_core/patterns/_nav.sass +0 -165
  72. data/assets/stylesheets/luda/default/patterns/_form-button.sass +0 -9
  73. data/assets/stylesheets/luda/default/patterns/_nav.sass +0 -10
@@ -63,6 +63,6 @@
63
63
  vertical-align: middle
64
64
  width: 2em
65
65
  margin-right: 1em
66
- border-width: $typography-quote-block-cite-lead-height 0 0
66
+ border-width: $typography-quote-block-cite-line-height 0 0
67
67
  content: ""
68
68
  border-style: solid
@@ -4,13 +4,13 @@
4
4
 
5
5
  $is-default-typo-level: $type-level == $typography-main-size-level
6
6
  $paragraph-selector: if($is-default-typo-level, "p,.p#{$type-level}", ".p#{$type-level}")
7
- $lead-selector: "h#{$type-level},.h#{$type-level}"
8
- $baseline-offset-ratio-changed: $typography-lead-baseline-offset-ratio != $typography-main-baseline-offset-ratio
7
+ $heading-selector: "h#{$type-level},.h#{$type-level}"
8
+ $baseline-offset-ratio-changed: $typography-heading-baseline-offset-ratio != $typography-main-baseline-offset-ratio
9
9
 
10
- @if $typography-lead-baseline-offset-ratio and $baseline-offset-ratio-changed
10
+ @if $typography-heading-baseline-offset-ratio and $baseline-offset-ratio-changed
11
11
 
12
- #{$lead-selector}
13
- +typo-level($type-level, $typography-lead-baseline-offset-ratio)
12
+ #{$heading-selector}
13
+ +typo-level($type-level, $typography-heading-baseline-offset-ratio)
14
14
  display: block
15
15
 
16
16
  #{$paragraph-selector}
@@ -19,7 +19,7 @@
19
19
 
20
20
  @else
21
21
 
22
- #{$lead-selector},
22
+ #{$heading-selector},
23
23
  #{$paragraph-selector}
24
24
  +typo-level($type-level, $typography-main-baseline-offset-ratio)
25
25
  display: block
@@ -40,9 +40,9 @@
40
40
  .h4,
41
41
  .h5,
42
42
  .h6
43
- color: $typography-lead-color
44
- font-family: $typography-lead
45
- font-weight: $typography-lead-font-weight
43
+ color: $typography-heading-color
44
+ font-family: $typography-heading
45
+ font-weight: $typography-heading-font-weight
46
46
 
47
47
 
48
48
 
@@ -2,17 +2,19 @@
2
2
 
3
3
  $class-fix: if($breakpoint, "-#{$breakpoint}", null)
4
4
 
5
- .dropdown-absolute#{$class-fix}.dropdown-active > .dropdown-menu
6
- display: block
5
+ .dropdown-absolute#{$class-fix} > .dropdown-menu
7
6
  position: relative
8
7
  z-index: $z-index-much-higher
9
8
  margin: 0
10
9
  overflow: visible
11
10
 
11
+ .dropdown-absolute#{$class-fix}.dropdown-active > .dropdown-menu
12
+ display: block
13
+
12
14
  .dropdown-absolute#{$class-fix} > .dropdown-menu > .dropdown-items
13
15
  position: absolute
14
16
  max-height: $dropdown-absolute-max-height-rem
15
- margin: $dropdown-absolute-drop-gap-rem 0 0
17
+ margin: $dropdown-absolute-active-gap-rem 0 0
16
18
  overflow: auto
17
19
  -webkit-overflow-scrolling: touch
18
20
  background: $dropdown-absolute-fixed-background
@@ -26,15 +28,15 @@
26
28
 
27
29
  .dropdown-absolute#{$class-fix}.dropdown-top > .dropdown-menu > .dropdown-items
28
30
  bottom: 0
29
- margin: 0 0 $dropdown-absolute-drop-gap-rem
31
+ margin: 0 0 $dropdown-absolute-active-gap-rem
30
32
 
31
33
  .dropdown-absolute#{$class-fix}.dropdown-align-right > .dropdown-menu > .dropdown-items
32
34
  right: 0
33
35
 
34
36
  .dropdown-absolute#{$class-fix}.dropdown-right > .dropdown-menu > .dropdown-items
35
37
  left: 100%
36
- margin: 0 0 0 $dropdown-absolute-drop-gap-rem
38
+ margin: 0 0 0 $dropdown-absolute-active-gap-rem
37
39
 
38
40
  .dropdown-absolute#{$class-fix}.dropdown-left > .dropdown-menu > .dropdown-items
39
41
  right: 100%
40
- margin: 0 $dropdown-absolute-drop-gap-rem 0 0
42
+ margin: 0 $dropdown-absolute-active-gap-rem 0 0
@@ -1,14 +1,14 @@
1
- =form-checkbox-or-radio-background-icon($icon, $icon-color, $background)
1
+ =form-element-checkfield-background($icon, $icon-color, $background)
2
2
  background: url(svg-icon($icon, $icon-color)) center / contain no-repeat, $background
3
3
 
4
- =form-row-background-icon($icon, $icon-color, $background)
5
- background: url(svg-icon($icon, $icon-color)) right $form-element-text-helvertical-padding-em (center / $form-element-icon-size-em) no-repeat, $background
4
+ =form-element-background($icon, $icon-color, $background)
5
+ background: url(svg-icon($icon, $icon-color)) right $form-element-horizontal-padding-em (center / $form-element-icon-size-em) no-repeat, $background
6
6
 
7
7
  =_form-range-track-skin
8
8
  background: $form-element-track-background
9
9
  border-radius: $form-element-track-border-radius
10
10
 
11
- =_form-range-thumb-styles
11
+ =_form-thumb-styles
12
12
  width: $form-element-thumb-width-em
13
13
  height: $form-element-thumb-height-em
14
14
  border: $form-element-border-style $form-element-border-width $form-element-thumb-border-color
@@ -16,12 +16,12 @@
16
16
  border-radius: $form-element-thumb-border-radius
17
17
  box-shadow: $form-element-box-shadow
18
18
 
19
- =_form-range-focus-thumb-skin
20
- background: $form-element-focus-thumb-background
21
- border-color: $form-element-focus-thumb-border-color
22
- box-shadow: $form-element-focus-box-shadow
19
+ =_form-thumb-skin-on-focus
20
+ background: $form-element-thumb-background-on-focus
21
+ border-color: $form-element-thumb-border-color-on-focus
22
+ box-shadow: $form-element-box-shadow-on-focus
23
23
 
24
- =_form-range-error-thumb-skin
25
- background: $form-element-error-thumb-background
26
- border-color: $form-element-error-thumb-border-color
27
- box-shadow: $form-element-error-box-shadow
24
+ =_form-thumb-skin-on-error
25
+ background: $form-element-thumb-background-on-error
26
+ border-color: $form-element-thumb-border-color-on-error
27
+ box-shadow: $form-element-box-shadow-on-error
@@ -1,4 +1,4 @@
1
- =_media-query($breakpoints, $breakpoint, $query-rule, $down-value: 0)
1
+ =_media-query($breakpoints, $breakpoint, $query-rule, $minus-value: 0)
2
2
  $breakpoint-value: map-get($breakpoints, $breakpoint)
3
3
  $query-rule-min: null
4
4
  $breakpoint-max-value: null
@@ -10,13 +10,13 @@
10
10
  @else
11
11
  $query-rule-min: "(min-#{$query-rule}:#{$breakpoint-value})"
12
12
 
13
- @if $down-value > 0
13
+ @if $minus-value > 0
14
14
  $breakpoints-keys: map-keys($breakpoints)
15
15
  $breakpoints-values: map-values($breakpoints)
16
16
  $breakpoint-index: index($breakpoints-keys, $breakpoint)
17
17
  $breakpoint-max-value: null
18
18
  @if $breakpoint-index < length($breakpoints-keys)
19
- $breakpoint-max-value: nth($breakpoints-values, $breakpoint-index + 1) - $down-value
19
+ $breakpoint-max-value: nth($breakpoints-values, $breakpoint-index + 1) - $minus-value
20
20
  @else
21
21
  $breakpoint-max-value: null
22
22
  @if $breakpoint-max-value and $breakpoint-max-value > 0
@@ -46,19 +46,19 @@
46
46
 
47
47
 
48
48
 
49
- =media-width($breakpoint, $only-breakpoint: false)
50
- $down-value: if($only-breakpoint, 1, 0)
51
- +_media-query($breakpoint-width-pxs, $breakpoint, width, $down-value)
49
+ =media-width($breakpoint, $less-than-next: false)
50
+ $minus-value: if($less-than-next, 1, 0)
51
+ +_media-query($breakpoint-width-pxs, $breakpoint, width, $minus-value)
52
52
  @content
53
53
 
54
- =media-resolution($breakpoint, $only-breakpoint: false)
55
- $down-value: if($only-breakpoint, 9.6, 0)
56
- +_media-query($breakpoint-resolutions, $breakpoint, resolution, $down-value)
54
+ =media-resolution($breakpoint, $less-than-next: false)
55
+ $minus-value: if($less-than-next, 9.6, 0)
56
+ +_media-query($breakpoint-resolutions, $breakpoint, resolution, $minus-value)
57
57
  @content
58
58
 
59
- =media-aspect-ratio($breakpoint, $only-breakpoint: false)
60
- $down-value: if($only-breakpoint, 0.0001, 0)
61
- +_media-query($breakpoint-aspect-ratios, $breakpoint, aspect-ratio, $down-value)
59
+ =media-aspect-ratio($breakpoint, $less-than-next: false)
60
+ $minus-value: if($less-than-next, 0.0001, 0)
61
+ +_media-query($breakpoint-aspect-ratios, $breakpoint, aspect-ratio, $minus-value)
62
62
  @content
63
63
 
64
64
  =media-print
@@ -7,14 +7,14 @@
7
7
  font-size: typo-size($type-level)
8
8
  line-height: typo-line-height($type-level)
9
9
 
10
- =typo-link($class: null, $color: null, $hover-color: null, $active-color: null)
11
- a.link-#{$class}:not(.btn)
10
+ =typo-link($name: null, $color: null, $hover-color: null, $active-color: null)
11
+ a.link-#{$name}:not(.btn)
12
12
  color: $color
13
13
 
14
- a.link-#{$class}:not(.btn):hover
14
+ a.link-#{$name}:not(.btn):hover
15
15
  color: $hover-color
16
16
 
17
- a.link-#{$class}:not(.btn):active
17
+ a.link-#{$name}:not(.btn):active
18
18
  color: $active-color
19
19
 
20
20
  =font-face($family: null, $style: normal, $weight: 400, $locals: null, $urls: null, $unicodes: null)
@@ -8,8 +8,8 @@
8
8
  color: $breadcrumb-color
9
9
 
10
10
  .breadcrumb li:not(:first-child)::before
11
- padding: $breadcrumb-children-padding-em
12
- content: $breadcrumb-children-spliter
11
+ padding: $breadcrumb-spliter-padding-em
12
+ content: $breadcrumb-spliter
13
13
 
14
14
  .breadcrumb a
15
15
  text-decoration: none
@@ -18,7 +18,7 @@
18
18
 
19
19
  .btns-x.btns-margin [class*=btn-],
20
20
  .btns-y.btns-margin [class*=btn-]
21
- margin: $button-group-children-margin-rem
21
+ margin: $button-group-buttons-margin-rem
22
22
 
23
23
  .btns-x:not(.btns-margin),
24
24
  .btns-y:not(.btns-margin)
@@ -41,7 +41,7 @@
41
41
 
42
42
 
43
43
  .btn-large[class*=btn-].btn-ico-top
44
- height: $button-large-icon-top-height-rem
44
+ height: $button-icon-top-large-height-rem
45
45
 
46
46
  .btn-small[class*=btn-].btn-ico-top
47
- height: $button-small-icon-top-height-rem
47
+ height: $button-icon-top-small-height-rem
@@ -17,23 +17,23 @@
17
17
  .carousel-indicators
18
18
  display: flex
19
19
  position: absolute
20
- top: $carousel-control-indicators-top-rem
21
- right: $carousel-control-indicators-right-rem
20
+ top: $carousel-indicators-top-spacing-rem
21
+ right: $carousel-indicators-right-spacing-rem
22
22
  z-index: $z-index-higher
23
23
  justify-content: center
24
24
 
25
25
  .carousel-indicators .btn
26
- height: $carousel-control-indicator-height-rem
26
+ height: $carousel-indicator-height-rem
27
27
  font-size: 0
28
- opacity: $carousel-control-disabled-opacity
28
+ opacity: $carousel-controls-disabled-opacity
29
29
  outline-offset: $carousel-indicator-outline-offset-px
30
- transition: opacity $carousel-control-opacity-transition-duration $carousel-control-opacity-transition-timing-function
30
+ transition: opacity $carousel-controls-opacity-transition-duration $carousel-controls-opacity-transition-timing-function
31
31
 
32
32
  .carousel-indicators.btns-x.btns-margin .btn:last-child
33
33
  margin-right: 0
34
34
 
35
35
  .carousel-indicators .btn[disabled]
36
- opacity: $carousel-control-opacity
36
+ opacity: $carousel-controls-opacity
37
37
 
38
38
  .carousel-item,
39
39
  .carousel-figure
@@ -72,7 +72,7 @@
72
72
  z-index: $z-index-higher
73
73
  margin: auto
74
74
  opacity: 0
75
- transition: opacity $carousel-control-opacity-transition-duration $carousel-control-opacity-transition-timing-function
75
+ transition: opacity $carousel-controls-opacity-transition-duration $carousel-controls-opacity-transition-timing-function
76
76
 
77
77
  .carousel-prev.btn-text-light,
78
78
  .carousel-next.btn-text-light
@@ -82,23 +82,23 @@
82
82
  .carousel-box:hover > .carousel-next,
83
83
  .carousel-prev.focus,
84
84
  .carousel-next.focus
85
- opacity: $carousel-control-opacity
85
+ opacity: $carousel-controls-opacity
86
86
 
87
87
  .carousel-box:hover > .carousel-prev[disabled],
88
88
  .carousel-box:hover > .carousel-next[disabled],
89
89
  .carousel-prev.focus[disabled],
90
90
  .carousel-next.focus[disabled]
91
- opacity: $carousel-control-disabled-opacity
91
+ opacity: $carousel-controls-disabled-opacity
92
92
 
93
93
  .carousel-prev
94
- left: $carousel-breakpoint-control-prev-left-rem
94
+ left: $carousel-breakpoint-prev-button-left-spacing-rem
95
95
 
96
96
  .carousel-next
97
- right: $carousel-breakpoint-control-next-right-rem
97
+ right: $carousel-breakpoint-next-button-right-spacing-rem
98
98
 
99
99
  .carousel-indicators
100
- top: $carousel-breakpoint-control-indicators-top-rem
101
- right: $carousel-breakpoint-control-indicators-right-rem
100
+ top: $carousel-breakpoint-indicators-top-spacing-rem
101
+ right: $carousel-breakpoint-indicators-right-spacing-rem
102
102
 
103
103
  .carousel-description
104
104
  padding: $carousel-breakpoint-description-padding-rem
@@ -47,8 +47,12 @@
47
47
 
48
48
 
49
49
 
50
- .dropdown-fixed.dropdown-active > .dropdown-menu
50
+ .dropdown-fixed > .dropdown-menu
51
51
  +overlay
52
+ display: none
53
+
54
+ .dropdown-fixed.dropdown-active > .dropdown-menu
55
+ display: flex
52
56
 
53
57
  .dropdown-fixed > .dropdown-menu > .dropdown-items
54
58
  +overlay-body
@@ -12,10 +12,10 @@
12
12
  order: -1
13
13
 
14
14
  > .dropdown-menu > .dropdown-items
15
- margin-top: $form-element-textfield-height-rem + $dropdown-absolute-drop-gap-rem
15
+ margin-top: $form-element-height-rem + $dropdown-absolute-active-gap-rem
16
16
 
17
17
  > .fm-small ~ .dropdown-menu > .dropdown-items
18
- margin-top: $form-element-small-textfield-height-rem + $dropdown-absolute-drop-gap-rem
18
+ margin-top: $form-element-small-height-rem + $dropdown-absolute-active-gap-rem
19
19
 
20
20
  > .fm-large ~ .dropdown-menu > .dropdown-items
21
- margin-top: $form-element-large-textfield-height-rem + $dropdown-absolute-drop-gap-rem
21
+ margin-top: $form-element-large-height-rem + $dropdown-absolute-active-gap-rem
@@ -13,34 +13,34 @@
13
13
 
14
14
  .fm-group .fm-label-nowrap.fm-label,
15
15
  .fm-group .fm-label-wrap.fm-label
16
- height: $form-element-textfield-height-rem
16
+ height: $form-element-height-rem
17
17
  padding-top: 0
18
18
  padding-bottom: 0
19
19
  overflow: hidden
20
20
  text-overflow: ellipsis
21
21
 
22
22
  .fm-group .fm-label-nowrap.fm-label
23
- line-height: $form-element-textfield-height-rem
23
+ line-height: $form-element-height-rem
24
24
  white-space: nowrap
25
25
 
26
26
  .fm-group .fm-label-small.fm-label-nowrap.fm-label
27
- height: $form-element-small-textfield-height-rem
28
- line-height: $form-element-small-textfield-height-rem
27
+ height: $form-element-small-height-rem
28
+ line-height: $form-element-small-height-rem
29
29
 
30
30
  .fm-group .fm-label-large.fm-label-nowrap.fm-label
31
- height: $form-element-large-textfield-height-rem
32
- line-height: $form-element-large-textfield-height-rem
31
+ height: $form-element-large-height-rem
32
+ line-height: $form-element-large-height-rem
33
33
 
34
34
  .fm-group .fm-label-wrap.fm-label
35
- line-height: $form-element-textfield-height-rem / 2
35
+ line-height: $form-element-height-rem / 2
36
36
 
37
37
  .fm-group .fm-label-small.fm-label-wrap.fm-label
38
- height: $form-element-small-textfield-height-rem
39
- line-height: $form-element-small-textfield-height-rem / 2
38
+ height: $form-element-small-height-rem
39
+ line-height: $form-element-small-height-rem / 2
40
40
 
41
41
  .fm-group .fm-label-large.fm-label-wrap.fm-label
42
- height: $form-element-large-textfield-height-rem
43
- line-height: $form-element-large-textfield-height-rem / 2
42
+ height: $form-element-large-height-rem
43
+ line-height: $form-element-large-height-rem / 2
44
44
 
45
45
 
46
46
 
@@ -3,12 +3,12 @@
3
3
  .fm.fm-ico-left input,
4
4
  .fm.fm-ico-left select[multiple],
5
5
  .fm.fm-ico-left textarea
6
- padding-left: $form-element-text-helvertical-padding-em * 2 + $form-element-icon-size-em
6
+ padding-left: $form-element-horizontal-padding-em * 2 + $form-element-icon-size-em
7
7
 
8
8
  .fm.fm-ico-right input,
9
9
  .fm.fm-ico-right select[multiple],
10
10
  .fm.fm-ico-right textarea
11
- padding-right: $form-element-text-helvertical-padding-em * 2 + $form-element-icon-size-em
11
+ padding-right: $form-element-horizontal-padding-em * 2 + $form-element-icon-size-em
12
12
 
13
13
 
14
14
 
@@ -21,24 +21,18 @@
21
21
  .fm-select.fm-ico-right[data-error] input,
22
22
  .fm-file.fm-ico-right[data-error] input,
23
23
  .fm-search.fm-ico-right[data-error] input
24
- background: form-error-background()
24
+ background: form-element-background-on-error()
25
25
 
26
26
  .fm.fm-select.fm-ico-right .focus ~ input,
27
27
  .fm.fm-select.fm-ico-right input.focus,
28
28
  .fm.fm-file.fm-ico-right .focus ~ input,
29
29
  .fm.fm-search.fm-ico-right input.focus
30
- background: form-focus-background()
31
-
32
- .fm.fm-select[data-error].fm-ico-right .focus ~ input,
33
- .fm.fm-select[data-error].fm-ico-right input.focus,
34
- .fm.fm-file[data-error].fm-ico-right .focus ~ input,
35
- .fm.fm-search[data-error].fm-ico-right input.focus
36
- background: form-error-focus-background()
30
+ background: form-element-background-on-focus()
37
31
  // sass-lint:enable empty-args
38
32
 
39
33
 
40
34
  .fm > .ico
41
- margin-top: _form-icon-margin-top($form-element-textfield-height-rem, $form-element-typography-size-level)
35
+ margin-top: _form-icon-margin-top($form-element-height-rem, $form-element-typography-size-level)
42
36
  font-size: $form-element-icon-size-em
43
37
  pointer-events: none
44
38
  color: $form-element-icon-color
@@ -47,27 +41,27 @@
47
41
 
48
42
 
49
43
  .fm.fm-ico-left > .ico
50
- margin-left: $form-element-text-helvertical-padding-em / strip-unit($form-element-icon-size-em)
44
+ margin-left: $form-element-horizontal-padding-em / strip-unit($form-element-icon-size-em)
51
45
 
52
46
  .fm.fm-ico-right > .ico
53
- margin-right: $form-element-text-helvertical-padding-em / strip-unit($form-element-icon-size-em)
47
+ margin-right: $form-element-horizontal-padding-em / strip-unit($form-element-icon-size-em)
54
48
  margin-left: auto
55
49
 
56
50
 
57
51
 
58
52
  .fm-small.fm > .ico
59
- margin-top: _form-icon-margin-top($form-element-small-textfield-height-rem, $form-element-small-typography-size-level)
53
+ margin-top: _form-icon-margin-top($form-element-small-height-rem, $form-element-small-typography-size-level)
60
54
 
61
55
  .fm-large.fm > .ico
62
- margin-top: _form-icon-margin-top($form-element-large-textfield-height-rem, $form-element-large-typography-size-level)
56
+ margin-top: _form-icon-margin-top($form-element-large-height-rem, $form-element-large-typography-size-level)
63
57
 
64
58
 
65
59
 
66
60
  .fm[data-error] .ico
67
- color: $form-element-error-icon-color
68
- fill: $form-element-error-icon-color
61
+ color: $form-element-icon-color-on-error
62
+ fill: $form-element-icon-color-on-error
69
63
 
70
64
  .fm.fm-ico-left .focus ~ .ico,
71
65
  .fm.fm-ico-right .focus ~ .ico
72
- color: $form-element-focus-icon-color
73
- fill: $form-element-focus-icon-color
66
+ color: $form-element-icon-color-on-focus
67
+ fill: $form-element-icon-color-on-focus