This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworks the docs site to use the latest Material Design spec. Also switches to the new Angular logo and fixes some general UI inconsistencies.
- Loading branch information
Showing
87 changed files
with
547 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 8 additions & 21 deletions
29
src/app/pages/component-category-list/_component-category-list-theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,25 @@ | ||
@use 'sass:map'; | ||
@use '@angular/material' as mat; | ||
|
||
@mixin theme($theme) { | ||
$primary: map.get($theme, primary); | ||
$accent: map.get($theme, accent); | ||
$warn: map.get($theme, warn); | ||
$background: map.get($theme, background); | ||
$foreground: map.get($theme, foreground); | ||
$is-dark-theme: map.get($theme, is-dark); | ||
$nav-background-opacity: if($is-dark-theme, 0.2, 0.03); | ||
|
||
.docs-component-category-list-summary a { | ||
color: mat.get-color-from-palette($primary, if($is-dark-theme, 200, default)); | ||
color: mat.get-theme-color($theme, primary); | ||
} | ||
|
||
.docs-component-category-list-card-summary { | ||
color: mat.get-color-from-palette($foreground, secondary-text); | ||
.docs-component-category-list-card-title, | ||
.docs-component-category-list-card-summary { | ||
color: mat.get-theme-color($theme, on-surface-variant); | ||
} | ||
|
||
.docs-component-category-list-card { | ||
border: 1px solid mat.get-color-from-palette($foreground, divider); | ||
border-radius: 4px; | ||
background: mat.get-color-from-palette($background, card); | ||
border: 1px solid mat.get-theme-color($theme, outline-variant); | ||
border-radius: 12px; | ||
} | ||
|
||
.docs-component-category-list-card:hover { | ||
background: rgba(0, 0, 0, $nav-background-opacity); | ||
} | ||
|
||
.docs-component-category-list-card-title { | ||
color: mat.get-color-from-palette($foreground, text); | ||
background: mat.get-theme-color($theme, surface-dim); | ||
} | ||
|
||
.docs-component-category-list-card-image-wrapper { | ||
border-bottom: 1px solid mat.get-color-from-palette($foreground, divider); | ||
border-bottom: 1px solid mat.get-theme-color($theme, outline-variant); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/app/pages/component-page-header/_component-page-header-theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@use '@angular/material' as mat; | ||
|
||
@mixin theme($theme) { | ||
.docs-component-page-header { | ||
background: mat.get-theme-color($theme, primary-container); | ||
} | ||
} |
7 changes: 3 additions & 4 deletions
7
src/app/pages/component-page-header/component-page-header.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
<header class="docs-primary-header component-page-header"> | ||
<button mat-button class="sidenav-toggle" (click)="toggleSidenav.emit()"> | ||
<header class="docs-component-page-header"> | ||
<button mat-button (click)="toggleSidenav.emit()"> | ||
<mat-icon>menu</mat-icon> | ||
Menu | ||
</button> | ||
|
||
<h1>{{getTitle()}} </h1> | ||
</header> |
Oops, something went wrong.