Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit e4a78ed

Browse files
andrewseguinAndrew Seguin
andauthored
use mat.theme (#1279)
* use mat.theme * update deps * update deps --------- Co-authored-by: Andrew Seguin <[email protected]>
1 parent 4a8790a commit e4a78ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2422
-2019
lines changed

pnpm-lock.yaml

Lines changed: 2192 additions & 1538 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scenes/src/styles.scss

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
@use 'sass:map';
22
@use '@angular/material' as mat;
33

4-
@include mat.core();
5-
6-
$theme: mat.define-theme((
7-
color: (
8-
theme-type: light,
9-
primary: mat.$red-palette,
10-
),
11-
typography: (
12-
brand-family: 'Roboto',
13-
),
14-
));
15-
164
html {
175
font-family: 'Roboto';
18-
@include mat.all-component-themes($theme);
19-
@include mat.icon-color($theme, $color-variant: primary);
6+
@include mat.theme((
7+
color: (
8+
theme-type: light,
9+
primary: mat.$red-palette,
10+
),
11+
typography: Roboto,
12+
density: 0,
13+
));
2014
}

src/_app-theme.scss

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/app/pages/component-category-list/_component-category-list-theme.scss

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/app/pages/component-category-list/component-category-list.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
}
2525
}
2626

27+
.docs-component-category-list-summary a {
28+
color: var(--mat-sys-primary);
29+
}
30+
31+
.docs-component-category-list-card-title,
32+
.docs-component-category-list-card-summary {
33+
color: var(--mat-sys-on-surface-variant);
34+
}
35+
2736
.docs-component-category-list {
2837
display: flex;
2938
flex-wrap: wrap;
@@ -53,10 +62,17 @@
5362
.docs-component-category-list-card {
5463
overflow: hidden;
5564
transition: background 0.3s ease;
65+
border: 1px solid var(--mat-sys-outline-variant);
66+
border-radius: 12px;
67+
68+
&:hover {
69+
background: var(--mat-sys-surface-dim);
70+
}
5671
}
5772

5873
.docs-component-category-list-card-image-wrapper {
5974
height: 156px;
75+
border-bottom: 1px solid var(--mat-sys-outline-variant);
6076
}
6177

6278
.docs-component-category-list-card-summary {

src/app/pages/component-page-header/_component-page-header-theme.scss

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/app/pages/component-page-header/component-page-header.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
justify-content: center;
66
align-items: center;
77
min-height: 60px;
8+
background: var(--mat-sys-primary-container);
89

910
@media (max-width: constants.$small-breakpoint-width) {
1011
display: flex;

src/app/pages/component-sidenav/_component-sidenav-theme.scss

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/app/pages/component-sidenav/component-nav.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<div class="docs-component-viewer-nav-content">
44
<mat-nav-list>
55
@for (component of docItems.getItems(section); track component) {
6-
<a mat-list-item
6+
<a mat-list-item #link="routerLinkActive"
77
[routerLink]="'/' + section+ '/' + component.id"
8+
[activated]="link.isActive"
89
routerLinkActive="docs-component-viewer-sidenav-item-selected"
910
[attr.aria-current]="currentItemId === component.id ? 'page': 'false'">
1011
{{component.name}}

src/app/pages/component-sidenav/component-sidenav.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ app-component-sidenav {
3636
top: 0;
3737

3838
.docs-component-viewer-nav-content {
39+
border-right: 1px solid var(--mat-sys-outline-variant);
3940
width: constants.$sidenav-width;
4041
padding: 16px 8px;
4142
height: calc(100vh - 75px);
@@ -47,6 +48,10 @@ app-component-sidenav {
4748
width: 4px;
4849
}
4950

51+
&::-webkit-scrollbar-thumb {
52+
background: rgba(0, 0, 0, .26);
53+
}
54+
5055
ul {
5156
list-style-type: none;
5257
margin: 0 0 5px 0;

0 commit comments

Comments
 (0)