@unifiedsoftware/styles 1.1.8 → 2.0.0-alpha.10
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 +823 -160
- package/css/fci.min.css +1 -1
- package/css/styles.css +614 -41
- package/css/styles.min.css +1 -1
- package/package.json +1 -1
- package/scss/_utilities.scss +48 -10
- package/scss/components/_accordion.scss +44 -1
- package/scss/components/_card.scss +128 -13
- package/scss/components/_descriptions.scss +69 -0
- package/scss/components/_divider.scss +1 -1
- package/scss/components/_icon.scss +1 -1
- package/scss/components/_index.scss +3 -0
- package/scss/components/_input.scss +54 -5
- package/scss/components/_nav-rail.scss +183 -0
- package/scss/components/_swipe.scss +30 -30
- package/scss/components/_tabs.scss +1 -1
- package/scss/components/_toolbar.scss +7 -2
- package/scss/themes/fci/_index.scss +2 -0
- package/scss/themes/fci/_kendo.scss +44 -0
- package/scss/themes/fci/_tokens.scss +22 -7
- package/scss/themes/fci/components/_accordion.scss +166 -25
- package/scss/themes/fci/components/_badge.scss +13 -14
- package/scss/themes/fci/components/_button.scss +127 -52
- package/scss/themes/fci/components/_card.scss +167 -58
- package/scss/themes/fci/components/_chip.scss +47 -28
- package/scss/themes/fci/components/_descriptions.scss +53 -0
- package/scss/themes/fci/components/_icon.scss +1 -1
- package/scss/themes/fci/components/_index.scss +3 -0
- package/scss/themes/fci/components/_input.scss +10 -7
- package/scss/themes/fci/components/_list.scss +0 -4
- package/scss/themes/fci/components/_nav-rail.scss +62 -0
- package/scss/themes/fci/components/_tabs.scss +116 -10
- package/scss/themes/fci/components/_toolbar.scss +6 -0
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
z-index: 0;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
-webkit-tap-highlight-color: transparent;
|
|
9
|
+
background-color: white;
|
|
10
|
+
|
|
11
|
+
&__content {
|
|
12
|
+
padding-block: var(--#{$prefix}card-padding-y);
|
|
13
|
+
padding-inline: var(--#{$prefix}card-padding-x);
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: var(--#{$prefix}card-gap);
|
|
17
|
+
}
|
|
9
18
|
|
|
10
19
|
&:hover {
|
|
11
20
|
text-decoration: none;
|
|
@@ -15,6 +24,10 @@
|
|
|
15
24
|
border: var(--#{$prefix}card-border-width) var(--#{$prefix}card-border-style) var(--#{$prefix}card-border-color);
|
|
16
25
|
}
|
|
17
26
|
|
|
27
|
+
&--shadow {
|
|
28
|
+
box-shadow: var(--#{$prefix}card-box-shadow);
|
|
29
|
+
}
|
|
30
|
+
|
|
18
31
|
&--hoverable,
|
|
19
32
|
&--selected {
|
|
20
33
|
cursor: pointer;
|
|
@@ -34,6 +47,7 @@
|
|
|
34
47
|
min-height: var(--#{$prefix}card-header-min-height);
|
|
35
48
|
padding-block: var(--#{$prefix}card-header-padding-y);
|
|
36
49
|
padding-inline: var(--#{$prefix}card-header-padding-x);
|
|
50
|
+
color: var(--#{$prefix}card-header-color);
|
|
37
51
|
display: flex;
|
|
38
52
|
align-items: center;
|
|
39
53
|
gap: var(--#{$prefix}card-header-gap);
|
|
@@ -43,16 +57,36 @@
|
|
|
43
57
|
flex-shrink: 0;
|
|
44
58
|
display: flex;
|
|
45
59
|
align-items: center;
|
|
60
|
+
gap: var(--#{$prefix}card-header-content-gap);
|
|
46
61
|
}
|
|
47
62
|
|
|
48
63
|
&__content {
|
|
49
64
|
flex-grow: 1;
|
|
65
|
+
overflow: hidden;
|
|
50
66
|
display: flex;
|
|
51
67
|
flex-direction: column;
|
|
52
|
-
|
|
68
|
+
justify-content: center;
|
|
53
69
|
}
|
|
54
70
|
|
|
55
|
-
&
|
|
71
|
+
&--centered &__start-content,
|
|
72
|
+
&--centered &__end-content {
|
|
73
|
+
position: absolute;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&--centered &__start-content {
|
|
77
|
+
left: var(--#{$prefix}card-header-padding-x);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&--centered &__end-content {
|
|
81
|
+
right: var(--#{$prefix}card-header-padding-x);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--centered &__content {
|
|
85
|
+
align-items: center;
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& .#{$prefix}card-title {
|
|
56
90
|
font-size: var(--#{$prefix}card-header-title-font-size);
|
|
57
91
|
font-weight: var(--#{$prefix}card-header-title-font-weight);
|
|
58
92
|
line-height: var(--#{$prefix}card-header-title-line-height);
|
|
@@ -63,7 +97,7 @@
|
|
|
63
97
|
-webkit-line-clamp: 1;
|
|
64
98
|
}
|
|
65
99
|
|
|
66
|
-
&
|
|
100
|
+
& .#{$prefix}card-subtitle {
|
|
67
101
|
font-size: var(--#{$prefix}card-header-subtitle-font-size);
|
|
68
102
|
font-weight: var(--#{$prefix}card-header-subtitle-font-weight);
|
|
69
103
|
line-height: var(--#{$prefix}card-header-subtitle-line-height);
|
|
@@ -75,17 +109,33 @@
|
|
|
75
109
|
}
|
|
76
110
|
}
|
|
77
111
|
|
|
78
|
-
&-
|
|
79
|
-
|
|
112
|
+
& &-title:not(&-header &-title) {
|
|
113
|
+
flex-shrink: 0;
|
|
114
|
+
padding-block: var(--#{$prefix}card-title-padding-y);
|
|
115
|
+
padding-inline: var(--#{$prefix}card-title-padding-x);
|
|
116
|
+
font-size: var(--#{$prefix}card-title-font-size);
|
|
117
|
+
font-weight: var(--#{$prefix}card-title-font-weight);
|
|
118
|
+
line-height: var(--#{$prefix}card-title-line-height);
|
|
119
|
+
color: var(--#{$prefix}card-title-color);
|
|
80
120
|
}
|
|
81
121
|
|
|
82
|
-
&-
|
|
83
|
-
|
|
122
|
+
& &-title--centered:not(&-header &-title) {
|
|
123
|
+
text-align: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
& &-subtitle:not(&-header &-subtitle) {
|
|
127
|
+
flex-shrink: 0;
|
|
128
|
+
font-size: var(--#{$prefix}card-header-subtitle-font-size);
|
|
129
|
+
font-weight: var(--#{$prefix}card-header-subtitle-font-weight);
|
|
130
|
+
line-height: var(--#{$prefix}card-header-subtitle-line-height);
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
color: var(--#{$prefix}card-header-subtitle-color);
|
|
84
133
|
}
|
|
85
134
|
|
|
86
135
|
&-body {
|
|
87
|
-
|
|
88
|
-
padding: var(--#{$prefix}card-body-padding-y)
|
|
136
|
+
position: relative;
|
|
137
|
+
padding-block: var(--#{$prefix}card-body-padding-y);
|
|
138
|
+
padding-inline: var(--#{$prefix}card-body-padding-x);
|
|
89
139
|
font-size: var(--#{$prefix}card-body-font-size);
|
|
90
140
|
line-height: var(--#{$prefix}card-body-line-height);
|
|
91
141
|
color: var(--#{$prefix}card-body-color);
|
|
@@ -107,11 +157,76 @@
|
|
|
107
157
|
gap: 0.5rem;
|
|
108
158
|
}
|
|
109
159
|
|
|
110
|
-
&-
|
|
111
|
-
|
|
160
|
+
&-media {
|
|
161
|
+
position: relative;
|
|
162
|
+
margin: 8px;
|
|
163
|
+
border-radius: 8px;
|
|
164
|
+
aspect-ratio: 1 / 1;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
display: flex;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
align-items: center;
|
|
169
|
+
background-color: rgba(0, 0, 0, 0.08);
|
|
170
|
+
|
|
171
|
+
&__top-left-content {
|
|
172
|
+
padding: 4px;
|
|
173
|
+
position: absolute;
|
|
174
|
+
top: 0;
|
|
175
|
+
left: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&__top-right-content {
|
|
179
|
+
padding: 4px;
|
|
180
|
+
position: absolute;
|
|
181
|
+
top: 0;
|
|
182
|
+
right: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
img {
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: 100%;
|
|
188
|
+
object-fit: cover;
|
|
189
|
+
}
|
|
112
190
|
}
|
|
113
191
|
|
|
114
|
-
&-
|
|
115
|
-
|
|
192
|
+
&--divider &-body {
|
|
193
|
+
margin-bottom: var(--#{$prefix}card-padding-y);
|
|
194
|
+
margin-top: var(--#{$prefix}card-padding-y);
|
|
195
|
+
|
|
196
|
+
&::before {
|
|
197
|
+
content: '';
|
|
198
|
+
position: absolute;
|
|
199
|
+
left: 0;
|
|
200
|
+
right: 0;
|
|
201
|
+
top: 0;
|
|
202
|
+
border-top: 1px solid var(--#{$prefix}card-border-color);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&::after {
|
|
206
|
+
content: '';
|
|
207
|
+
position: absolute;
|
|
208
|
+
left: 0;
|
|
209
|
+
right: 0;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
border-bottom: 1px solid var(--#{$prefix}card-border-color);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&--divider &__content > &-body:first-child,
|
|
216
|
+
&--divider &__content :not([hidden]):first-child &-body {
|
|
217
|
+
margin-top: 0;
|
|
218
|
+
|
|
219
|
+
&::before {
|
|
220
|
+
border-top: none;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&--divider &__content > &-body:last-child,
|
|
225
|
+
&--divider &__content :not([hidden]):last-child &-body {
|
|
226
|
+
margin-bottom: 0;
|
|
227
|
+
|
|
228
|
+
&::after {
|
|
229
|
+
border-bottom: none;
|
|
230
|
+
}
|
|
116
231
|
}
|
|
117
232
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
.#{$prefix}descriptions {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
6
|
+
row-gap: var(--#{$prefix}descriptions-gap-y);
|
|
7
|
+
column-gap: var(--#{$prefix}descriptions-gap-x);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.#{$prefix}description {
|
|
11
|
+
position: relative;
|
|
12
|
+
padding-block: var(--#{$prefix}description-padding-y);
|
|
13
|
+
padding-inline: var(--#{$prefix}description-padding-x);
|
|
14
|
+
|
|
15
|
+
&__container {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
18
|
+
row-gap: var(--#{$prefix}description-gap-y);
|
|
19
|
+
column-gap: var(--#{$prefix}description-gap-x);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-value {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
|
|
26
|
+
&__start-content,
|
|
27
|
+
&__end-content {
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__content {
|
|
32
|
+
flex-grow: 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.#{$prefix}descriptions--row &-label {
|
|
37
|
+
grid-column: span 6 / span 6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.#{$prefix}descriptions--row &-value {
|
|
41
|
+
grid-column: span 6 / span 6;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.#{$prefix}descriptions--col &-label,
|
|
45
|
+
.#{$prefix}descriptions--col &-value {
|
|
46
|
+
grid-column: span 12 / span 12;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-label {
|
|
50
|
+
font-size: var(--#{$prefix}description-label-font-size);
|
|
51
|
+
font-weight: var(--#{$prefix}description-label-font-weight);
|
|
52
|
+
color: var(--#{$prefix}description-label-color);
|
|
53
|
+
opacity: var(--#{$prefix}description-label-opacity);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-text {
|
|
57
|
+
display: inline;
|
|
58
|
+
font-size: var(--#{$prefix}description-text-font-size);
|
|
59
|
+
font-weight: var(--#{$prefix}description-text-font-weight);
|
|
60
|
+
color: var(--#{$prefix}description-text-color);
|
|
61
|
+
opacity: var(--#{$prefix}description-text-opacity);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-empty {
|
|
65
|
+
opacity: 0.75;
|
|
66
|
+
user-select: none;
|
|
67
|
+
cursor: default;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.#{$prefix}icon {
|
|
4
4
|
width: 1em;
|
|
5
5
|
height: 1em;
|
|
6
|
-
font-size: var(--#{$prefix}icon-font-size);
|
|
6
|
+
font-size: var(--#{$prefix}icon-font-size, var(--#{$prefix}icon-font-size-default)) !important;
|
|
7
7
|
color: var(--#{$prefix}icon-color);
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: center;
|
|
@@ -36,10 +36,49 @@
|
|
|
36
36
|
transform: scale(0.75);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
&-group {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-group & {
|
|
45
|
+
border-radius: 0px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-group &:first-of-type {
|
|
49
|
+
border-top-left-radius: var(--#{$prefix}input-border-radius);
|
|
50
|
+
border-bottom-left-radius: var(--#{$prefix}input-border-radius);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-group &:last-of-type {
|
|
54
|
+
border-top-right-radius: var(--#{$prefix}input-border-radius);
|
|
55
|
+
border-bottom-right-radius: var(--#{$prefix}input-border-radius);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__icon {
|
|
59
|
+
padding: 0;
|
|
40
60
|
display: flex;
|
|
41
61
|
justify-content: center;
|
|
42
62
|
align-items: center;
|
|
63
|
+
border: none;
|
|
64
|
+
outline: none;
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__icon--opacity {
|
|
69
|
+
opacity: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__icon--pointer {
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:hover &__icon--opacity-hoverable {
|
|
77
|
+
opacity: 0.5;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
43
82
|
}
|
|
44
83
|
|
|
45
84
|
&__content {
|
|
@@ -75,7 +114,8 @@
|
|
|
75
114
|
}
|
|
76
115
|
}
|
|
77
116
|
|
|
78
|
-
&__search
|
|
117
|
+
&__search,
|
|
118
|
+
&__placeholder {
|
|
79
119
|
flex: 1;
|
|
80
120
|
width: 100%;
|
|
81
121
|
padding-block: var(--#{$prefix}input-padding-y);
|
|
@@ -85,9 +125,13 @@
|
|
|
85
125
|
line-height: var(--#{$prefix}input-line-height);
|
|
86
126
|
color: var(--#{$prefix}input-color);
|
|
87
127
|
overflow: hidden;
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
|
|
128
|
+
text-overflow: ellipsis;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
display: block;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__placeholder {
|
|
134
|
+
opacity: 0.6;
|
|
91
135
|
}
|
|
92
136
|
|
|
93
137
|
&__chips {
|
|
@@ -112,8 +156,13 @@
|
|
|
112
156
|
&__start-content,
|
|
113
157
|
&__end-content {
|
|
114
158
|
flex-shrink: 0;
|
|
159
|
+
height: 100%;
|
|
115
160
|
display: flex;
|
|
116
161
|
align-items: center;
|
|
162
|
+
font-size: var(--#{$prefix}input-font-size);
|
|
163
|
+
font-family: var(--#{$prefix}input-font-family);
|
|
164
|
+
line-height: var(--#{$prefix}input-line-height);
|
|
165
|
+
gap: var(--#{$prefix}input-content-gap);
|
|
117
166
|
|
|
118
167
|
.#{$prefix}icon {
|
|
119
168
|
font-size: var(--#{$prefix}input-icon-size);
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
.#{$prefix}nav-rail {
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 73px;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&--left {
|
|
13
|
+
border-right-width: 1px;
|
|
14
|
+
border-right-color: var(--#{$prefix}nav-rail-border-color);
|
|
15
|
+
border-right-style: solid;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--right {
|
|
19
|
+
border-left-width: 1px;
|
|
20
|
+
border-left-color: var(--#{$prefix}nav-rail-border-color);
|
|
21
|
+
border-left-style: solid;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__start-content,
|
|
25
|
+
&__end-content {
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__start-content {
|
|
30
|
+
padding-block: var(--#{$prefix}nav-rail-start-content-padding-y);
|
|
31
|
+
padding-inline: var(--#{$prefix}nav-rail-start-content-padding-x);
|
|
32
|
+
gap: var(--#{$prefix}nav-rail-start-content-gap);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__end-content {
|
|
36
|
+
padding-block: var(--#{$prefix}nav-rail-end-content-padding-y);
|
|
37
|
+
padding-inline: var(--#{$prefix}nav-rail-end-content-padding-x);
|
|
38
|
+
gap: var(--#{$prefix}nav-rail-end-content-gap);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__content {
|
|
42
|
+
flex-grow: 1;
|
|
43
|
+
padding-block: var(--#{$prefix}nav-rail-content-padding-y);
|
|
44
|
+
padding-inline: var(--#{$prefix}nav-rail-content-padding-x);
|
|
45
|
+
gap: var(--#{$prefix}nav-rail-content-gap);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__start-content,
|
|
49
|
+
&__end-content,
|
|
50
|
+
&__content {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-item {
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
padding-block: var(--#{$prefix}nav-rail-item-padding-y);
|
|
58
|
+
padding-inline: var(--#{$prefix}nav-rail-item-padding-x);
|
|
59
|
+
position: relative;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
opacity: var(--#{$prefix}nav-rail-item-opacity);
|
|
62
|
+
border-radius: var(--#{$prefix}nav-rail-item-border-radius);
|
|
63
|
+
cursor: default;
|
|
64
|
+
color: var(--#{$prefix}nav-rail-item-color);
|
|
65
|
+
background-color: var(--#{$prefix}nav-rail-item-background);
|
|
66
|
+
display: flex;
|
|
67
|
+
user-select: none;
|
|
68
|
+
|
|
69
|
+
&__indicator {
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 0;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
z-index: 1;
|
|
74
|
+
width: var(--#{$prefix}nav-rail-item-indicator-size);
|
|
75
|
+
z-index: 1;
|
|
76
|
+
background: var(--#{$prefix}nav-rail-item-indicator-color);
|
|
77
|
+
transform: translateX(calc(var(--#{$prefix}nav-rail-item-indicator-size) * -1));
|
|
78
|
+
transition:
|
|
79
|
+
transform 0.125s cubic-bezier(0.17, 0.67, 0.55, 1.09),
|
|
80
|
+
inset 0.125s cubic-bezier(0.17, 0.67, 0.55, 1.09);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&__content {
|
|
84
|
+
flex-grow: 1;
|
|
85
|
+
position: relative;
|
|
86
|
+
padding-block: var(--#{$prefix}nav-rail-item-content-padding-y);
|
|
87
|
+
padding-inline: var(--#{$prefix}nav-rail-item-content-padding-x);
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: var(--#{$prefix}nav-rail-item-gap);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__media {
|
|
96
|
+
position: relative;
|
|
97
|
+
outline-width: var(--#{$prefix}nav-rail-item-media-border-width);
|
|
98
|
+
outline-style: var(--#{$prefix}nav-rail-item-media-border-style);
|
|
99
|
+
outline-color: var(--#{$prefix}nav-rail-item-media-border-color);
|
|
100
|
+
width: var(--#{$prefix}nav-rail-item-media-width);
|
|
101
|
+
height: var(--#{$prefix}nav-rail-item-media-height);
|
|
102
|
+
border-radius: var(--#{$prefix}nav-rail-item-media-border-radius);
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
transition: transform 0.125s cubic-bezier(0.17, 0.67, 0.55, 1.09);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__icon {
|
|
111
|
+
padding-block: var(--#{$prefix}nav-rail-item-icon-padding-y);
|
|
112
|
+
padding-inline: var(--#{$prefix}nav-rail-item-icon-padding-x);
|
|
113
|
+
display: flex;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
align-items: center;
|
|
116
|
+
|
|
117
|
+
& .#{$prefix}icon {
|
|
118
|
+
font-size: var(--#{$prefix}nav-rail-item-icon-font-size);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&__label {
|
|
123
|
+
position: absolute;
|
|
124
|
+
bottom: calc((var(--#{$prefix}nav-rail-item-label-font-size) + var(--#{$prefix}nav-rail-item-gap, 0)) * -1);
|
|
125
|
+
left: 50%;
|
|
126
|
+
transform: translateX(-50%);
|
|
127
|
+
font-size: var(--#{$prefix}nav-rail-item-label-font-size);
|
|
128
|
+
font-weight: var(--#{$prefix}nav-rail-item-label-font-weight);
|
|
129
|
+
line-height: var(--#{$prefix}nav-rail-item-label-line-height);
|
|
130
|
+
text-wrap: nowrap;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
display: -webkit-box;
|
|
133
|
+
-webkit-box-orient: vertical;
|
|
134
|
+
-webkit-line-clamp: 1;
|
|
135
|
+
transition: opacity 0.125s cubic-bezier(0.17, 0.67, 0.55, 1.09);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--selected {
|
|
139
|
+
color: var(--#{$prefix}_active-nav-rail-item-color);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&--selected &__media {
|
|
143
|
+
outline-color: var(--#{$prefix}_active-nav-rail-item-media-border-color);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&--selected &__icon,
|
|
147
|
+
&:hover &__icon {
|
|
148
|
+
transform: scale(1.15);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&--selected &__indicator,
|
|
152
|
+
&--selected:hover &__indicator {
|
|
153
|
+
color: var(--#{$prefix}_active-nav-rail-item-indicator-color);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&--selected &__indicator,
|
|
157
|
+
&:hover &__indicator {
|
|
158
|
+
transform: translateX(0px);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&--left &-item__indicator {
|
|
163
|
+
left: -25%;
|
|
164
|
+
border-radius: 0px var(--#{$prefix}nav-rail-item-indicator-border-radius)
|
|
165
|
+
var(--#{$prefix}nav-rail-item-indicator-border-radius) 0px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&--right &-item__indicator {
|
|
169
|
+
right: -25%;
|
|
170
|
+
border-radius: var(--#{$prefix}nav-rail-item-indicator-border-radius) 0px 0px
|
|
171
|
+
var(--#{$prefix}nav-rail-item-indicator-border-radius);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&--left &-item--selected &-item__indicator,
|
|
175
|
+
&--left &-item--selected:hover &-item__indicator {
|
|
176
|
+
left: 0px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&--right &-item--selected &-item__indicator,
|
|
180
|
+
&--right &-item--selected:hover &-item__indicator {
|
|
181
|
+
right: 0px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -2,44 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
.#{$prefix}swipe {
|
|
4
4
|
position: relative;
|
|
5
|
-
overflow-x: hidden;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
gap: var(--#{$prefix}swipe-gap);
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
overflow: auto;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-wrapper {
|
|
6
|
+
&__content {
|
|
15
7
|
position: relative;
|
|
8
|
+
overflow-x: hidden;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--#{$prefix}swipe-gap);
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 50%;
|
|
21
|
-
transform: translateY(-50%);
|
|
22
|
-
z-index: 1;
|
|
13
|
+
@media (max-width: 767px) and (hover: none) {
|
|
14
|
+
overflow-x: auto;
|
|
23
15
|
}
|
|
16
|
+
}
|
|
24
17
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
&__start-content,
|
|
19
|
+
&__end-content {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 50%;
|
|
22
|
+
transform: translateY(-50%);
|
|
23
|
+
z-index: 1;
|
|
24
|
+
}
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
&__start-content {
|
|
27
|
+
left: -1.25rem;
|
|
28
|
+
}
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
transition: all 0.2s ease-in-out;
|
|
37
|
-
}
|
|
30
|
+
&__end-content {
|
|
31
|
+
right: -1.25rem;
|
|
32
|
+
}
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
&--auto-hide &__start-content,
|
|
35
|
+
&--auto-hide &__end-content {
|
|
36
|
+
transform: translateY(-50%) scale(0);
|
|
37
|
+
transition: all 0.2s ease-in-out;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--auto-hide:hover &__start-content,
|
|
41
|
+
&--auto-hide:hover &__end-content {
|
|
42
|
+
transform: translateY(-50%) scale(1);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&--start &-item {
|
|
@@ -16,13 +16,18 @@
|
|
|
16
16
|
margin: 0 auto;
|
|
17
17
|
display: flex;
|
|
18
18
|
align-items: center;
|
|
19
|
-
gap:
|
|
19
|
+
gap: var(--#{$prefix}toolbar-gap);
|
|
20
20
|
z-index: 1;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&__start-action,
|
|
24
|
-
&
|
|
24
|
+
&__start-content,
|
|
25
|
+
&__end-action,
|
|
26
|
+
&__end-content {
|
|
25
27
|
flex-shrink: 0;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: var(--#{$prefix}toolbar-content-gap);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
&__content {
|