feat(console): MDC components (#6482)

mdc components

---------

Co-authored-by: Elio Bischof <[email protected]>
This commit is contained in:
Max Peintner
2023-10-26 08:29:06 +00:00
committed by GitHub
co-authored by Elio Bischof
parent cb7b50b513
commit b099a26a16
412 changed files with 2711 additions and 2698 deletions
+14 -20
View File
@@ -1,14 +1,12 @@
@use '@angular/material' as mat;
@mixin nav-theme($theme) {
$primary: map-get($theme, primary);
$warn: map-get($theme, warn);
$background: map-get($theme, background);
$accent: map-get($theme, accent);
$primary-color: mat.get-color-from-palette($primary, 500);
$primary-color: map-get($primary, 500);
$warn-color: mat.get-color-from-palette($warn, 500);
$accent-color: mat.get-color-from-palette($accent, 500);
$warn-color: map-get($warn, 500);
$accent-color: map-get($accent, 500);
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);
$back: map-get($background, background);
@@ -56,7 +54,7 @@
font-size: 14px;
line-height: 14px;
padding: 0.4rem 12px;
color: mat.get-color-from-palette($foreground, text) !important;
color: map-get($foreground, text);
transition: all 0.2s ease;
text-decoration: none;
border-radius: 50vw;
@@ -105,7 +103,7 @@
&.active {
background-color: $primary-color;
color: mat.get-color-from-palette($foreground, toolbar-items) !important;
color: map-get($primary, default-contrast);
.c_label {
.count {
@@ -118,8 +116,8 @@
}
}
.mat-menu-content,
.mat-menu-panel {
.mat-mdc-menu-content,
.mat-mdc-menu-panel {
background-color: $back;
border-radius: 0.5rem;
@@ -190,24 +188,20 @@
padding: 2px;
border-radius: 50vw;
cursor: pointer;
display: flex;
&:hover {
background: if($is-dark-theme, #ffffff, $primary-color);
transition: background ease 0.15s;
}
.progress {
border-radius: 50vw;
height: 8px;
.progress-div {
display: block;
height: 100%;
width: 100%;
.mat-progress-bar-buffer {
background-color: if($is-dark-theme, rgb(69, 91, 84), #cccccc) !important;
}
.mat-progress-bar-background {
fill: if($is-dark-theme, rgb(69, 91, 84), #cccccc) !important;
}
.mat-progress-bar-fill:after {
background-color: var(--success);
.progress {
border-radius: 50vw;
}
}
}