Files
zitadel/console/src/app/modules/theme-setting/theme-setting.component.scss
T
b099a26a16 feat(console): MDC components (#6482)
mdc components

---------

Co-authored-by: Elio Bischof <[email protected]>
2023-10-26 08:29:06 +00:00

58 lines
1.2 KiB
SCSS

@mixin theme-setting($theme) {
$primary: map-get($theme, primary);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);
$back: map-get($background, background);
.theme-flex {
display: flex;
align-items: center;
border: 1px solid if($is-dark-theme, #ffffff20, #00000020);
border-radius: 50vw;
padding: 0.25rem;
.theme-setting-button {
background-color: transparent;
border-radius: 50vw;
display: flex;
align-items: center;
justify-content: center;
height: 2rem;
width: 2rem;
border: none;
cursor: pointer;
padding: 0;
.moon,
.sun {
color: map-get($foreground, text);
fill: transparent;
height: 1rem;
width: 1rem;
opacity: 0.7;
}
.sun {
height: 1.5rem;
width: 1.5rem;
}
&:hover {
.moon,
.sun {
opacity: 1;
}
}
&.active {
background-color: if($is-dark-theme, #ffffff10, #00000010) !important;
.moon,
.sun {
opacity: 1;
}
}
}
}
}