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
This commit is contained in:
Max Peintner
2021-07-28 14:59:52 +02:00
committed by GitHub
parent fb06aed238
commit 7d3c768d8b
47 changed files with 963 additions and 588 deletions
+14 -16
View File
@@ -3,9 +3,6 @@
@mixin input-theme($theme) {
/* stylelint-disable */
$primary: map-get($theme, primary);
$primary-dark: mat.get-color-from-palette($primary, A900);
$secondary-dark: mat.get-color-from-palette($primary, A800);
$inv-color: mat.get-color-from-palette($primary, A600);
$primary-color: mat.get-color-from-palette($primary, 500);
$primary-light-color: mat.get-color-from-palette($primary, 200);
$warn: map-get($theme, warn);
@@ -28,37 +25,38 @@
font-size: 1rem;
border: none;
border: 1px solid if($is-dark-theme, #403e3e, #00000040);
background-color:if($is-dark-theme, #00000020, #fafafa50);
background-color: if($is-dark-theme, #00000020, #fafafa50);
border-radius: 4px;
height: 40px;
padding: 10px;
transition: border-color .2s ease-in-out;
transition: border-color .2s ease-in-out, background-color .3s cubic-bezier(.645, .045, .355, 1),
color .3s cubic-bezier(.645, .045, .355, 1);
width: 100%;
color: mat.get-color-from-palette($foreground, text);
margin-bottom: 2px;
&:hover {
border-color: if($is-dark-theme,#aeafb1, #1a1b1b);
border-color: if($is-dark-theme, #aeafb1, #1a1b1b);
}
&:active,
&:focus {
border-color: $primary-color;
border-color: $primary-color;
}
&.ng-touched {
&.ng-invalid {
border-color: $warn-color;
}
&.ng-invalid {
border-color: $warn-color;
}
}
&[disabled] {
border-color: if($is-dark-theme,#36373850,#cccdce50);
color: if($is-dark-theme, #ffffff80 ,#00000061);
border-color: if($is-dark-theme, #36373850, #cccdce50);
color: if($is-dark-theme, #ffffff80, #00000061);
&::placeholder {
color: if($is-dark-theme, #ffffff80 ,#00000061);
}
&::placeholder {
color: if($is-dark-theme, #ffffff80, #00000061);
}
}
}
@@ -70,7 +68,7 @@
.mat-paginator {
.mat-select {
background-color: inherit;
background-color: inherit;
}
}
}