@agorapulse/ui-theme 16.0.0-rc.3 → 16.0.0-rc.4
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/{agorapulse-ui-theme-16.0.0-rc.3.tgz → agorapulse-ui-theme-16.0.0-rc.4.tgz} +0 -0
- package/assets/style/_mat-typography.scss +0 -16
- package/assets/style/components-custom-style/_mat-button-toggle-group.scss +3 -3
- package/assets/style/components-custom-style/_mat-menu.scss +12 -7
- package/assets/style/theme.scss +32 -6
- package/package.json +1 -1
|
Binary file
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@import 'variables';
|
|
3
3
|
|
|
4
|
-
/*
|
|
5
|
-
* TYPOGRAPHY
|
|
6
|
-
* See https://material.angular.io/guide/typography
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// Override typography for all Angular Material, including mat-base-typography and all components.
|
|
10
|
-
$custom-typography: mat.define-typography-config(
|
|
11
|
-
$font-family: $font-family,
|
|
12
|
-
$headline-1: mat.define-typography-level($font-size-h1, $font-line-height-h1, $font-weight-semibold),
|
|
13
|
-
$headline-2: mat.define-typography-level($font-size-h2, $font-line-height-h2, $font-weight-semibold),
|
|
14
|
-
$body-1: mat.define-typography-level($font-size, $font-line-height, $font-weight),
|
|
15
|
-
$body-2: mat.define-typography-level($font-size, $font-line-height, $font-weight),
|
|
16
|
-
$caption: mat.define-typography-level($font-size-s, $font-line-height-s, $font-weight)
|
|
17
|
-
);
|
|
18
|
-
@include mat.all-component-typographies($custom-typography);
|
|
19
|
-
|
|
20
4
|
// Override base header tags (so that we don't have to add Material classes, e.g: class="mat-h1")
|
|
21
5
|
h1,
|
|
22
6
|
h2,
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
|
|
14
14
|
&.mat-button-toggle-checked {
|
|
15
15
|
color: map_get($colors-electric-blue, 100);
|
|
16
|
-
border: 1px solid map_get($colors-electric-blue, 100);
|
|
16
|
+
border: 1px solid map_get($colors-electric-blue, 100) !important;
|
|
17
17
|
background: white;
|
|
18
18
|
z-index: 1;
|
|
19
19
|
|
|
20
20
|
&:hover {
|
|
21
|
-
border: 1px solid map_get($colors-electric-blue, 100);
|
|
21
|
+
border: 1px solid map_get($colors-electric-blue, 100) !important;
|
|
22
22
|
color: map_get($colors-electric-blue, 100);
|
|
23
23
|
background: white;
|
|
24
24
|
z-index: 1;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
&:hover {
|
|
30
30
|
background: white;
|
|
31
31
|
box-sizing: border-box;
|
|
32
|
-
border: 1px solid map_get($colors-electric-blue, 100);
|
|
32
|
+
border: 1px solid map_get($colors-electric-blue, 100) !important;
|
|
33
33
|
color: map_get($colors-grey, 100);
|
|
34
34
|
height: 100%;
|
|
35
35
|
z-index: 1;
|
|
@@ -170,14 +170,19 @@
|
|
|
170
170
|
.mat-mdc-menu-panel.button-dropdown {
|
|
171
171
|
margin-bottom: $padding-sm;
|
|
172
172
|
.mat-mdc-menu-item {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
173
|
+
.mat-mdc-menu-item-text {
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-direction: column;
|
|
176
|
+
font-weight: $font-weight-bold;
|
|
177
|
+
width: 100%;
|
|
178
|
+
|
|
179
|
+
.caption {
|
|
180
|
+
font-weight: normal;
|
|
181
|
+
color: map_get($colors-grey, 60);
|
|
182
|
+
margin-top: 0px;
|
|
183
|
+
}
|
|
180
184
|
}
|
|
185
|
+
|
|
181
186
|
&:hover {
|
|
182
187
|
.caption {
|
|
183
188
|
color: map_get($colors-electric-blue, 85);
|
package/assets/style/theme.scss
CHANGED
|
@@ -13,14 +13,40 @@
|
|
|
13
13
|
@import 'colors';
|
|
14
14
|
@import 'variables';
|
|
15
15
|
|
|
16
|
+
/*
|
|
17
|
+
* TYPOGRAPHY
|
|
18
|
+
* See https://material.angular.io/guide/typography
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
// Override typography for all Angular Material, including mat-base-typography and all components.
|
|
22
|
+
$custom-typography: mat.define-typography-config(
|
|
23
|
+
$font-family: $font-family,
|
|
24
|
+
$headline-1: mat.define-typography-level($font-size-h1, $font-line-height-h1, $font-weight-semibold),
|
|
25
|
+
$headline-2: mat.define-typography-level($font-size-h2, $font-line-height-h2, $font-weight-semibold),
|
|
26
|
+
$body-1: mat.define-typography-level($font-size, $font-line-height, $font-weight),
|
|
27
|
+
$body-2: mat.define-typography-level($font-size, $font-line-height, $font-weight),
|
|
28
|
+
$caption: mat.define-typography-level($font-size-s, $font-line-height-s, $font-weight)
|
|
29
|
+
);
|
|
30
|
+
@include mat.all-component-typographies($custom-typography);
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// https://material.angular.io/guide/theming#defining-a-theme
|
|
34
|
+
$primary: mat.define-palette($colors-primary);
|
|
35
|
+
$accent: mat.define-palette($colors-accent);
|
|
36
|
+
$warn: mat.define-palette($colors-warn);
|
|
37
|
+
|
|
16
38
|
// Custom palettes
|
|
17
39
|
@include mat.all-component-themes(
|
|
18
|
-
mat.define-light-theme(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
)
|
|
40
|
+
mat.define-light-theme((
|
|
41
|
+
color: (
|
|
42
|
+
primary: $primary,
|
|
43
|
+
accent: $accent,
|
|
44
|
+
warn: $warn,
|
|
45
|
+
),
|
|
46
|
+
typography: $custom-typography,
|
|
47
|
+
density: 0,
|
|
48
|
+
),
|
|
49
|
+
));
|
|
24
50
|
|
|
25
51
|
/*
|
|
26
52
|
* TYPOGRAPHY
|