forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs-infra): create module theme files (angular#41129)
creates theming files for the module styles in aio; done as part of the effor to make aio themeable PR Close angular#41129
- Loading branch information
1 parent
ab7e8dc
commit 8d9d1c2
Showing
65 changed files
with
1,659 additions
and
629 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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,51 @@ | ||
@use 'alert/alert-theme' as *; | ||
@use 'api-list/api-list-theme' as *; | ||
@use 'api-pages/api-pages-theme' as *; | ||
@use 'api-symbols/api-symbols-theme' as *; | ||
@use 'buttons/buttons-theme' as *; | ||
@use 'callout/callout-theme' as *; | ||
@use 'card/card-theme' as *; | ||
@use 'code/code-theme' as *; | ||
@use 'contributor/contributor-theme' as *; | ||
@use 'details/details-theme' as *; | ||
@use 'errors/errors-theme' as *; | ||
@use 'filetree/filetree-theme' as *; | ||
@use 'guides/guides-theme' as *; | ||
@use 'heading-anchors/heading-anchors-theme' as *; | ||
@use 'hr/hr-theme' as *; | ||
@use 'images/images-theme' as *; | ||
@use 'label/label-theme' as *; | ||
@use 'notification/notification-theme' as *; | ||
@use 'presskit/presskit-theme' as *; | ||
@use 'resources/resources-theme' as *; | ||
@use 'search-results/search-results-theme' as *; | ||
@use 'select-menu/select-menu-theme' as *; | ||
@use 'table/table-theme' as *; | ||
@use 'toc/toc-theme' as *; | ||
|
||
@mixin module-themes($theme) { | ||
@include alert-theme($theme); | ||
@include api-list-theme($theme); | ||
@include api-symbols-theme($theme); | ||
@include buttons-theme($theme); | ||
@include callout-theme($theme); | ||
@include card-theme($theme); | ||
@include code-theme($theme); | ||
@include contributor-theme($theme); | ||
@include deploy-theme($theme); | ||
@include details-theme($theme); | ||
@include errors-theme($theme); | ||
@include filetree-theme($theme); | ||
@include guides-theme($theme); | ||
@include heading-anchors-theme($theme); | ||
@include hr-theme($theme); | ||
@include images-theme($theme); | ||
@include label-theme($theme); | ||
@include notification-theme($theme); | ||
@include presskit-theme($theme); | ||
@include resources-theme($theme); | ||
@include search-results-theme($theme); | ||
@include select-menu-theme($theme); | ||
@include table-theme($theme); | ||
@include toc-theme($theme); | ||
} |
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,67 @@ | ||
@use '../../constants' as *; | ||
@use '~@angular/material/theming' as *; | ||
|
||
@mixin alert-theme($theme) { | ||
$primary: map-get($theme, primary); | ||
$background: map-get($theme, background); | ||
$foreground: map-get($theme, foreground); | ||
$is-dark-theme: map-get($theme, is-dark); | ||
|
||
.alert { | ||
color: if($is-dark-theme, $offwhite, $darkgray); | ||
|
||
&.is-critical { | ||
border-left: 8px solid $brightred; | ||
background-color: if($is-dark-theme, $deepgray, rgba($brightred, 0.05)); | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
color: $brightred; | ||
} | ||
} | ||
|
||
&.is-important { | ||
border-left: 8px solid $orange; | ||
background-color: if($is-dark-theme, $deepgray, rgba($orange, 0.05)); | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
color: $orange; | ||
} | ||
} | ||
|
||
&.is-helpful { | ||
border-left: 8px solid $blue; | ||
background-color: if($is-dark-theme, $deepgray, rgba($blue, 0.05)); | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
color: $blue; | ||
} | ||
} | ||
|
||
&.archive-warning { | ||
background-color: if($is-dark-theme, $deepgray, $darkred); | ||
|
||
* { | ||
color: $white; | ||
} | ||
|
||
a { | ||
color: $white; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.