luda 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/luda-degradation.js +2 -2
- data/assets/javascripts/luda-degradation.min.js +2 -2
- data/assets/javascripts/luda-sprockets.js +2 -2
- data/assets/javascripts/luda.js +719 -250
- data/assets/javascripts/luda.js.map +1 -1
- data/assets/javascripts/luda.min.js +3 -3
- data/assets/javascripts/luda.min.js.map +1 -1
- data/assets/javascripts/luda/behaviors/{enter-click.js → enter.js} +8 -6
- data/assets/javascripts/luda/behaviors/focus.js +14 -8
- data/assets/javascripts/luda/behaviors/readonly.js +4 -4
- data/assets/javascripts/luda/behaviors/{radio-tab.js → tabulate.js} +8 -6
- data/assets/javascripts/luda/behaviors/toggle.js +72 -18
- data/assets/javascripts/luda/dom.js +62 -0
- data/assets/javascripts/luda/elements/form-file.js +13 -4
- data/assets/javascripts/luda/elements/form-select.js +9 -5
- data/assets/javascripts/luda/event.js +11 -3
- data/assets/javascripts/luda/{component.js → factory.js} +149 -55
- data/assets/javascripts/luda/index.js +4 -4
- data/assets/javascripts/luda/install.js +2 -2
- data/assets/javascripts/luda/patterns/carousel.js +85 -59
- data/assets/javascripts/luda/patterns/dropdown.js +86 -68
- data/assets/javascripts/luda/patterns/form-dropdown.js +8 -8
- data/assets/javascripts/luda/patterns/tab.js +62 -23
- data/assets/javascripts/luda/static.js +224 -0
- data/assets/stylesheets/luda/_core/_functions.sass +11 -19
- data/assets/stylesheets/luda/_core/_variables.sass +140 -131
- data/assets/stylesheets/luda/_core/behaviors/_focus.sass +2 -2
- data/assets/stylesheets/luda/_core/elements/_button.sass +1 -1
- data/assets/stylesheets/luda/_core/elements/_grid.sass +0 -3
- data/assets/stylesheets/luda/_core/elements/_scrollbar.sass +8 -2
- data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +22 -31
- data/assets/stylesheets/luda/_core/elements/form/_form-element.sass +1 -1
- data/assets/stylesheets/luda/_core/elements/form/_form-helper.sass +19 -19
- data/assets/stylesheets/luda/_core/elements/form/_form-range.sass +19 -19
- data/assets/stylesheets/luda/_core/elements/form/_form-row.sass +43 -59
- data/assets/stylesheets/luda/_core/elements/typography/_quote.sass +1 -1
- data/assets/stylesheets/luda/_core/elements/typography/_typography.sass +9 -9
- data/assets/stylesheets/luda/_core/mixins/_dropdown.sass +8 -6
- data/assets/stylesheets/luda/_core/mixins/_form.sass +12 -12
- data/assets/stylesheets/luda/_core/mixins/_media-query.sass +12 -12
- data/assets/stylesheets/luda/_core/mixins/_typography.sass +4 -4
- data/assets/stylesheets/luda/_core/patterns/_breadcrumb.sass +2 -2
- data/assets/stylesheets/luda/_core/patterns/_button-group.sass +1 -1
- data/assets/stylesheets/luda/_core/patterns/_button-icon.sass +2 -2
- data/assets/stylesheets/luda/_core/patterns/_carousel.sass +13 -13
- data/assets/stylesheets/luda/_core/patterns/_dropdown.sass +5 -1
- data/assets/stylesheets/luda/_core/patterns/_form-dropdown.sass +3 -3
- data/assets/stylesheets/luda/_core/patterns/_form-group.sass +11 -11
- data/assets/stylesheets/luda/_core/patterns/_form-icon.sass +13 -19
- data/assets/stylesheets/luda/_core/patterns/_navigation.sass +5 -5
- data/assets/stylesheets/luda/_core/patterns/_search-bar.sass +2 -2
- data/assets/stylesheets/luda/_core/patterns/_tab.sass +1 -3
- data/assets/stylesheets/luda/_core/utilities/_border.sass +15 -15
- data/assets/stylesheets/luda/_core/utilities/_color.sass +4 -1
- data/assets/stylesheets/luda/_core/utilities/_display.sass +1 -1
- data/assets/stylesheets/luda/_core/utilities/_flex.sass +3 -0
- data/assets/stylesheets/luda/_core/utilities/_shadow.sass +12 -12
- data/assets/stylesheets/luda/_core/utilities/_spacing.sass +227 -0
- data/assets/stylesheets/luda/_core/utilities/_visibility.sass +1 -1
- data/assets/stylesheets/luda/_default.sass +1 -1
- data/assets/stylesheets/luda/default/_banner.sass +2 -2
- data/assets/stylesheets/luda/default/index.sass +1 -1
- data/assets/stylesheets/luda/default/utilities/_border.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_shadow.sass +4 -4
- data/assets/stylesheets/luda/default/utilities/_spacing.sass +5 -0
- data/lib/luda/version.rb +1 -1
- metadata +9 -11
- data/assets/javascripts/luda/singleton.js +0 -77
- data/assets/stylesheets/luda/_core/patterns/_form-button.sass +0 -23
- data/assets/stylesheets/luda/_core/patterns/_nav.sass +0 -165
- data/assets/stylesheets/luda/default/patterns/_form-button.sass +0 -9
- data/assets/stylesheets/luda/default/patterns/_nav.sass +0 -10
@@ -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
|
-
$
|
8
|
-
$baseline-offset-ratio-changed: $typography-
|
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-
|
10
|
+
@if $typography-heading-baseline-offset-ratio and $baseline-offset-ratio-changed
|
11
11
|
|
12
|
-
#{$
|
13
|
-
+typo-level($type-level, $typography-
|
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
|
-
#{$
|
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-
|
44
|
-
font-family: $typography-
|
45
|
-
font-weight: $typography-
|
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}
|
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-
|
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-
|
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-
|
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-
|
42
|
+
margin: 0 $dropdown-absolute-active-gap-rem 0 0
|
@@ -1,14 +1,14 @@
|
|
1
|
-
=form-
|
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-
|
5
|
-
background: url(svg-icon($icon, $icon-color)) right $form-element-
|
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-
|
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-
|
20
|
-
background: $form-element-
|
21
|
-
border-color: $form-element-
|
22
|
-
box-shadow: $form-element-
|
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-
|
25
|
-
background: $form-element-
|
26
|
-
border-color: $form-element-
|
27
|
-
box-shadow: $form-element-
|
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, $
|
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 $
|
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) - $
|
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, $
|
50
|
-
$
|
51
|
-
+_media-query($breakpoint-width-pxs, $breakpoint, width, $
|
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, $
|
55
|
-
$
|
56
|
-
+_media-query($breakpoint-resolutions, $breakpoint, resolution, $
|
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, $
|
60
|
-
$
|
61
|
-
+_media-query($breakpoint-aspect-ratios, $breakpoint, aspect-ratio, $
|
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($
|
11
|
-
a.link-#{$
|
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-#{$
|
14
|
+
a.link-#{$name}:not(.btn):hover
|
15
15
|
color: $hover-color
|
16
16
|
|
17
|
-
a.link-#{$
|
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-
|
12
|
-
content: $breadcrumb-
|
11
|
+
padding: $breadcrumb-spliter-padding-em
|
12
|
+
content: $breadcrumb-spliter
|
13
13
|
|
14
14
|
.breadcrumb a
|
15
15
|
text-decoration: none
|
@@ -41,7 +41,7 @@
|
|
41
41
|
|
42
42
|
|
43
43
|
.btn-large[class*=btn-].btn-ico-top
|
44
|
-
height: $button-
|
44
|
+
height: $button-icon-top-large-height-rem
|
45
45
|
|
46
46
|
.btn-small[class*=btn-].btn-ico-top
|
47
|
-
height: $button-
|
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-
|
21
|
-
right: $carousel-
|
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-
|
26
|
+
height: $carousel-indicator-height-rem
|
27
27
|
font-size: 0
|
28
|
-
opacity: $carousel-
|
28
|
+
opacity: $carousel-controls-disabled-opacity
|
29
29
|
outline-offset: $carousel-indicator-outline-offset-px
|
30
|
-
transition: opacity $carousel-
|
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-
|
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-
|
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-
|
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-
|
91
|
+
opacity: $carousel-controls-disabled-opacity
|
92
92
|
|
93
93
|
.carousel-prev
|
94
|
-
left: $carousel-breakpoint-
|
94
|
+
left: $carousel-breakpoint-prev-button-left-spacing-rem
|
95
95
|
|
96
96
|
.carousel-next
|
97
|
-
right: $carousel-breakpoint-
|
97
|
+
right: $carousel-breakpoint-next-button-right-spacing-rem
|
98
98
|
|
99
99
|
.carousel-indicators
|
100
|
-
top: $carousel-breakpoint-
|
101
|
-
right: $carousel-breakpoint-
|
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
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
28
|
-
line-height: $form-element-small-
|
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-
|
32
|
-
line-height: $form-element-large-
|
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-
|
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-
|
39
|
-
line-height: $form-element-small-
|
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-
|
43
|
-
line-height: $form-element-large-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
68
|
-
fill: $form-element-
|
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-
|
73
|
-
fill: $form-element-
|
66
|
+
color: $form-element-icon-color-on-focus
|
67
|
+
fill: $form-element-icon-color-on-focus
|