-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: indicator market page dark theme
- Loading branch information
Showing
4 changed files
with
40 additions
and
9 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
43 changes: 37 additions & 6 deletions
43
apps/cloud/src/app/features/indicator/market/market.component.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,13 +1,44 @@ | ||
@use '@angular/material/core/tokens/token-utils'; | ||
@use '@angular/material/core/style/sass-utils'; | ||
|
||
// The prefix used to generate the fully qualified name for tokens in this file. | ||
$global-prefix: ngm; | ||
$prefix: (ngm, indicator-market); | ||
$prefix-color: (#{$prefix}, color); | ||
|
||
@function get-unthemable-tokens() { | ||
@return ( | ||
primary-container-rounded: var(--#{$global-prefix}-primary-container-rounded) | ||
); | ||
} | ||
|
||
@function get-color-tokens() { | ||
@return ( | ||
color-surface: var(--#{$global-prefix}-color-surface), | ||
); | ||
} | ||
|
||
@function get-token-slots() { | ||
@return sass-utils.deep-merge-all( | ||
get-unthemable-tokens(), | ||
get-color-tokens(), | ||
); | ||
} | ||
|
||
@include token-utils.use-tokens($prefix, get-token-slots()) { | ||
.mat-drawer-content { | ||
background-color: var(#{token-utils.get-token-variable(color-surface)}); | ||
border-top-left-radius: var(#{token-utils.get-token-variable(primary-container-rounded)}); | ||
border-top-right-radius: var(#{token-utils.get-token-variable(primary-container-rounded)}); | ||
@apply flex overflow-hidden; // for rounded corner overflow-visible; | ||
} | ||
} | ||
|
||
:host { | ||
flex: 1; | ||
max-width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.mat-drawer.mat-drawer-side { | ||
border-color: var(--mat-divider-color); | ||
@include token-utils.create-token-values($prefix, get-token-slots()); | ||
} | ||
.mat-drawer-content { | ||
@apply overflow-hidden; | ||
} |
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