@unifiedsoftware/styles 1.1.7 → 2.0.0-alpha.1

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.
@@ -1,5 +1,10 @@
1
1
  @use '../../../variables' as *;
2
2
 
3
+ html {
4
+ -webkit-text-size-adjust: 100%;
5
+ text-rendering: optimizeLegibility;
6
+ -webkit-font-smoothing: antialiased;
7
+ }
3
8
  $colors-map: (
4
9
  inherit: inherit,
5
10
  primary: var(--#{$prefix}primary-color),
@@ -12,7 +17,7 @@ $colors-map: (
12
17
 
13
18
  .#{$prefix}theme-fci {
14
19
  .#{$prefix}button {
15
- --#{$prefix}button-font-weight: 400;
20
+ --#{$prefix}button-font-weight: 500;
16
21
  --#{$prefix}button-font-family: var(--#{$prefix}font-sans);
17
22
 
18
23
  --#{$prefix}button-divider-width: 1px;
@@ -45,11 +50,11 @@ $colors-map: (
45
50
  }
46
51
 
47
52
  &--md {
48
- --#{$prefix}button-height: 32px;
53
+ --#{$prefix}button-height: 36px;
49
54
  --#{$prefix}button-padding-y: 0;
50
- --#{$prefix}button-padding-x: 0.875rem;
55
+ --#{$prefix}button-padding-x: 1rem;
51
56
  --#{$prefix}button-font-size: 0.875rem;
52
- --#{$prefix}button-border-radius: 6px;
57
+ --#{$prefix}button-border-radius: 8px;
53
58
  --#{$prefix}button-gap: 0.375rem;
54
59
 
55
60
  .#{$prefix}icon {
@@ -91,10 +96,10 @@ $colors-map: (
91
96
  & > .#{$prefix}overlay {
92
97
  --#{$prefix}overlay-color: inherit;
93
98
  --#{$prefix}overlay-opacity: 0;
94
- --#{$prefix}_hover-overlay-opacity: 0.12;
95
- --#{$prefix}_active-overlay-opacity: 0.24;
96
- --#{$prefix}_focus-hover-overlay-opacity: 0.12;
97
- --#{$prefix}_focus-active-overlay-opacity: 0.24;
99
+ --#{$prefix}_hover-overlay-opacity: 0.24;
100
+ --#{$prefix}_active-overlay-opacity: 0.32;
101
+ --#{$prefix}_focus-hover-overlay-opacity: 0.24;
102
+ --#{$prefix}_focus-active-overlay-opacity: 0.32;
98
103
  }
99
104
 
100
105
  & > .#{$prefix}outline {
@@ -118,7 +123,7 @@ $colors-map: (
118
123
  }
119
124
 
120
125
  & > .#{$prefix}outline {
121
- --#{$prefix}outline-border-width: 1px;
126
+ --#{$prefix}outline-border-width: 2px;
122
127
  --#{$prefix}outline-border-color: currentColor;
123
128
  }
124
129
  }
@@ -126,11 +131,11 @@ $colors-map: (
126
131
  &--flat {
127
132
  & > .#{$prefix}overlay {
128
133
  --#{$prefix}overlay-color: inherit;
129
- --#{$prefix}overlay-opacity: 0.08;
130
- --#{$prefix}_hover-overlay-opacity: 0.12;
131
- --#{$prefix}_active-overlay-opacity: 0.24;
132
- --#{$prefix}_focus-hover-overlay-opacity: 0.12;
133
- --#{$prefix}_focus-active-overlay-opacity: 0.24;
134
+ --#{$prefix}overlay-opacity: 0.12;
135
+ --#{$prefix}_hover-overlay-opacity: 0.24;
136
+ --#{$prefix}_active-overlay-opacity: 0.32;
137
+ --#{$prefix}_focus-hover-overlay-opacity: 0.24;
138
+ --#{$prefix}_focus-active-overlay-opacity: 0.32;
134
139
  }
135
140
 
136
141
  & > .#{$prefix}outline {
@@ -172,23 +177,5 @@ $colors-map: (
172
177
  .#{$prefix}button--text.#{$prefix}button--#{$key} {
173
178
  --#{$prefix}button-color: #{$value};
174
179
  }
175
-
176
- @if $key == 'secondary' {
177
- .#{$prefix}button--filled.#{$prefix}button--#{$key} {
178
- --#{$prefix}button-color: var(--#{$prefix}secondary-action-color);
179
- }
180
-
181
- .#{$prefix}button--outlined.#{$prefix}button--#{$key} {
182
- --#{$prefix}button-color: var(--#{$prefix}secondary-action-color);
183
- }
184
-
185
- .#{$prefix}button--flat.#{$prefix}button--#{$key} {
186
- --#{$prefix}button-color: var(--#{$prefix}secondary-action-color);
187
- }
188
-
189
- .#{$prefix}button--text.#{$prefix}button--#{$key} {
190
- --#{$prefix}button-color: var(--#{$prefix}secondary-action-color);
191
- }
192
- }
193
180
  }
194
181
  }
@@ -2,10 +2,12 @@
2
2
 
3
3
  .#{$prefix}theme-fci {
4
4
  .#{$prefix}card {
5
- --#{$prefix}card-border-width: 1px;
5
+ --#{$prefix}card-border-width: 0px;
6
6
  --#{$prefix}card-border-style: solid;
7
- --#{$prefix}card-border-color: rgba(9, 30, 66, 0.14);
8
- --#{$prefix}card-border-radius: 6px;
7
+ --#{$prefix}card-border-color: var(--#{$prefix}border-color);
8
+ --#{$prefix}card-border-radius: 10px;
9
+ --#{$prefix}card-box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(51, 65, 85, 0.1) 0px 0px 0px 1px,
10
+ rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
9
11
 
10
12
  & > .#{$prefix}overlay {
11
13
  --#{$prefix}overlay-color: inherit;
@@ -49,7 +51,7 @@
49
51
  }
50
52
  }
51
53
 
52
- .#{$prefix}card--sm .#{$prefix}card-header {
54
+ .#{$prefix}card--xs .#{$prefix}card-header {
53
55
  --#{$prefix}card-header-min-height: 36px;
54
56
  --#{$prefix}card-header-padding-y: 0.685rem;
55
57
  --#{$prefix}card-header-padding-x: 1rem;
@@ -64,7 +66,7 @@
64
66
  --#{$prefix}card-header-subtitle-line-height: 14px;
65
67
  }
66
68
 
67
- .#{$prefix}card--sm .#{$prefix}card-body {
69
+ .#{$prefix}card--xs .#{$prefix}card-body {
68
70
  --#{$prefix}card-body-padding-y: 1rem;
69
71
  --#{$prefix}card-body-padding-x: 1rem;
70
72
  --#{$prefix}card-body-font-size: 0.75rem;
@@ -72,21 +74,21 @@
72
74
  --#{$prefix}card-body-color: var(--#{$prefix}body-color);
73
75
  }
74
76
 
75
- .#{$prefix}card--md .#{$prefix}card-header {
76
- --#{$prefix}card-header-min-height: 2.5rem;
77
+ .#{$prefix}card--sm .#{$prefix}card-header {
78
+ --#{$prefix}card-header-min-height: 48px;
77
79
  --#{$prefix}card-header-padding-y: 0.625rem;
78
80
  --#{$prefix}card-header-padding-x: 1rem;
79
81
  --#{$prefix}card-header-padding-level: 1.25rem;
80
82
  --#{$prefix}card-header-gap: 1rem;
81
83
 
82
- --#{$prefix}card-header-title-font-size: 0.8125rem;
84
+ --#{$prefix}card-header-title-font-size: 0.875rem;
83
85
  --#{$prefix}card-header-title-line-height: 20px;
84
86
 
85
87
  --#{$prefix}card-header-subtitle-font-size: 0.75rem;
86
88
  --#{$prefix}card-header-subtitle-line-height: 16px;
87
89
  }
88
90
 
89
- .#{$prefix}card--md .#{$prefix}card-body {
91
+ .#{$prefix}card--sm .#{$prefix}card-body {
90
92
  --#{$prefix}card-body-padding-y: 1.25rem;
91
93
  --#{$prefix}card-body-padding-x: 1rem;
92
94
  --#{$prefix}card-body-font-size: 0.875rem;
@@ -94,8 +96,35 @@
94
96
  --#{$prefix}card-body-color: var(--#{$prefix}body-color);
95
97
  }
96
98
 
99
+ .#{$prefix}card--md .#{$prefix}card-header {
100
+ --#{$prefix}card-header-min-height: 56px;
101
+ --#{$prefix}card-header-padding-y: 0.625rem;
102
+ --#{$prefix}card-header-padding-x: 1rem;
103
+ --#{$prefix}card-header-padding-level: 1.25rem;
104
+ --#{$prefix}card-header-font-size: 0.75rem;
105
+ --#{$prefix}card-header-gap: 1rem;
106
+
107
+ --#{$prefix}card-header-title-font-size: 1rem;
108
+ --#{$prefix}card-header-title-line-height: 24px;
109
+
110
+ --#{$prefix}card-header-subtitle-font-size: 0.8125rem;
111
+ --#{$prefix}card-header-subtitle-line-height: 18px;
112
+ }
113
+
114
+ .#{$prefix}card--md .#{$prefix}card-header .#{$prefix}icon:not(.#{$prefix}button .#{$prefix}icon) {
115
+ --#{$prefix}icon-font-size-default: 24px;
116
+ }
117
+
118
+ .#{$prefix}card--md .#{$prefix}card-body {
119
+ --#{$prefix}card-body-padding-y: 1.5rem;
120
+ --#{$prefix}card-body-padding-x: 1rem;
121
+ --#{$prefix}card-body-font-size: 1rem;
122
+ --#{$prefix}card-body-line-height: 24px;
123
+ --#{$prefix}card-body-color: var(--#{$prefix}body-color);
124
+ }
125
+
97
126
  .#{$prefix}card--lg .#{$prefix}card-header {
98
- --#{$prefix}card-header-min-height: 2.75rem;
127
+ --#{$prefix}card-header-min-height: 64px;
99
128
  --#{$prefix}card-header-padding-y: 0.625rem;
100
129
  --#{$prefix}card-header-padding-x: 1rem;
101
130
  --#{$prefix}card-header-padding-level: 1.25rem;
@@ -105,7 +134,7 @@
105
134
  --#{$prefix}card-header-title-font-size: 0.875rem;
106
135
  --#{$prefix}card-header-title-line-height: 24px;
107
136
 
108
- --#{$prefix}card-header-subtitle-font-size: 0.8125rem;
137
+ --#{$prefix}card-header-subtitle-font-size: 1rem;
109
138
  --#{$prefix}card-header-subtitle-line-height: 18px;
110
139
  }
111
140
 
@@ -116,4 +145,27 @@
116
145
  --#{$prefix}card-body-line-height: 24px;
117
146
  --#{$prefix}card-body-color: var(--#{$prefix}body-color);
118
147
  }
148
+
149
+ .#{$prefix}card--xl .#{$prefix}card-header {
150
+ --#{$prefix}card-header-min-height: 72px;
151
+ --#{$prefix}card-header-padding-y: 0.625rem;
152
+ --#{$prefix}card-header-padding-x: 1rem;
153
+ --#{$prefix}card-header-padding-level: 1.25rem;
154
+ --#{$prefix}card-header-font-size: 0.75rem;
155
+ --#{$prefix}card-header-gap: 1rem;
156
+
157
+ --#{$prefix}card-header-title-font-size: 1rem;
158
+ --#{$prefix}card-header-title-line-height: 24px;
159
+
160
+ --#{$prefix}card-header-subtitle-font-size: 0.8125rem;
161
+ --#{$prefix}card-header-subtitle-line-height: 18px;
162
+ }
163
+
164
+ .#{$prefix}card--xl .#{$prefix}card-body {
165
+ --#{$prefix}card-body-padding-y: 1.5rem;
166
+ --#{$prefix}card-body-padding-x: 1rem;
167
+ --#{$prefix}card-body-font-size: 1rem;
168
+ --#{$prefix}card-body-line-height: 24px;
169
+ --#{$prefix}card-body-color: var(--#{$prefix}body-color);
170
+ }
119
171
  }
@@ -122,23 +122,5 @@ $colors-map: (
122
122
  .#{$prefix}chip--text.#{$prefix}chip--#{$key} {
123
123
  --#{$prefix}chip-color: #{$value};
124
124
  }
125
-
126
- @if $key == 'secondary' {
127
- .#{$prefix}chip--filled.#{$prefix}chip--#{$key} {
128
- --#{$prefix}chip-color: var(--#{$prefix}black-color);
129
- }
130
-
131
- .#{$prefix}chip--outlined.#{$prefix}chip--#{$key} {
132
- --#{$prefix}chip-color: var(--#{$prefix}black-color);
133
- }
134
-
135
- .#{$prefix}chip--flat.#{$prefix}chip--#{$key} {
136
- --#{$prefix}chip-color: var(--#{$prefix}black-color);
137
- }
138
-
139
- .#{$prefix}chip--text.#{$prefix}chip--#{$key} {
140
- --#{$prefix}chip-color: var(--#{$prefix}black-color);
141
- }
142
- }
143
125
  }
144
126
  }
@@ -23,3 +23,5 @@
23
23
 
24
24
  @use 'card';
25
25
  @use 'result';
26
+
27
+ @use 'nav-rail';
@@ -0,0 +1,62 @@
1
+ @use '../../../variables' as *;
2
+
3
+ .#{$prefix}theme-fci {
4
+ .#{$prefix}nav-rail {
5
+ --#{$prefix}nav-rail-border-color: var(--#{$prefix}border-color);
6
+
7
+ --#{$prefix}nav-rail-start-content-padding-y: 0.5rem;
8
+ --#{$prefix}nav-rail-start-content-gap: 0.5rem;
9
+
10
+ --#{$prefix}nav-rail-content-padding-y: 0.5rem;
11
+ --#{$prefix}nav-rail-content-gap: 0.5rem;
12
+
13
+ --#{$prefix}nav-rail-end-content-padding-y: 0.5rem;
14
+ --#{$prefix}nav-rail-end-content-gap: 0.5rem;
15
+
16
+ & > .#{$prefix}surface {
17
+ --#{$prefix}surface-color: #fff;
18
+ --#{$prefix}surface-opacity: 1;
19
+ }
20
+
21
+ &-item {
22
+ --#{$prefix}nav-rail-item-border-radius: 6px;
23
+ --#{$prefix}nav-rail-item-gap: 0.75rem;
24
+
25
+ --#{$prefix}nav-rail-item-padding-y: 1rem;
26
+
27
+ --#{$prefix}nav-rail-item-label-font-size: 11px;
28
+ --#{$prefix}nav-rail-item-label-font-weight: 700;
29
+ --#{$prefix}nav-rail-item-label-line-height: 16px;
30
+
31
+ --#{$prefix}nav-rail-item-indicator-size: 4px;
32
+ --#{$prefix}nav-rail-item-indicator-border-radius: 4px;
33
+ --#{$prefix}nav-rail-item-indicator-color: currentColor;
34
+
35
+ --#{$prefix}nav-rail-item-media-width: 48px;
36
+ --#{$prefix}nav-rail-item-media-height: 48px;
37
+ --#{$prefix}nav-rail-item-media-border-radius: 1rem;
38
+
39
+ --#{$prefix}nav-rail-item-icon-font-size: 1.5rem;
40
+
41
+ --#{$prefix}nav-rail-item-color: var(--#{$prefix}secondary-action-color);
42
+
43
+ --#{$prefix}_active-nav-rail-item-color: var(--#{$prefix}primary-color);
44
+ --#{$prefix}_active-nav-rail-item-indicator-color: var(--#{$prefix}primary-color);
45
+
46
+ & > .#{$prefix}surface {
47
+ --#{$prefix}surface-opacity: 0;
48
+ }
49
+
50
+ & > .#{$prefix}overlay {
51
+ --#{$prefix}overlay-opacity: 0;
52
+ }
53
+
54
+ &__icon,
55
+ &__media {
56
+ & > .#{$prefix}overlay {
57
+ --#{$prefix}overlay-opacity: 0;
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
@@ -1,19 +1,17 @@
1
1
  @use '../../../variables' as *;
2
2
 
3
3
  .#{$prefix}theme-fci {
4
- .#{$prefix}tab {
5
- --#{$prefix}tab-color: var(--#{$prefix}secondary-action-color);
6
- --#{$prefix}tab-padding-y: 0px;
7
- --#{$prefix}tab-padding-x: 16px;
8
- --#{$prefix}tab-font-size: 0.8125rem;
9
- --#{$prefix}tab-font-weight: 500;
10
- --#{$prefix}tab-border-radius: 6px 6px 0px 0px;
11
-
12
- --#{$prefix}tab-closable-color: var(--#{$prefix}secondary-action-color);
4
+ .#{$prefix}tabs--underlined {
5
+ --#{$prefix}tab-indicator-color: var(--#{$prefix}primary-action-color);
6
+ --#{$prefix}tab-indicator-height: 3px;
7
+ --#{$prefix}tab-indicator-border-radius: 3px 3px 0px 0px;
8
+ }
13
9
 
10
+ .#{$prefix}tabs--underlined .#{$prefix}tab {
14
11
  --#{$prefix}tab-indicator-color: var(--#{$prefix}primary-action-color);
15
12
  --#{$prefix}tab-indicator-height: 3px;
16
13
  --#{$prefix}tab-indicator-border-radius: 3px 3px 0px 0px;
14
+ --#{$prefix}tab-border-radius: 0px;
17
15
 
18
16
  & > .#{$prefix}overlay {
19
17
  --#{$prefix}overlay-opacity: 0;
@@ -26,4 +24,14 @@
26
24
  --#{$prefix}tab-color: var(--#{$prefix}primary-action-color);
27
25
  }
28
26
  }
27
+
28
+ .#{$prefix}tab {
29
+ --#{$prefix}tab-color: var(--#{$prefix}secondary-action-color);
30
+ --#{$prefix}tab-padding-y: 0px;
31
+ --#{$prefix}tab-padding-x: 16px;
32
+ --#{$prefix}tab-font-size: 0.8125rem;
33
+ --#{$prefix}tab-font-weight: 500;
34
+
35
+ --#{$prefix}tab-closable-color: var(--#{$prefix}secondary-action-color);
36
+ }
29
37
  }
@@ -25,6 +25,8 @@
25
25
  --#{$prefix}toolbar-min-height: 56px;
26
26
  --#{$prefix}toolbar-padding-y: 0.5rem;
27
27
  --#{$prefix}toolbar-padding-x: 1rem;
28
+ --#{$prefix}toolbar-gap: 1rem;
29
+ --#{$prefix}toolbar-content-gap: 0.5rem;
28
30
 
29
31
  --#{$prefix}toolbar-title-font-size: 1rem;
30
32
  --#{$prefix}toolbar-title-line-height: 20px;
@@ -32,6 +34,10 @@
32
34
  --#{$prefix}toolbar-subtitle-line-height: 16px;
33
35
  }
34
36
 
37
+ &--md .#{$prefix}icon:not(.#{$prefix}button .#{$prefix}icon) {
38
+ --#{$prefix}icon-font-size-default: 24px;
39
+ }
40
+
35
41
  &--lg {
36
42
  --#{$prefix}toolbar-min-height: 64px;
37
43
  --#{$prefix}toolbar-padding-y: 0.75rem;