Browse Source

Improve style

pull/2343/head
Thomas 2 years ago
parent
commit
a566044ab2
  1. 4
      apps/client/src/app/app.component.html
  2. 20
      apps/client/src/app/app.component.scss

4
apps/client/src/app/app.component.html

@ -11,7 +11,7 @@
[routerLink]="routerLinkRegister" [routerLink]="routerLinkRegister"
> >
<div <div
class="cursor-pointer d-inline-block info-message px-3 py-2" class="cursor-pointer d-inline-block info-message"
(click)="onCreateAccount()" (click)="onCreateAccount()"
> >
<span i18n>You are using the Live Demo.</span> <span i18n>You are using the Live Demo.</span>
@ -20,7 +20,7 @@
> >
<div <div
*ngIf="!canCreateAccount && info?.systemMessage && user" *ngIf="!canCreateAccount && info?.systemMessage && user"
class="cursor-pointer d-inline-block info-message px-3 py-2 text-truncate" class="cursor-pointer d-inline-block info-message text-truncate"
(click)="onShowSystemMessage()" (click)="onShowSystemMessage()"
> >
{{ info.systemMessage }} {{ info.systemMessage }}

20
apps/client/src/app/app.component.scss

@ -12,18 +12,16 @@
height: var(--mat-toolbar-standard-height); height: var(--mat-toolbar-standard-height);
.info-message-inner-container { .info-message-inner-container {
background-color: var(--light-background); background-color: rgba(var(--palette-primary-500), 1);
height: var(--mat-toolbar-standard-height); height: var(--mat-toolbar-standard-height);
z-index: 999; z-index: 999;
.info-message { .info-message {
background-color: rgba(var(--palette-foreground-text), 0.05); color: rgba(var(--palette-foreground-text), 1);
border-radius: 2rem;
font-size: 80%; font-size: 80%;
max-width: 100%; max-width: 100%;
.a { .a {
color: rgba(var(--palette-primary-500), 1);
font-weight: 500; font-weight: 500;
} }
} }
@ -51,20 +49,6 @@
} }
:host-context(.is-dark-theme) { :host-context(.is-dark-theme) {
&.has-info-message {
header {
.info-message-container {
.info-message-inner-container {
background-color: var(--dark-background);
.info-message {
background-color: rgba(var(--palette-foreground-text-dark), 0.05);
}
}
}
}
}
footer { footer {
background-color: rgba(var(--palette-foreground-text-dark), 0.05); background-color: rgba(var(--palette-foreground-text-dark), 0.05);
} }

Loading…
Cancel
Save