@yuuvis/material 0.1.0
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/README.md +5 -0
- package/fesm2022/yuuvis-material.mjs +229 -0
- package/fesm2022/yuuvis-material.mjs.map +1 -0
- package/index.d.ts +4 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/directives/icon-button/icon-button.directive.d.ts +15 -0
- package/lib/directives/icon-button/icon-button.model.d.ts +4 -0
- package/lib/directives/icon-button/index.d.ts +2 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/yuv-button.directive.d.ts +17 -0
- package/lib/providers/index.d.ts +1 -0
- package/lib/providers/material.providers.d.ts +2 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/yuv-mat-icon-registry.service.d.ts +13 -0
- package/package.json +26 -0
- package/scss/components/_loading-indicator.scss +126 -0
- package/scss/components/index.scss +1 -0
- package/scss/elements/_body.scss +11 -0
- package/scss/elements/_focus.scss +20 -0
- package/scss/elements/_index.scss +6 -0
- package/scss/elements/_root.scss +14 -0
- package/scss/elements/_scrollbar.scss +33 -0
- package/scss/elements/_text-selection.scss +6 -0
- package/scss/elements/_text.scss +23 -0
- package/scss/generics/_normalize.scss +1 -0
- package/scss/generics/index.scss +1 -0
- package/scss/index.scss +45 -0
- package/scss/material-components/_button.scss +5 -0
- package/scss/material-components/_cdk-overlay.scss +6 -0
- package/scss/material-components/_dialog.scss +6 -0
- package/scss/material-components/_icon-button.scss +34 -0
- package/scss/material-components/_icon.scss +15 -0
- package/scss/material-components/_menu.scss +10 -0
- package/scss/material-components/_select.scss +19 -0
- package/scss/material-components/_tools.scss +1 -0
- package/scss/material-components/index.scss +8 -0
- package/scss/material-components/progress/_index.scss +1 -0
- package/scss/material-components/progress/_progress.scss +32 -0
- package/scss/material-components/progress/_progress.tools.scss +8 -0
- package/scss/themes/yuuvis-standard/theme-color.scss +136 -0
- package/scss/themes/yuuvis-standard/theme.scss +230 -0
- package/scss/token/_css-token.scss +11 -0
- package/scss/token/_index.scss +1 -0
- package/scss/token/_token.config.scss +1 -0
- package/scss/token/_token.scss +249 -0
- package/scss/token/_token.tools.scss +23 -0
- package/scss/utils/_font.scss +41 -0
- package/scss/utils/_index.scss +3 -0
- package/scss/utils/_spacing.scss +53 -0
- package/scss/utils/_visibility.scss +9 -0
- package/scss/vendors/_index.scss +0 -0
package/scss/index.scss
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@forward 'material-components/tools';
|
|
3
|
+
|
|
4
|
+
@mixin global-styles($generics: true, $vendors: true, $elements: true, $components: true, $utils: true, $material-components: true) {
|
|
5
|
+
@layer token, generics, vendors, elements, ng-components, components, utils;
|
|
6
|
+
|
|
7
|
+
@layer token {
|
|
8
|
+
@include meta.load-css('./themes/yuuvis-standard/theme');
|
|
9
|
+
@include meta.load-css('./token');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@if ($generics) {
|
|
13
|
+
@layer generics {
|
|
14
|
+
@include meta.load-css('./generics');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@if ($vendors) {
|
|
19
|
+
@layer vendors {
|
|
20
|
+
@include meta.load-css('./vendors');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@if ($elements) {
|
|
25
|
+
@layer elements {
|
|
26
|
+
@include meta.load-css('./elements');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@if ($components) {
|
|
31
|
+
@layer components {
|
|
32
|
+
@include meta.load-css('./components');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@if ($utils or $components) {
|
|
37
|
+
@layer utils {
|
|
38
|
+
@include meta.load-css('./utils');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@if($material-components){
|
|
43
|
+
@include meta.load-css('./material-components');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use './../token/token.tools' as t;
|
|
3
|
+
|
|
4
|
+
.ymt-icon-button--size-s.mat-mdc-icon-button {
|
|
5
|
+
@include mat.icon-button-overrides(
|
|
6
|
+
(
|
|
7
|
+
state-layer-size: t.use-token(sizing-l),
|
|
8
|
+
icon-size: t.use-token(sizing-s)
|
|
9
|
+
)
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
.mat-icon {
|
|
13
|
+
height: t.use-token(sizing-s);
|
|
14
|
+
width: t.use-token(sizing-s);
|
|
15
|
+
font-size: t.use-token(sizing-s);
|
|
16
|
+
line-height: 1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ymt-icon-button--size-m.mat-mdc-icon-button {
|
|
21
|
+
@include mat.icon-button-overrides(
|
|
22
|
+
(
|
|
23
|
+
state-layer-size: t.use-token(sizing-2xl),
|
|
24
|
+
icon-size: t.use-token(sizing-m)
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
.mat-icon {
|
|
29
|
+
height: t.use-token(sizing-m);
|
|
30
|
+
width: t.use-token(sizing-m);
|
|
31
|
+
font-size: t.use-token(sizing-m);
|
|
32
|
+
line-height: 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use './../token/token.tools' as t;
|
|
2
|
+
|
|
3
|
+
.ymt-icon--size-s.mat-icon {
|
|
4
|
+
height: t.use-token(sizing-s);
|
|
5
|
+
width: t.use-token(sizing-s);
|
|
6
|
+
font-size: t.use-token(sizing-s);
|
|
7
|
+
line-height: 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ymt-icon--size-m.mat-icon {
|
|
11
|
+
height: t.use-token(sizing-m);
|
|
12
|
+
width: t.use-token(sizing-m);
|
|
13
|
+
font-size: t.use-token(sizing-m);
|
|
14
|
+
line-height: 1;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use './../token/token.tools' as t;
|
|
2
|
+
|
|
3
|
+
.mat-mdc-select-trigger{
|
|
4
|
+
gap: t.use-token(spacing-xs);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
div.mat-mdc-select-panel{
|
|
8
|
+
border: 1px solid t.use-token(outline-variant);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cdk-overlay-container .cdk-overlay-connected-position-bounding-box .cdk-overlay-pane div.mat-mdc-select-panel {
|
|
12
|
+
border-radius: t.use-token(corner-xs);
|
|
13
|
+
margin-block-start: t.use-token(spacing-xs);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
.mat-mdc-select-panel .mat-mdc-option{
|
|
18
|
+
min-height: t.use-token(sizing-3xl)
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward 'progress/progress.tools';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward 'progress';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use '../../token/token.tools' as t;
|
|
2
|
+
|
|
3
|
+
.ymt-progress-bar {
|
|
4
|
+
&--position-absolute {
|
|
5
|
+
&.mat-mdc-progress-bar.mdc-linear-progress {
|
|
6
|
+
position: absolute;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ymt-progress-spinner {
|
|
12
|
+
&--tiny {
|
|
13
|
+
width: t.use-token(sizing-xs) !important;
|
|
14
|
+
height: t.use-token(sizing-xs) !important;
|
|
15
|
+
}
|
|
16
|
+
&--small {
|
|
17
|
+
width: t.use-token(sizing-s) !important;
|
|
18
|
+
height: t.use-token(sizing-s) !important;
|
|
19
|
+
}
|
|
20
|
+
&--medium {
|
|
21
|
+
width: t.use-token(sizing-m) !important;
|
|
22
|
+
height: t.use-token(sizing-m) !important;
|
|
23
|
+
}
|
|
24
|
+
&--large {
|
|
25
|
+
width: t.use-token(sizing-xl) !important;
|
|
26
|
+
height: t.use-token(sizing-xl) !important;
|
|
27
|
+
}
|
|
28
|
+
&--giant {
|
|
29
|
+
width: t.use-token(sizing-4xl) !important;
|
|
30
|
+
height: t.use-token(sizing-4xl) !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// This file was generated by running 'ng generate @angular/material:theme-color'.
|
|
2
|
+
// Proceed with caution if making changes to this file.
|
|
3
|
+
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
6
|
+
// Note: Color palettes are generated from primary: #2A70AC, secondary: #8E9198, tertiary: #8E9198, neutral: #8E9198, neutral variant: #8E9198, error: #BF3352
|
|
7
|
+
$_palettes: (
|
|
8
|
+
primary: (
|
|
9
|
+
0: #000000,
|
|
10
|
+
10: #001d35,
|
|
11
|
+
20: #003256,
|
|
12
|
+
25: #003e68,
|
|
13
|
+
30: #00497a,
|
|
14
|
+
35: #00558d,
|
|
15
|
+
40: #13629d,
|
|
16
|
+
50: #387bb8,
|
|
17
|
+
60: #5595d3,
|
|
18
|
+
70: #72b0f0,
|
|
19
|
+
80: #9ccaff,
|
|
20
|
+
90: #d0e4ff,
|
|
21
|
+
95: #e9f1ff,
|
|
22
|
+
98: #f8f9ff,
|
|
23
|
+
99: #fdfcff,
|
|
24
|
+
100: #ffffff,
|
|
25
|
+
),
|
|
26
|
+
secondary: (
|
|
27
|
+
0: #000000,
|
|
28
|
+
10: #181c21,
|
|
29
|
+
20: #2d3136,
|
|
30
|
+
25: #383c42,
|
|
31
|
+
30: #43474d,
|
|
32
|
+
35: #4f5359,
|
|
33
|
+
40: #5b5e65,
|
|
34
|
+
50: #74777e,
|
|
35
|
+
60: #8e9198,
|
|
36
|
+
70: #a8abb2,
|
|
37
|
+
80: #c4c6ce,
|
|
38
|
+
90: #e0e2ea,
|
|
39
|
+
95: #eef0f8,
|
|
40
|
+
98: #f8f9ff,
|
|
41
|
+
99: #fdfcff,
|
|
42
|
+
100: #ffffff,
|
|
43
|
+
),
|
|
44
|
+
tertiary: (
|
|
45
|
+
0: #000000,
|
|
46
|
+
10: #181c21,
|
|
47
|
+
20: #2d3136,
|
|
48
|
+
25: #383c42,
|
|
49
|
+
30: #43474d,
|
|
50
|
+
35: #4f5359,
|
|
51
|
+
40: #5b5e65,
|
|
52
|
+
50: #74777e,
|
|
53
|
+
60: #8e9198,
|
|
54
|
+
70: #a8abb2,
|
|
55
|
+
80: #c4c6ce,
|
|
56
|
+
90: #e0e2ea,
|
|
57
|
+
95: #eef0f8,
|
|
58
|
+
98: #f8f9ff,
|
|
59
|
+
99: #fdfcff,
|
|
60
|
+
100: #ffffff,
|
|
61
|
+
),
|
|
62
|
+
neutral: (
|
|
63
|
+
0: #000000,
|
|
64
|
+
10: #181c21,
|
|
65
|
+
20: #2d3136,
|
|
66
|
+
25: #383c42,
|
|
67
|
+
30: #43474d,
|
|
68
|
+
35: #4f5359,
|
|
69
|
+
40: #5b5e65,
|
|
70
|
+
50: #74777e,
|
|
71
|
+
60: #8e9198,
|
|
72
|
+
70: #a8abb2,
|
|
73
|
+
80: #c4c6ce,
|
|
74
|
+
90: #e0e2ea,
|
|
75
|
+
95: #eef0f8,
|
|
76
|
+
98: #f8f9ff,
|
|
77
|
+
99: #fdfcff,
|
|
78
|
+
100: #ffffff,
|
|
79
|
+
4: #0b0e14,
|
|
80
|
+
6: #101419,
|
|
81
|
+
12: #1c2025,
|
|
82
|
+
17: #272a30,
|
|
83
|
+
22: #31353b,
|
|
84
|
+
24: #36393f,
|
|
85
|
+
87: #d7dae1,
|
|
86
|
+
92: #e6e8f0,
|
|
87
|
+
94: #ebeef5,
|
|
88
|
+
96: #f1f3fb,
|
|
89
|
+
),
|
|
90
|
+
neutral-variant: (
|
|
91
|
+
0: #000000,
|
|
92
|
+
10: #181c21,
|
|
93
|
+
20: #2d3136,
|
|
94
|
+
25: #383c42,
|
|
95
|
+
30: #43474d,
|
|
96
|
+
35: #4f5359,
|
|
97
|
+
40: #5b5e65,
|
|
98
|
+
50: #74777e,
|
|
99
|
+
60: #8e9198,
|
|
100
|
+
70: #a8abb2,
|
|
101
|
+
80: #c4c6ce,
|
|
102
|
+
90: #e0e2ea,
|
|
103
|
+
95: #eef0f8,
|
|
104
|
+
98: #f8f9ff,
|
|
105
|
+
99: #fdfcff,
|
|
106
|
+
100: #ffffff,
|
|
107
|
+
),
|
|
108
|
+
error: (
|
|
109
|
+
0: #000000,
|
|
110
|
+
10: #400011,
|
|
111
|
+
20: #670021,
|
|
112
|
+
25: #7c0029,
|
|
113
|
+
30: #8f0732,
|
|
114
|
+
35: #a0193d,
|
|
115
|
+
40: #b12848,
|
|
116
|
+
50: #d2425f,
|
|
117
|
+
60: #f45b78,
|
|
118
|
+
70: #ff8798,
|
|
119
|
+
80: #ffb2ba,
|
|
120
|
+
90: #ffd9dc,
|
|
121
|
+
95: #ffeced,
|
|
122
|
+
98: #fff8f7,
|
|
123
|
+
99: #fffbff,
|
|
124
|
+
100: #ffffff,
|
|
125
|
+
),
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
$_rest: (
|
|
129
|
+
secondary: map.get($_palettes, secondary),
|
|
130
|
+
neutral: map.get($_palettes, neutral),
|
|
131
|
+
neutral-variant: map.get($_palettes, neutral-variant),
|
|
132
|
+
error: map.get($_palettes, error),
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
$primary-palette: map.merge(map.get($_palettes, primary), $_rest);
|
|
136
|
+
$tertiary-palette: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'theme-color';
|
|
4
|
+
@use '../../token/token';
|
|
5
|
+
@use '../../token/token.tools' as t;
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
//todo: move to global styles
|
|
9
|
+
color-scheme: light dark;
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
Material Theming & System Token Overrides
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
$theme: (
|
|
16
|
+
color: (
|
|
17
|
+
primary: theme-color.$primary-palette,
|
|
18
|
+
tertiary: theme-color.$tertiary-palette
|
|
19
|
+
),
|
|
20
|
+
typography: (
|
|
21
|
+
plain-family: token.$ref-font-family,
|
|
22
|
+
brand-family: token.$ref-font-family,
|
|
23
|
+
bold-weight: token.$ref-font-weight-bold,
|
|
24
|
+
medium-weight: token.$ref-font-weight-medium,
|
|
25
|
+
regular-weight: token.$ref-font-weight-regular
|
|
26
|
+
),
|
|
27
|
+
density: -1
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
$overrides: (
|
|
31
|
+
'outline-variant': light-dark(map.get(theme-color.$primary-palette, 'neutral-variant', 90), map.get(theme-color.$primary-palette, 'neutral', 20)),
|
|
32
|
+
'surface-variant': var(--mat-sys-surface),
|
|
33
|
+
'on-surface-variant': var(--mat-sys-on-surface),
|
|
34
|
+
'headline-small': var(--mat-sys-headline-small-weight) var(--mat-sys-headline-small-size) / var(--mat-sys-headline-small-line-height)
|
|
35
|
+
var(--mat-sys-headline-small-font),
|
|
36
|
+
'headline-small-size': token.$ref-font-headline-small-size,
|
|
37
|
+
'headline-small-line-height': token.$ref-font-headline-line-height,
|
|
38
|
+
'headline-small-weight': token.$ref-font-weight-medium,
|
|
39
|
+
|
|
40
|
+
'headline-medium': var(--mat-sys-headline-medium-weight) var(--mat-sys-headline-medium-size) / var(--mat-sys-headline-medium-line-height)
|
|
41
|
+
var(--mat-sys-headline-medium-font),
|
|
42
|
+
'headline-medium-size': token.$ref-font-headline-medium-size,
|
|
43
|
+
'headline-medium-line-height': token.$ref-font-headline-line-height,
|
|
44
|
+
'headline-medium-weight': token.$ref-font-weight-medium,
|
|
45
|
+
|
|
46
|
+
'headline-large': var(--mat-sys-headline-large-weight) var(--mat-sys-headline-large-size) / var(--mat-sys-headline-large-line-height)
|
|
47
|
+
var(--mat-sys-headline-large-font),
|
|
48
|
+
'headline-large-size': token.$ref-font-headline-large-size,
|
|
49
|
+
'headline-large-line-height': token.$ref-font-headline-line-height,
|
|
50
|
+
'headline-large-weight': token.$ref-font-weight-medium,
|
|
51
|
+
|
|
52
|
+
'title-small': var(--mat-sys-title-small-weight) var(--mat-sys-title-small-size) / var(--mat-sys-title-small-line-height) var(--mat-sys-title-small-font),
|
|
53
|
+
'title-small-size': 0.875rem,
|
|
54
|
+
'title-small-weight': token.$ref-font-weight-medium,
|
|
55
|
+
'title-small-line-height': token.$ref-font-headline-line-height,
|
|
56
|
+
|
|
57
|
+
'title-medium': var(--mat-sys-title-medium-weight) var(--mat-sys-title-medium-size) / var(--mat-sys-title-medium-line-height)
|
|
58
|
+
var(--mat-sys-title-medium-font),
|
|
59
|
+
'title-medium-size': 1rem,
|
|
60
|
+
'title-medium-weight': token.$ref-font-weight-medium,
|
|
61
|
+
'title-medium-line-height': token.$ref-font-headline-line-height,
|
|
62
|
+
|
|
63
|
+
'title-large': var(--mat-sys-title-large-weight) var(--mat-sys-title-large-size) / var(--mat-sys-title-large-line-height) var(--mat-sys-title-large-font),
|
|
64
|
+
'title-large-size': 1.125rem,
|
|
65
|
+
'title-large-weight': token.$ref-font-weight-medium,
|
|
66
|
+
'title-large-line-height': token.$ref-font-headline-line-height,
|
|
67
|
+
|
|
68
|
+
'body-small': var(--mat-sys-body-small-weight) var(--mat-sys-body-small-size) / var(--mat-sys-body-small-line-height) var(--mat-sys-body-small-font),
|
|
69
|
+
'body-medium': var(--mat-sys-body-medium-weight) var(--mat-sys-body-medium-size) / var(--mat-sys-body-medium-line-height) var(--mat-sys-body-medium-font),
|
|
70
|
+
'body-large': var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size) / var(--mat-sys-body-large-line-height) var(--mat-sys-body-large-font),
|
|
71
|
+
|
|
72
|
+
'label-small': var(--mat-sys-label-small-weight) var(--mat-sys-label-small-size) / var(--mat-sys-label-small-line-height) var(--mat-sys-label-small-font),
|
|
73
|
+
'label-medium': var(--mat-sys-label-medium-weight) var(--mat-sys-label-medium-size) / var(--mat-sys-label-medium-line-height)
|
|
74
|
+
var(--mat-sys-label-medium-font),
|
|
75
|
+
'label-large': var(--mat-sys-label-large-weight) var(--mat-sys-label-large-size) / var(--mat-sys-label-large-line-height) var(--mat-sys-label-large-font),
|
|
76
|
+
|
|
77
|
+
'display-small': var(--mat-sys-display-small-weight) var(--mat-sys-display-small-size) / var(--mat-sys-display-small-line-height)
|
|
78
|
+
var(--mat-sys-display-small-font),
|
|
79
|
+
'display-medium': var(--mat-sys-display-medium-weight) var(--mat-sys-display-medium-size) / var(--mat-sys-display-medium-line-height)
|
|
80
|
+
var(--mat-sys-display-medium-font),
|
|
81
|
+
'display-large': var(--mat-sys-display-large-weight) var(--mat-sys-display-large-size) / var(--mat-sys-display-large-line-height)
|
|
82
|
+
var(--mat-sys-display-large-font)
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
@include mat.theme($theme, $overrides);
|
|
86
|
+
|
|
87
|
+
/*
|
|
88
|
+
Material Component Token Overrides
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/* Core */
|
|
92
|
+
@include mat.core-overrides(
|
|
93
|
+
(
|
|
94
|
+
option-label-text-font: token.$font-body-font,
|
|
95
|
+
option-label-text-line-height: token.$font-body-line-height,
|
|
96
|
+
option-label-text-size: token.$font-body-size,
|
|
97
|
+
option-label-text-tracking: token.$font-body-tracking,
|
|
98
|
+
option-label-text-weight: token.$font-body-weight,
|
|
99
|
+
optgroup-label-text-font: token.$font-body-font,
|
|
100
|
+
optgroup-label-text-line-height: token.$font-body-line-height,
|
|
101
|
+
optgroup-label-text-size: token.$font-body-size,
|
|
102
|
+
optgroup-label-text-tracking: token.$font-body-tracking,
|
|
103
|
+
optgroup-label-text-weight: token.$font-body-weight,
|
|
104
|
+
)
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
/* Loading Indicator/Progress-Bar/-Spinner */
|
|
108
|
+
@include mat.progress-bar-overrides((
|
|
109
|
+
active-indicator-height: token.$progress-bar-height,
|
|
110
|
+
track-height: token.$progress-bar-height,
|
|
111
|
+
//track-shape: none,
|
|
112
|
+
active-indicator-color: var(--mat-sys-primary),
|
|
113
|
+
track-color: rgb(from var(--mat-sys-primary) r g b / 0.2),
|
|
114
|
+
));
|
|
115
|
+
@include mat.progress-spinner-overrides((
|
|
116
|
+
active-indicator-color: var(--mat-sys-primary),
|
|
117
|
+
//active-indicator-width: 40px, // does not work!
|
|
118
|
+
//size: var(--ymt-sizing-small), // does not work!
|
|
119
|
+
));
|
|
120
|
+
/* Buttons */
|
|
121
|
+
@include mat.button-overrides(());
|
|
122
|
+
/*Icon Button*/
|
|
123
|
+
/* This is a quick and dirty workaround.
|
|
124
|
+
Material Icon Button with larger absolute positioned touch
|
|
125
|
+
targets cause horizontal scrollbar to appear.*/
|
|
126
|
+
@include mat.icon-button-overrides(
|
|
127
|
+
(
|
|
128
|
+
touch-target-display: none,
|
|
129
|
+
state-layer-color: var(--mat-sys-on-surface),
|
|
130
|
+
state-layer-size: token.$sizing-2xl,
|
|
131
|
+
icon-size: token.$sizing-m,
|
|
132
|
+
)
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
/*Fab*/
|
|
136
|
+
@include mat.fab-overrides(
|
|
137
|
+
(
|
|
138
|
+
container-elevation-shadow: none,
|
|
139
|
+
focus-container-elevation-shadow: none,
|
|
140
|
+
hover-container-elevation-shadow: none,
|
|
141
|
+
pressed-container-elevation-shadow: none,
|
|
142
|
+
touch-target-display: none,
|
|
143
|
+
extended-container-elevation-shadow: none,
|
|
144
|
+
extended-focus-container-elevation-shadow: none,
|
|
145
|
+
extended-hover-container-elevation-shadow: none,
|
|
146
|
+
extended-pressed-container-elevation-shadow: none,
|
|
147
|
+
extended-container-height: 36px,
|
|
148
|
+
small-container-elevation-shadow: none,
|
|
149
|
+
small-focus-container-elevation-shadow: none,
|
|
150
|
+
small-hover-container-elevation-shadow: none,
|
|
151
|
+
small-pressed-container-elevation-shadow: none,
|
|
152
|
+
small-touch-target-display: none
|
|
153
|
+
)
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
/*Form Field*/
|
|
157
|
+
@include mat.form-field-density(-4);
|
|
158
|
+
@include mat.form-field-overrides(
|
|
159
|
+
(
|
|
160
|
+
container-text-font: var(--mat-sys-body-medium-font),
|
|
161
|
+
container-text-size: var(--mat-sys-body-medium-size),
|
|
162
|
+
container-text-line-height: var(--mat-sys-body-medium-line-height),
|
|
163
|
+
container-text-tracking: var(--mat-sys-body-medium-tracking),
|
|
164
|
+
container-text-weight: var(--mat-sys-body-medium-weight),
|
|
165
|
+
container-vertical-padding: 10px,
|
|
166
|
+
outlined-focus-outline-color: var(--yuv-focus-indicator-outer),
|
|
167
|
+
outlined-focus-outline-width: var(--yuv-focus-indicator-size),
|
|
168
|
+
outlined-label-text-font: var(--mat-sys-body-medium-font),
|
|
169
|
+
outlined-label-text-size: var(--mat-sys-body-medium-size),
|
|
170
|
+
outlined-label-text-tracking: var(--mat-sys-body-medium-tracking),
|
|
171
|
+
outlined-label-text-weight: var(--mat-sys-body-medium-weight)
|
|
172
|
+
)
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
/*Select*/
|
|
176
|
+
@include mat.select-overrides(
|
|
177
|
+
(
|
|
178
|
+
trigger-text-font: var(--mat-sys-body-medium-font),
|
|
179
|
+
trigger-text-line-height: var(--mat-sys-body-medium-line-height),
|
|
180
|
+
trigger-text-size: var(--mat-sys-body-medium-size),
|
|
181
|
+
trigger-text-tracking: var(--mat-sys-body-medium-tracking),
|
|
182
|
+
trigger-text-weight: var(--mat-sys-body-medium-weight),
|
|
183
|
+
container-elevation-shadow: none,
|
|
184
|
+
panel-background-color: var(--mat-sys-surface-container-low),
|
|
185
|
+
)
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
/*Menu*/
|
|
189
|
+
@include mat.menu-overrides(
|
|
190
|
+
(
|
|
191
|
+
container-elevation-shadow: none,
|
|
192
|
+
container-shape: var(--mat-sys-corner-medium),
|
|
193
|
+
container-color: var(--mat-sys-surface-container-low),
|
|
194
|
+
item-label-text-font: token.$font-body-font,
|
|
195
|
+
item-label-text-line-height: token.$font-body-line-height,
|
|
196
|
+
item-label-text-size: token.$font-body-size,
|
|
197
|
+
item-label-text-tracking: token.$font-body-tracking,
|
|
198
|
+
item-label-text-weight: token.$font-body-weight,
|
|
199
|
+
)
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
/*Dialog*/
|
|
203
|
+
@include mat.dialog-overrides(
|
|
204
|
+
(
|
|
205
|
+
container-shape: var(--mat-sys-corner-medium),
|
|
206
|
+
container-color: var(--mat-sys-surface-container-low),
|
|
207
|
+
subhead-color: var(--mat-sys-on-surface),
|
|
208
|
+
subhead-font: var(--mat-sys-title-large-font),
|
|
209
|
+
subhead-line-height: var(--mat-sys-title-large-line-height),
|
|
210
|
+
subhead-size: var(--mat-sys-title-large-size),
|
|
211
|
+
subhead-weight: var(--mat-sys-title-large-weight),
|
|
212
|
+
subhead-tracking: var(--mat-sys-title-large-tracking),
|
|
213
|
+
//supporting-text-color: var(--mat-sys-on-surface-variant),
|
|
214
|
+
//supporting-text-font: var(--mat-sys-body-medium-font),
|
|
215
|
+
//supporting-text-line-height: var(--mat-sys-body-medium-line-height),
|
|
216
|
+
//supporting-text-size: var(--mat-sys-body-medium-size),
|
|
217
|
+
//supporting-text-weight: var(--mat-sys-body-medium-weight),
|
|
218
|
+
//supporting-text-tracking: var(--mat-sys-body-medium-tracking),
|
|
219
|
+
//container-elevation-shadow: none,
|
|
220
|
+
//container-max-width: none,
|
|
221
|
+
//container-small-max-width: none,
|
|
222
|
+
//container-min-width: none,
|
|
223
|
+
//actions-alignment: none,
|
|
224
|
+
//actions-padding: none,
|
|
225
|
+
//content-padding: none,
|
|
226
|
+
with-actions-content-padding: none,
|
|
227
|
+
//headline-padding: none,
|
|
228
|
+
)
|
|
229
|
+
);
|
|
230
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "css-token";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$prefix: 'ymt';
|