@unifiedsoftware/styles 2.0.0-alpha.10 → 2.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/fci.css +210 -89
- package/css/fci.min.css +1 -1
- package/css/styles.css +1 -1
- package/css/styles.min.css +1 -1
- package/package.json +1 -1
- package/scss/components/_accordion.scss +1 -1
- package/scss/themes/fci/components/_accordion.scss +7 -16
- package/scss/themes/fci/components/_button.scss +16 -3
- package/scss/themes/fci/components/_checkbox.scss +49 -8
- package/scss/themes/fci/components/_input.scss +30 -7
- package/scss/themes/fci/components/_radio.scss +47 -5
- package/scss/themes/fci/components/_switch.scss +40 -8
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
@use '../../../variables' as *;
|
|
2
2
|
|
|
3
|
+
$colors-map: (primary, secondary, success, info, warning, danger);
|
|
4
|
+
|
|
3
5
|
.#{$prefix}theme-fci {
|
|
4
6
|
.#{$prefix}radio-group {
|
|
7
|
+
&--xs {
|
|
8
|
+
--#{$prefix}radio-group-gap: 0.2rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
&--sm {
|
|
6
12
|
--#{$prefix}radio-group-gap: 0.375rem;
|
|
7
13
|
}
|
|
@@ -13,6 +19,10 @@
|
|
|
13
19
|
&--lg {
|
|
14
20
|
--#{$prefix}radio-group-gap: 0.75rem;
|
|
15
21
|
}
|
|
22
|
+
|
|
23
|
+
&--xl {
|
|
24
|
+
--#{$prefix}radio-group-gap: 0.875rem;
|
|
25
|
+
}
|
|
16
26
|
}
|
|
17
27
|
|
|
18
28
|
.#{$prefix}radio {
|
|
@@ -27,6 +37,18 @@
|
|
|
27
37
|
|
|
28
38
|
--#{$prefix}radio-tap-background: var(--#{$prefix}primary-color);
|
|
29
39
|
|
|
40
|
+
&--xs {
|
|
41
|
+
--#{$prefix}radio-gap: 0.375rem;
|
|
42
|
+
|
|
43
|
+
--#{$prefix}radio-control-width: 14px;
|
|
44
|
+
--#{$prefix}radio-control-height: 14px;
|
|
45
|
+
--#{$prefix}radio-label-font-size: 0.75rem;
|
|
46
|
+
|
|
47
|
+
& .#{$prefix}icon {
|
|
48
|
+
--#{$prefix}icon-font-size: 0.5rem;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
30
52
|
&--sm {
|
|
31
53
|
--#{$prefix}radio-gap: 0.375rem;
|
|
32
54
|
|
|
@@ -42,21 +64,32 @@
|
|
|
42
64
|
&--md {
|
|
43
65
|
--#{$prefix}radio-gap: 0.5rem;
|
|
44
66
|
|
|
67
|
+
--#{$prefix}radio-control-width: 18px;
|
|
68
|
+
--#{$prefix}radio-control-height: 18px;
|
|
69
|
+
--#{$prefix}radio-label-font-size: 0.875rem;
|
|
70
|
+
|
|
71
|
+
& .#{$prefix}icon {
|
|
72
|
+
--#{$prefix}icon-font-size: 0.625rem;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&--lg {
|
|
77
|
+
--#{$prefix}radio-gap: 0.5rem;
|
|
78
|
+
|
|
45
79
|
--#{$prefix}radio-control-width: 20px;
|
|
46
80
|
--#{$prefix}radio-control-height: 20px;
|
|
47
|
-
|
|
48
81
|
--#{$prefix}radio-label-font-size: 0.875rem;
|
|
49
82
|
|
|
50
|
-
|
|
83
|
+
.#{$prefix}icon {
|
|
51
84
|
--#{$prefix}icon-font-size: 0.75rem;
|
|
52
85
|
}
|
|
53
86
|
}
|
|
54
87
|
|
|
55
|
-
&--
|
|
88
|
+
&--xl {
|
|
56
89
|
--#{$prefix}radio-gap: 0.5rem;
|
|
57
90
|
|
|
58
|
-
--#{$prefix}radio-control-width:
|
|
59
|
-
--#{$prefix}radio-control-height:
|
|
91
|
+
--#{$prefix}radio-control-width: 22px;
|
|
92
|
+
--#{$prefix}radio-control-height: 22px;
|
|
60
93
|
--#{$prefix}radio-label-font-size: 1rem;
|
|
61
94
|
|
|
62
95
|
.#{$prefix}icon {
|
|
@@ -88,4 +121,13 @@
|
|
|
88
121
|
--#{$prefix}radio-label-color: var(--#{$prefix}white-color);
|
|
89
122
|
}
|
|
90
123
|
}
|
|
124
|
+
|
|
125
|
+
@each $color in $colors-map {
|
|
126
|
+
.#{$prefix}radio--#{$color} {
|
|
127
|
+
--#{$prefix}_checked-radio-control-border-color: var(--#{$prefix}#{$color}-color);
|
|
128
|
+
--#{$prefix}_focus-radio-control-box-shadow: 0px 4px 8px rgba(var(--#{$prefix}#{$color}-rgb) / 40%);
|
|
129
|
+
|
|
130
|
+
--#{$prefix}radio-tap-background: var(--#{$prefix}#{$color}-color);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
91
133
|
}
|
|
@@ -13,10 +13,26 @@
|
|
|
13
13
|
|
|
14
14
|
--#{$prefix}switch-control-border-radius: 9999px;
|
|
15
15
|
|
|
16
|
+
&--xs {
|
|
17
|
+
--#{$prefix}switch-gap: 0.375rem;
|
|
18
|
+
|
|
19
|
+
--#{$prefix}switch-control-width: 20px;
|
|
20
|
+
--#{$prefix}switch-control-height: 14px;
|
|
21
|
+
|
|
22
|
+
--#{$prefix}switch-thumb-width: 8px;
|
|
23
|
+
--#{$prefix}switch-thumb-height: 8px;
|
|
24
|
+
|
|
25
|
+
--#{$prefix}switch-label-font-size: 0.75rem;
|
|
26
|
+
|
|
27
|
+
& .#{$prefix}icon {
|
|
28
|
+
--#{$prefix}icon-font-size: 0.75rem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
16
32
|
&--sm {
|
|
17
33
|
--#{$prefix}switch-gap: 0.375rem;
|
|
18
34
|
|
|
19
|
-
--#{$prefix}switch-control-width:
|
|
35
|
+
--#{$prefix}switch-control-width: 24px;
|
|
20
36
|
--#{$prefix}switch-control-height: 16px;
|
|
21
37
|
|
|
22
38
|
--#{$prefix}switch-thumb-width: 10px;
|
|
@@ -32,6 +48,22 @@
|
|
|
32
48
|
&--md {
|
|
33
49
|
--#{$prefix}switch-gap: 0.5rem;
|
|
34
50
|
|
|
51
|
+
--#{$prefix}switch-control-width: 28px;
|
|
52
|
+
--#{$prefix}switch-control-height: 18px;
|
|
53
|
+
|
|
54
|
+
--#{$prefix}switch-thumb-width: 12px;
|
|
55
|
+
--#{$prefix}switch-thumb-height: 12px;
|
|
56
|
+
|
|
57
|
+
--#{$prefix}switch-label-font-size: 0.875rem;
|
|
58
|
+
|
|
59
|
+
& .#{$prefix}icon {
|
|
60
|
+
--#{$prefix}icon-font-size: 1rem;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&--lg {
|
|
65
|
+
--#{$prefix}switch-gap: 0.5rem;
|
|
66
|
+
|
|
35
67
|
--#{$prefix}switch-control-width: 32px;
|
|
36
68
|
--#{$prefix}switch-control-height: 20px;
|
|
37
69
|
|
|
@@ -40,19 +72,19 @@
|
|
|
40
72
|
|
|
41
73
|
--#{$prefix}switch-label-font-size: 0.875rem;
|
|
42
74
|
|
|
43
|
-
|
|
44
|
-
--#{$prefix}icon-font-size:
|
|
75
|
+
.#{$prefix}icon {
|
|
76
|
+
--#{$prefix}icon-font-size: 1.125rem;
|
|
45
77
|
}
|
|
46
78
|
}
|
|
47
79
|
|
|
48
|
-
&--
|
|
80
|
+
&--xl {
|
|
49
81
|
--#{$prefix}switch-gap: 0.5rem;
|
|
50
82
|
|
|
51
|
-
--#{$prefix}switch-control-width:
|
|
52
|
-
--#{$prefix}switch-control-height:
|
|
83
|
+
--#{$prefix}switch-control-width: 36px;
|
|
84
|
+
--#{$prefix}switch-control-height: 22px;
|
|
53
85
|
|
|
54
|
-
--#{$prefix}switch-thumb-width:
|
|
55
|
-
--#{$prefix}switch-thumb-height:
|
|
86
|
+
--#{$prefix}switch-thumb-width: 14px;
|
|
87
|
+
--#{$prefix}switch-thumb-height: 14px;
|
|
56
88
|
|
|
57
89
|
--#{$prefix}switch-label-font-size: 1rem;
|
|
58
90
|
|