zitadel/console/src/styles/input.scss
Max Peintner 74ff154b19
feat(console): angular 12, migrate grpc lib, ui element fixes (#1740)
* fix: is default

* fix: feature tile in org, iam, neutral color for info boxes

* lint

* consolidation, ui elements

* feat(console): angular 12, migrate deprecated grpc to @grpc/grpc-js (#1741)

* update cli core

* update material

* mig

* migrate grpc to grpc-js

* audit

* lint

* node lts version, ng12 deprecation

* rem comment

* disable inlinestyles

* fix iam feature link, binding
2021-06-01 07:02:49 +02:00

77 lines
1.9 KiB
SCSS

@use '~@angular/material' as mat;
@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);
$warn-color: mat.get-color-from-palette($warn, 500);
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);
[cnslInput],
.mat-select {
display: block;
box-sizing: border-box;
padding-inline-start: 10px;
outline: none;
display: inline-block;
text-align: start;
background-color: inherit;
cursor: text;
border-radius: 8px;
transform: all .2 linear;
font-size: 1rem;
border: none;
border: 1px solid if($is-dark-theme, #403e3e, #00000040);
background-color:if($is-dark-theme, #00000020, #fafafa50);
border-radius: 4px;
height: 40px;
padding: 10px;
transition: border-color .2s ease-in-out;
width: 100%;
color: mat.get-color-from-palette($foreground, text);
margin-bottom: 2px;
&:hover {
border-color: if($is-dark-theme,#aeafb1, #1a1b1b);
}
&:active,
&:focus {
border-color: $primary-color;
}
&.ng-touched {
&.ng-invalid {
border-color: $warn-color;
}
}
&[disabled] {
border-color: if($is-dark-theme,#36373850,#cccdce50);
color: if($is-dark-theme, #ffffff80 ,#00000061);
&::placeholder {
color: if($is-dark-theme, #ffffff80 ,#00000061);
}
}
}
[cnslInput]::placeholder {
font-size: 14px;
color: var(--grey);
font-style: italic;
}
.mat-paginator {
.mat-select {
background-color: inherit;
}
}
}