File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
src/app/features/home/components/home-animation Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change
1
+ @use ' @angular/material' as mat ;
2
+
1
3
// Colors
2
4
// Using OKLCH color space for better color reproduction on P3 displays,
3
5
// as well as better human-readability
186
188
// for the "unfilled" portion of the word that hasn't
187
189
// been highlighted by the gradient
188
190
--gray-unfilled : var (--gray-400 );
189
- // TODO: convert oklch to hex at build time
190
- --webgl-page-background : #ffffff ;
191
- --webgl-gray-unfilled : #a39fa9 ;
192
191
}
193
192
194
193
@mixin dark-mode-definitions () {
254
253
255
254
// Home page - dark mode
256
255
--gray-unfilled : var (--gray-700 );
257
- // TODO: convert oklch to hex at build time
258
- --webgl-page-background : #0f0f11 ;
259
- --webgl-gray-unfilled : #413e46 ;
260
256
261
257
.docs-toggle {
262
258
input {
268
264
}
269
265
270
266
@mixin mdc-definitions () {
271
- --mdc-snackbar-container-shape : 0.25rem ;
272
- --mdc-snackbar-container-color : var (--page-background );
273
- --mdc-snackbar-supporting-text-color : var (--primary-contrast );
267
+ @include mat .snack-bar-overrides (
268
+ (
269
+ container- shape: 0.25rem ,
270
+ container- color: var (--page-background ),
271
+ supporting- text- color: var (--primary-contrast ),
272
+ )
273
+ );
274
274
}
275
275
276
276
// LIGHT MODE (Explicit)
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ $transition: 200ms linear;
49
49
color : var (--quaternary-contrast );
50
50
font-size : clamp (1rem , 1vw , 2rem );
51
51
line-height : 1.5 ;
52
- width : clamp (375 px , 50% , 600px );
52
+ width : clamp (345 px , 50% , 600px );
53
53
margin : 0 auto ;
54
54
}
55
55
@@ -91,6 +91,8 @@ $transition: 200ms linear;
91
91
& {
92
92
top : 6rem ;
93
93
left : var (--layout-padding );
94
+ /* Assuming the container width is identical to the viewport width (mobile device). */
95
+ max-width : calc (100% - var (--layout-padding ) * 2 );
94
96
}
95
97
}
96
98
You can’t perform that action at this time.
0 commit comments