mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-06 10:58:48 +00:00
feat: rehauled console (#3525)
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
00f7dbe875
commit
08ae39ae19
@@ -1,7 +1,7 @@
|
||||
<div class="card" [ngClass]="{'nomargin': nomargin, 'warn': warn}">
|
||||
<div class="card" [ngClass]="{'nomargin': nomargin, 'stretch': stretch, 'warn': warn}" [attr.data-e2e]="'app-card'">
|
||||
<div *ngIf="title || description" class="header" [ngClass]="{'bottom-margin': expanded}">
|
||||
<div *ngIf="title" class="row">
|
||||
<h2 class="title">{{title}}</h2>
|
||||
<h2 class="title" [attr.data-e2e]="'app-card-title'">{{title}}</h2>
|
||||
<span class="fill-space"></span>
|
||||
<ng-content select="[card-actions]"></ng-content>
|
||||
<button class="button" type="button" matTooltip="Expand or collapse" mat-icon-button
|
||||
@@ -10,7 +10,7 @@
|
||||
<mat-icon *ngIf="expanded">keyboard_arrow_up</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<p *ngIf="description" class="desc">{{description}}</p>
|
||||
<p *ngIf="description" class="desc cnsl-secondary-text">{{description}}</p>
|
||||
</div>
|
||||
<div class="card-content" *ngIf="expanded" [@openClose]="animate">
|
||||
<ng-content></ng-content>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.card {
|
||||
margin: 1rem 0;
|
||||
padding: 1.5rem;
|
||||
border-radius: .5rem;
|
||||
border-radius: 0.5rem;
|
||||
padding-top: 1rem;
|
||||
min-width: 300px;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .05em;
|
||||
letter-spacing: 0.05em;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -36,25 +36,28 @@
|
||||
}
|
||||
|
||||
.button {
|
||||
margin-right: -.5rem;
|
||||
margin-right: -0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: .9rem;
|
||||
color: var(--grey);
|
||||
font-size: 14px;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.stretch {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.card-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 500px) {
|
||||
margin: .5rem 0;
|
||||
margin: 0.5rem 0;
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,5 @@ export class CardComponent {
|
||||
@Input() public description: string = '';
|
||||
@Input() public animate: boolean = false;
|
||||
@Input() public nomargin?: boolean = false;
|
||||
@Input() public stretch: boolean = false;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
@use '@angular/material' as mat;
|
||||
|
||||
@mixin card-theme($theme) {
|
||||
/* stylelint-disable */
|
||||
$primary: map-get($theme, primary);
|
||||
$primary-color: mat.get-color-from-palette($primary, 500);
|
||||
$background: map-get($theme, background);
|
||||
$card-background-color: mat.get-color-from-palette($background, card);
|
||||
$card-background-color: mat.get-color-from-palette($background, cards);
|
||||
$is-dark-theme: map-get($theme, is-dark);
|
||||
$border-color: if($is-dark-theme, rgba(#8795a1, 0.2), rgba(#8795a1, 0.2));
|
||||
$border-selected-color: if($is-dark-theme, #ffffff, #000000);
|
||||
/* stylelint-enable */
|
||||
$border-selected-color: if($is-dark-theme, #fff, #000);
|
||||
|
||||
.card {
|
||||
background-color: $card-background-color;
|
||||
@@ -18,7 +16,6 @@
|
||||
box-sizing: border-box;
|
||||
border-radius: 0.5rem;
|
||||
outline: none;
|
||||
height: 100%;
|
||||
|
||||
&.warn {
|
||||
border-color: var(--warn);
|
||||
@@ -58,4 +55,25 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.cnsl-chip {
|
||||
height: auto;
|
||||
border: 1px solid $border-color;
|
||||
}
|
||||
|
||||
.cnsl-chip-list {
|
||||
padding: 0.5rem 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.cnsl-chip-dot {
|
||||
height: 1rem;
|
||||
width: 1rem;
|
||||
flex-shrink: 0;
|
||||
border-radius: 50%;
|
||||
background-color: #cd5c5c;
|
||||
margin-left: -4px;
|
||||
margin-right: 8px;
|
||||
box-shadow: 0 0 3px #0000001a;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user