@igo2/sdg-core 1.0.0-next.79 → 1.0.0-next.81
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/package.json +2 -2
- package/src/_index.scss +2 -1
- package/src/layout/_breakpoints.scss +36 -42
- package/src/style/_elevation.scss +54 -0
- package/src/style/_index.scss +3 -0
- package/src/style/_sass-utils.scss +24 -0
- package/src/style/_typography-utils.scss +23 -0
- package/src/style/_typography.scss +139 -0
- package/src/style/overrides/_index.scss +2 -2
- package/src/style/overrides/igo2-lib/_index.scss +5 -2
- package/src/style/overrides/igo2-lib/_list.scss +22 -0
- package/src/style/overrides/igo2-lib/_panel.scss +7 -0
- package/src/style/overrides/igo2-lib/_search-bar.scss +70 -0
- package/src/style/overrides/material/_button.scss +118 -0
- package/src/style/overrides/material/_dialog.scss +37 -0
- package/src/style/overrides/material/_divider.scss +11 -0
- package/src/style/overrides/material/_form-field.scss +20 -0
- package/src/style/overrides/material/_icon.scss +34 -0
- package/src/style/overrides/material/_index.scss +12 -1
- package/src/style/overrides/material/_input.scss +5 -0
- package/src/style/overrides/material/_sidenav.scss +9 -0
- package/src/theme/_index.scss +1 -3
- package/src/theme/material/_index.scss +1 -0
- package/src/theme/material/_theme.scss +241 -0
- package/src/tokens/_index.scss +7 -0
- package/src/tokens/_sys-colors.scss +99 -0
- package/src/tokens/_sys-elevation.scss +17 -0
- package/src/tokens/_sys-layout.scss +28 -0
- package/src/tokens/_sys-palettes.scss +72 -0
- package/src/tokens/_sys-typography.scss +109 -0
- package/src/tokens/_system.scss +56 -0
- package/src/tokens/_token-utils.scss +79 -0
- package/src/style/overrides/igo2-lib/_index-theme.scss +0 -13
- package/src/style/overrides/igo2-lib/_search-bar-theme.scss +0 -33
- package/src/style/overrides/igo2-lib/list.scss +0 -24
- package/src/style/overrides/igo2-lib/panel.scss +0 -8
- package/src/style/overrides/igo2-lib/scrollbar.scss +0 -15
- package/src/style/overrides/igo2-lib/search-bar.scss +0 -43
- package/src/style/overrides/material/_button-theme.scss +0 -81
- package/src/style/overrides/material/_index-theme.scss +0 -13
- package/src/style/overrides/material/button.scss +0 -5
- package/src/style/overrides/material/dialog.scss +0 -36
- package/src/style/overrides/material/form-field.scss +0 -5
- package/src/style/overrides/material/input.scss +0 -5
- package/src/theme/_colors.scss +0 -128
- package/src/theme/_palettes.scss +0 -112
- package/src/theme/_theme.scss +0 -46
- package/src/typography/_index.scss +0 -2
- package/src/typography/typography.scss +0 -173
- package/src/typography/typography.utils.scss +0 -18
- /package/src/layout/{layout.scss → bootstrap-layout.scss} +0 -0
package/src/theme/_theme.scss
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@use '../style/overrides';
|
|
3
|
-
@use './palettes';
|
|
4
|
-
@use '../typography';
|
|
5
|
-
|
|
6
|
-
// https://design.quebec.ca/a-propos-systeme-design
|
|
7
|
-
$theme: mat.m2-define-light-theme(
|
|
8
|
-
(
|
|
9
|
-
color: (
|
|
10
|
-
primary: mat.m2-define-palette(palettes.$primary-palette, 600, 400, 700),
|
|
11
|
-
accent: mat.m2-define-palette(palettes.$accent-palette, 500),
|
|
12
|
-
warn: mat.m2-define-palette(palettes.$warn-palette, 500),
|
|
13
|
-
success: mat.m2-define-palette(palettes.$primary-palette, 900)
|
|
14
|
-
),
|
|
15
|
-
typography: typography.$typography,
|
|
16
|
-
density: 0
|
|
17
|
-
)
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
// Define an alternate dark theme.
|
|
21
|
-
$dark-theme: mat.m2-define-dark-theme(
|
|
22
|
-
(
|
|
23
|
-
color: (
|
|
24
|
-
primary: mat.m2-define-palette(palettes.$primary-palette, 300, 100, 800),
|
|
25
|
-
accent: mat.m2-define-palette(palettes.$accent-palette, 400, 100, 800),
|
|
26
|
-
warn: mat.m2-define-palette(palettes.$warn-palette, 400, 200, 800)
|
|
27
|
-
),
|
|
28
|
-
typography: typography.$typography,
|
|
29
|
-
density: 0
|
|
30
|
-
)
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
@mixin themes($theme) {
|
|
34
|
-
@include overrides.override-igo2-lib-themes($theme);
|
|
35
|
-
@include overrides.override-material-themes($theme);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@mixin colors($theme) {
|
|
39
|
-
@include overrides.override-igo2-lib-colors($theme);
|
|
40
|
-
@include overrides.override-material-colors($theme);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@mixin densities($theme) {
|
|
44
|
-
@include overrides.override-igo2-lib-densities($theme);
|
|
45
|
-
@include overrides.override-material-densities($theme);
|
|
46
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@use '../theme/colors';
|
|
3
|
-
@use '../theme/palettes';
|
|
4
|
-
@use '../layout/breakpoints';
|
|
5
|
-
@use './typography.utils' as typo-utils;
|
|
6
|
-
|
|
7
|
-
// https://design.quebec.ca/bases/polices-caracteres
|
|
8
|
-
// https://design.quebec.ca/bases/niveaux-titres
|
|
9
|
-
// https://material.angular.io/guide/typography
|
|
10
|
-
$font-family-text: 'Open Sans', sans-serif;
|
|
11
|
-
$font-family-title: 'Roboto', sans-serif;
|
|
12
|
-
|
|
13
|
-
$typography: mat.m2-define-typography-config(
|
|
14
|
-
$font-family: $font-family-text,
|
|
15
|
-
$headline-1: mat.m2-define-typography-level(110px, 110px, 500),
|
|
16
|
-
$headline-2: mat.m2-define-typography-level(54px, 54px, 500),
|
|
17
|
-
$headline-3: mat.m2-define-typography-level(43px, 46px, 500),
|
|
18
|
-
$headline-4: mat.m2-define-typography-level(32px, 38px, 500),
|
|
19
|
-
// h1
|
|
20
|
-
$headline-5: mat.m2-define-typography-level(48px, 56px, bold),
|
|
21
|
-
// h2
|
|
22
|
-
$headline-6: mat.m2-define-typography-level(36px, 40px, bold),
|
|
23
|
-
// h3
|
|
24
|
-
$subtitle-1: mat.m2-define-typography-level(28px, 32px, bold),
|
|
25
|
-
// h4
|
|
26
|
-
$subtitle-2: mat.m2-define-typography-level(21px, 24px, bold),
|
|
27
|
-
$body-1: mat.m2-define-typography-level(16px, 24px, 400),
|
|
28
|
-
$body-2: mat.m2-define-typography-level(12px, 18px, 400),
|
|
29
|
-
$caption: mat.m2-define-typography-level(12px, 18px, 400),
|
|
30
|
-
$button: mat.m2-define-typography-level(13px, 13px, 500)
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
$typography-mobile: mat.m2-define-typography-config(
|
|
34
|
-
// h1
|
|
35
|
-
$headline-5: mat.m2-define-typography-level(36px, 40px, bold),
|
|
36
|
-
// h2
|
|
37
|
-
$headline-6: mat.m2-define-typography-level(28px, 32px, bold),
|
|
38
|
-
// h3
|
|
39
|
-
$subtitle-1: mat.m2-define-typography-level(25px, 32px, bold)
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
$font-color: colors.$blue-dark;
|
|
43
|
-
|
|
44
|
-
@mixin typo-set-base-styles {
|
|
45
|
-
body {
|
|
46
|
-
color: $font-color;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
a {
|
|
50
|
-
word-break: break-word;
|
|
51
|
-
overflow-wrap: break-word;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
color: colors.$blue-piv;
|
|
54
|
-
text-decoration: underline;
|
|
55
|
-
background-color: transparent;
|
|
56
|
-
width: fit-content;
|
|
57
|
-
max-inline-size: breakpoints.$max-content-width;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
a:hover {
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
button {
|
|
65
|
-
font-family: $font-family-text;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
p,
|
|
69
|
-
ul,
|
|
70
|
-
ol,
|
|
71
|
-
u,
|
|
72
|
-
.text {
|
|
73
|
-
color: $font-color;
|
|
74
|
-
font-size: 16px;
|
|
75
|
-
line-height: 24px;
|
|
76
|
-
max-inline-size: breakpoints.$max-content-width;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
ul,
|
|
80
|
-
ol {
|
|
81
|
-
margin-top: 0;
|
|
82
|
-
margin-bottom: 24px;
|
|
83
|
-
padding-left: 16px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
p {
|
|
87
|
-
margin-bottom: 24px !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
li {
|
|
91
|
-
margin-top: 16px;
|
|
92
|
-
margin-bottom: 16px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
strong {
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
h1,
|
|
100
|
-
h2,
|
|
101
|
-
h3,
|
|
102
|
-
h4,
|
|
103
|
-
h5,
|
|
104
|
-
h6,
|
|
105
|
-
.h1,
|
|
106
|
-
.h2,
|
|
107
|
-
.h3,
|
|
108
|
-
.h4,
|
|
109
|
-
.h5,
|
|
110
|
-
.h6 {
|
|
111
|
-
font-family: $font-family-title !important;
|
|
112
|
-
color: $font-color;
|
|
113
|
-
max-inline-size: breakpoints.$max-content-width;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
h1 {
|
|
117
|
-
margin-top: 72px !important;
|
|
118
|
-
margin-bottom: 32px !important;
|
|
119
|
-
|
|
120
|
-
@include typo-utils.title-border;
|
|
121
|
-
|
|
122
|
-
@include breakpoints.media(mobile) {
|
|
123
|
-
margin-top: 48px !important;
|
|
124
|
-
margin-bottom: 16px !important;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
h2 {
|
|
129
|
-
margin-top: 48px !important;
|
|
130
|
-
margin-bottom: 16px !important;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
h3 {
|
|
134
|
-
margin-top: 24px !important;
|
|
135
|
-
margin-bottom: 16px !important;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// WORKAROUND, mat-typography area of intersection h4 is using mat-body-1
|
|
139
|
-
// https://github.com/angular/components/issues/26351
|
|
140
|
-
h4 {
|
|
141
|
-
@include typo-utils.title-level-4;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
h4 {
|
|
145
|
-
margin-top: 24px !important;
|
|
146
|
-
margin-bottom: 8px !important;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
h5 {
|
|
150
|
-
font-size: 19px !important;
|
|
151
|
-
line-height: 24px !important;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
h6 {
|
|
155
|
-
font-size: 16px !important;
|
|
156
|
-
line-height: 20px !important;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
h5,
|
|
160
|
-
h6 {
|
|
161
|
-
font-weight: bold !important;
|
|
162
|
-
margin-top: 16px !important;
|
|
163
|
-
margin-bottom: 0px !important;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.accroche {
|
|
167
|
-
font-size: 18px;
|
|
168
|
-
line-height: 28px;
|
|
169
|
-
font-weight: 600;
|
|
170
|
-
max-width: breakpoints.$max-content-width;
|
|
171
|
-
padding-bottom: 24px;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@use '../theme/colors';
|
|
2
|
-
|
|
3
|
-
@mixin title-border {
|
|
4
|
-
&:after {
|
|
5
|
-
content: '';
|
|
6
|
-
display: block;
|
|
7
|
-
margin: 0;
|
|
8
|
-
width: 48px;
|
|
9
|
-
padding-top: 4px;
|
|
10
|
-
border-bottom: 4px solid colors.$pink;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin title-level-4 {
|
|
15
|
-
font-size: 21px !important;
|
|
16
|
-
line-height: 24px !important;
|
|
17
|
-
font-weight: bold !important;
|
|
18
|
-
}
|
|
File without changes
|