@onemrvapublic/design-system-theme 17.0.28 → 17.0.29
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/components/_buttons.scss +6 -1
- package/package.json +1 -1
- package/utilities/_variables.scss +67 -75
package/components/_buttons.scss
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
@mixin theme($theme) {
|
|
7
7
|
$spacer: map-get($theme, "spacer");
|
|
8
|
+
$accent400: µ.accent($theme, 400);
|
|
9
|
+
$accent500: µ.accent($theme, 500);
|
|
10
|
+
$accent-gradient: transparent
|
|
11
|
+
linear-gradient(90deg, $accent400 0%, $accent500 100%) 0% 0% no-repeat
|
|
12
|
+
padding-box;
|
|
8
13
|
|
|
9
14
|
mat-button-toggle-group {
|
|
10
15
|
border-radius: $onemrva-button-border-radius;
|
|
@@ -280,7 +285,7 @@
|
|
|
280
285
|
&.mat-mdc-fab,
|
|
281
286
|
&.mat-mdc-mini-fab {
|
|
282
287
|
&.mat-accent {
|
|
283
|
-
background: $
|
|
288
|
+
background: $accent-gradient;
|
|
284
289
|
}
|
|
285
290
|
|
|
286
291
|
&.mat-error {
|
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
@use "@angular/material" as mat;
|
|
3
3
|
@use "palettes";
|
|
4
4
|
|
|
5
|
-
$onemrva-accent-gradient: transparent
|
|
5
|
+
$onemrva-accent-gradient: transparent
|
|
6
|
+
linear-gradient(90deg, #de2174 0%, #eb142a 100%) 0% 0% no-repeat padding-box;
|
|
6
7
|
$onemrva-accent-gradient-vertical: $onemrva-accent-gradient;
|
|
7
8
|
$onemrva-button-outline-opacity: 0.3;
|
|
8
9
|
$onemrva-button-border-radius: 500px;
|
|
@@ -10,117 +11,108 @@ $box-shadow: 0px 3px 3px #312f3a29;
|
|
|
10
11
|
$gap: 8px;
|
|
11
12
|
|
|
12
13
|
$spacer: 8px !default;
|
|
13
|
-
$spacers:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'-s' $spacer,
|
|
17
|
-
'' $spacer,
|
|
18
|
-
'-m' $spacer * 2,
|
|
19
|
-
'-l' $spacer * 3,
|
|
20
|
-
'-xl' $spacer * 4,
|
|
21
|
-
'-2xl' $spacer * 5,
|
|
22
|
-
'-3xl' $spacer * 7,
|
|
23
|
-
'-auto' 'auto';
|
|
14
|
+
$spacers: "-0" 0, "-2xs" $spacer * 0.25, "-xs" $spacer * 0.5, "-s" $spacer,
|
|
15
|
+
"" $spacer, "-m" $spacer * 2, "-l" $spacer * 3, "-xl" $spacer * 4,
|
|
16
|
+
"-2xl" $spacer * 5, "-3xl" $spacer * 7, "-auto" "auto";
|
|
24
17
|
|
|
25
18
|
$breakpoints: (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
19
|
+
xsmall: (
|
|
20
|
+
max: 599.99,
|
|
21
|
+
),
|
|
22
|
+
small: (
|
|
23
|
+
min: 600,
|
|
24
|
+
max: 959.99,
|
|
25
|
+
),
|
|
26
|
+
medium: (
|
|
27
|
+
min: 960,
|
|
28
|
+
max: 1279.99,
|
|
29
|
+
),
|
|
30
|
+
large: (
|
|
31
|
+
min: 1280,
|
|
32
|
+
max: 1535.99,
|
|
33
|
+
),
|
|
34
|
+
xlarge: (
|
|
35
|
+
min: 1536,
|
|
36
|
+
max: 1919.99,
|
|
37
|
+
),
|
|
38
|
+
xxlarge: (
|
|
39
|
+
min: 1920,
|
|
40
|
+
),
|
|
48
41
|
);
|
|
49
42
|
|
|
50
|
-
|
|
51
43
|
$onemrva-typography: mat.define-typography-config(
|
|
52
44
|
// One-off header, usually at the top of the page (e.g. a hero header). CSS: .mat-headline-1
|
|
53
45
|
$headline-1:
|
|
54
46
|
mat.define-typography-level(150px, 180px, 700, $font-family: Poppins),
|
|
55
|
-
|
|
47
|
+
// One-off header, usually at the top of the page (e.g. a hero header). CSS: .mat-headline-2
|
|
56
48
|
$headline-2:
|
|
57
49
|
mat.define-typography-level(70px, 105px, 700, $font-family: Poppins),
|
|
58
|
-
|
|
50
|
+
// One-off header, usually at the top of the page (e.g. a hero header). CSS: .mat-headline-3
|
|
59
51
|
$headline-3:
|
|
60
52
|
mat.define-typography-level(29px, 51px, 600, $font-family: Poppins),
|
|
61
|
-
|
|
53
|
+
// One-off header, usually at the top of the page (e.g. a hero header). CSS: .mat-headline-4
|
|
62
54
|
$headline-4:
|
|
63
55
|
mat.define-typography-level(29px, 51px, 600, $font-family: Poppins),
|
|
64
|
-
|
|
56
|
+
// Section heading corresponding to the <h1> tag. CSS: .mat-h1 or .mat-headline-5 Native element: <h1>
|
|
65
57
|
$headline-5:
|
|
66
58
|
mat.define-typography-level(29px, 51px, 600, $font-family: Poppins),
|
|
67
|
-
|
|
59
|
+
// Section heading corresponding to the <h2> tag. CSS: .mat-h2 or .mat-headline-6 Native element: <h2>
|
|
68
60
|
$headline-6:
|
|
69
61
|
mat.define-typography-level(26px, 46px, 600, $font-family: Poppins),
|
|
70
|
-
|
|
62
|
+
// Section heading corresponding to the <h3> tag. CSS: .mat-h3 or .mat-subtitle-1 Native element: <h3>
|
|
71
63
|
$subtitle-1:
|
|
72
64
|
mat.define-typography-level(23px, 40px, 600, $font-family: Poppins),
|
|
73
|
-
|
|
65
|
+
// Body strong CSS: .mat-body-strong or .mat-subtitle-2
|
|
74
66
|
$subtitle-2:
|
|
75
67
|
mat.define-typography-level(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
16px,
|
|
69
|
+
26px,
|
|
70
|
+
600,
|
|
79
71
|
$font-family: "Source Sans Pro"
|
|
80
72
|
),
|
|
81
|
-
|
|
73
|
+
// Why would angular map body-1 and h4 on the same typography??? Work around: mat-h4 (see below) CSS: .mat-h4 or .mat-body-1 Native element: <h4>
|
|
82
74
|
$body-1:
|
|
83
75
|
mat.define-typography-level(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
16px,
|
|
77
|
+
26px,
|
|
78
|
+
400,
|
|
87
79
|
$font-family: "Source Sans Pro"
|
|
88
80
|
),
|
|
89
|
-
|
|
81
|
+
// Bolder body text. CSS: .mat-body or .mat-body-2
|
|
90
82
|
$body-2:
|
|
91
83
|
mat.define-typography-level(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
16px,
|
|
85
|
+
26px,
|
|
86
|
+
400,
|
|
95
87
|
$font-family: "Source Sans Pro"
|
|
96
88
|
),
|
|
97
|
-
|
|
89
|
+
// Smaller body and hint text. CSS: .mat-small or .mat-caption
|
|
98
90
|
$caption:
|
|
99
91
|
mat.define-typography-level(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
14px,
|
|
93
|
+
21px,
|
|
94
|
+
400,
|
|
103
95
|
$font-family: "Source Sans Pro"
|
|
104
96
|
),
|
|
105
|
-
|
|
97
|
+
// Buttons and anchors.
|
|
106
98
|
$button:
|
|
107
99
|
mat.define-typography-level(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
16px,
|
|
101
|
+
26px,
|
|
102
|
+
500,
|
|
111
103
|
$font-family: "Source Sans Pro"
|
|
112
104
|
)
|
|
113
105
|
);
|
|
114
106
|
|
|
115
107
|
$onemrva-typography: map.merge(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
108
|
+
$onemrva-typography,
|
|
109
|
+
(
|
|
110
|
+
label-button:
|
|
119
111
|
mat.define-typography-level(14px, 21px, 500, $font-family: Poppins),
|
|
120
|
-
|
|
112
|
+
label-smallbutton:
|
|
121
113
|
mat.define-typography-level(14px, 21px, 400, $font-family: Poppins),
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
mat-h4: mat.define-typography-level(20px, 35px, 700, $font-family: Poppins),
|
|
115
|
+
)
|
|
124
116
|
);
|
|
125
117
|
|
|
126
118
|
$onemrva-primary: mat.define-palette(palettes.$primary-palette);
|
|
@@ -144,12 +136,12 @@ $onemrva-theme-options: (
|
|
|
144
136
|
$onemrva-theme: mat.define-light-theme($onemrva-theme-options);
|
|
145
137
|
|
|
146
138
|
$onemrva-theme: map-merge(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
139
|
+
$onemrva-theme,
|
|
140
|
+
(
|
|
141
|
+
success: $onemrva-success,
|
|
142
|
+
error: $onemrva-error,
|
|
143
|
+
info: $onemrva-info,
|
|
144
|
+
grayscale: $onemrva-grayscale,
|
|
145
|
+
spacer: $spacer,
|
|
146
|
+
)
|
|
155
147
|
);
|