Files
zitadel/console/src/styles/sidenav-list.scss
T
Max PeintnerandGitHub 7d3c768d8b feat(console): apply private labeling settings (#2059)
* fetch org design an calc palette

* distinct theme deriv

* calculate self theme

* background palette, fix styles

* component fixes, warn color

* warn color

* stylelint config, set warn color

* lint

* fallback theme

* lint

* granted, owned proejct grid

* dynamic privacy policy, fix home layout, dismissables, info-section

* lint

* apply theme from settings

* enable cache

* fix: add primary tint
2021-07-28 14:59:52 +02:00

140 lines
2.8 KiB
SCSS

@use '~@angular/material' as mat;
@mixin sidenav-list-theme($theme) {
/* stylelint-disable */
$primary: map-get($theme, primary);
$background: map-get($theme, background);
$accent: map-get($theme, accent);
$primary-color: mat.get-color-from-palette($primary, 500);
$accent-color: mat.get-color-from-palette($accent, 500);
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);
$back: map-get($background, background);
/* stylelint-enable */
.meta {
box-shadow: inset 1px 0 map-get($foreground, divider);
}
.sidenav {
box-shadow: inset -1px 0 map-get($foreground, divider);
transition: all .3s cubic-bezier(.645, .045, .355, 1) !important;
}
.nav-item {
color: mat.get-color-from-palette($foreground, text) !important;
transition: all .2s ease;
i {
opacity: .6;
}
&:hover {
// font-weight: 600;
border-top-right-radius: 1.5rem;
border-bottom-right-radius: 1.5rem;
i {
opacity: 1;
}
}
&.active {
color: $primary-color !important;
// background-color: if($is-dark-theme, rgba($color: $primary-color, $alpha: .1), rgb(84 105 212 / 6%)) !important;
i {
opacity: 1;
}
}
.c_label {
.count {
padding: 3px 6px;
border-radius: 50vw;
}
}
}
.mat-menu-content,
.mat-menu-panel {
background-color: $back;
border-radius: .5rem;
@include mat.elevation(5);
.active {
color: $primary-color !important;
background-color: rgba($color: $primary-color, $alpha: .1) !important;
}
}
.root-header {
background-color: $back !important;
transition: all .3s cubic-bezier(.645, .045, .355, 1);
.slash {
color: if($is-dark-theme, #525454, #d1d5d9);
}
.org-button {
transition: all .3s cubic-bezier(.645, .045, .355, 1) !important;
}
}
.admin-line {
position: fixed;
display: flex;
align-items: center;
bottom: 0;
left: 0;
right: calc(100vw - 280px);
background-color: $primary-color;
color: white;
z-index: 1;
font-size: 13px;
padding: 3px 2rem;
transform: translateY(75%);
transition: all .2s;
border-top-right-radius: 5px;
border-top-left-radius: 5px;
span {
display: none;
}
button {
height: 1.2rem;
width: 1.2rem;
line-height: 1.2rem;
margin-right: 1rem;
* {
height: 1.2rem;
width: 1.2rem;
line-height: 1rem;
}
}
&.expanded,
&:hover {
transform: translateY(0%);
right: 0;
span {
display: inline-block;
}
}
}
.divider {
.span {
border-color: map-get($foreground, divider);
}
.line {
background-color: map-get($foreground, divider);
}
}
}