mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-11 01:18:32 +00:00

* 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
103 lines
2.1 KiB
SCSS
103 lines
2.1 KiB
SCSS
@use '~@angular/material' as mat;
|
|
|
|
@mixin table-theme($theme) {
|
|
/* stylelint-disable */
|
|
$primary: map-get($theme, primary);
|
|
$primary-color: mat.get-color-from-palette($primary, 500);
|
|
$is-dark-theme: map-get($theme, is-dark);
|
|
$foreground: map-get($theme, foreground);
|
|
$background: map-get($theme, background);
|
|
|
|
.mat-table,
|
|
.mat-paginator {
|
|
background-color: inherit !important;
|
|
transition: background-color .3s cubic-bezier(.645, .045, .355, 1);
|
|
}
|
|
/* stylelint-enable */
|
|
|
|
.app-label {
|
|
font-size: 12px;
|
|
border-radius: 1rem;
|
|
color: mat.get-color-from-palette($foreground, text);
|
|
white-space: nowrap;
|
|
background-color: var(--grey);
|
|
padding: 3px 1rem;
|
|
}
|
|
|
|
th {
|
|
text-transform: uppercase;
|
|
letter-spacing: .05em;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
|
|
&.mat-header-cell {
|
|
color: var(--grey);
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
|
|
td {
|
|
.cnsl-form-field-wrapper {
|
|
padding-bottom: 0;
|
|
}
|
|
}
|
|
|
|
tr {
|
|
&.mat-header-row {
|
|
height: 40px;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
&.highlight {
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
td {
|
|
background: map-get($background, hover);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
td .mat-checkbox,
|
|
th .mat-checkbox {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
.no-content-row {
|
|
background-color: if($is-dark-theme, #00000030, #f4f4f470);
|
|
// color: $primary-color;
|
|
border-bottom-left-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: .5rem;
|
|
font-size: 14px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.selection {
|
|
width: 65px;
|
|
max-width: 65px;
|
|
}
|
|
|
|
.state {
|
|
border-radius: 50vw;
|
|
padding: 2px .5rem;
|
|
letter-spacing: .05em;
|
|
font-size: 12px;
|
|
background-color: if($is-dark-theme, #4f566b, #e4e7e4);
|
|
|
|
&.active {
|
|
background-color: if($is-dark-theme, #4f566b, #cbf4c9);
|
|
color: if($is-dark-theme, #cbf4c9, #0e6245);
|
|
}
|
|
|
|
&.inactive {
|
|
color: if($is-dark-theme, #ffc1c1, #620e0e);
|
|
background-color: if($is-dark-theme, #4f566b, #ffc1c1);
|
|
}
|
|
}
|
|
}
|