Browse Source

Improve header

pull/5319/head
Thomas Kaul 10 months ago
parent
commit
288bfe27da
  1. 28
      apps/client/src/app/components/header/header.component.html
  2. 1
      apps/client/src/app/components/header/header.component.scss
  3. 4
      apps/client/src/styles/theme.scss

28
apps/client/src/app/components/header/header.component.html

@ -17,7 +17,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': 'font-weight-bold':
currentRoute === internalRoutes.home.path || currentRoute === internalRoutes.home.path ||
@ -34,7 +34,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === internalRoutes.portfolio.path, 'font-weight-bold': currentRoute === internalRoutes.portfolio.path,
'text-decoration-underline': 'text-decoration-underline':
@ -48,7 +48,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === internalRoutes.accounts.path, 'font-weight-bold': currentRoute === internalRoutes.accounts.path,
'text-decoration-underline': 'text-decoration-underline':
@ -63,7 +63,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': 'font-weight-bold':
currentRoute === internalRoutes.adminControl.path, currentRoute === internalRoutes.adminControl.path,
@ -79,7 +79,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routeResources, 'font-weight-bold': currentRoute === routeResources,
'text-decoration-underline': currentRoute === routeResources 'text-decoration-underline': currentRoute === routeResources
@ -94,7 +94,7 @@
<li class="list-inline-item"> <li class="list-inline-item">
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routePricing, 'font-weight-bold': currentRoute === routePricing,
'text-decoration-underline': currentRoute === routePricing 'text-decoration-underline': currentRoute === routePricing
@ -114,7 +114,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routeAbout, 'font-weight-bold': currentRoute === routeAbout,
'text-decoration-underline': currentRoute === routeAbout 'text-decoration-underline': currentRoute === routeAbout
@ -164,7 +164,7 @@
<li class="list-inline-item"> <li class="list-inline-item">
<button <button
class="no-min-width px-1" class="no-min-width px-1"
mat-flat-button mat-button
[matMenuTriggerFor]="accountMenu" [matMenuTriggerFor]="accountMenu"
(menuClosed)="onMenuClosed()" (menuClosed)="onMenuClosed()"
(menuOpened)="onMenuOpened()" (menuOpened)="onMenuOpened()"
@ -352,7 +352,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routeFeatures, 'font-weight-bold': currentRoute === routeFeatures,
'text-decoration-underline': currentRoute === routeFeatures 'text-decoration-underline': currentRoute === routeFeatures
@ -365,7 +365,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routeAbout, 'font-weight-bold': currentRoute === routeAbout,
'text-decoration-underline': currentRoute === routeAbout 'text-decoration-underline': currentRoute === routeAbout
@ -378,7 +378,7 @@
<li class="list-inline-item"> <li class="list-inline-item">
<a <a
class="d-sm-block" class="d-sm-block"
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routePricing, 'font-weight-bold': currentRoute === routePricing,
'text-decoration-underline': currentRoute === routePricing 'text-decoration-underline': currentRoute === routePricing
@ -399,7 +399,7 @@
<a <a
class="d-none d-sm-block" class="d-none d-sm-block"
i18n i18n
mat-flat-button mat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routeMarkets, 'font-weight-bold': currentRoute === routeMarkets,
'text-decoration-underline': currentRoute === routeMarkets 'text-decoration-underline': currentRoute === routeMarkets
@ -413,12 +413,12 @@
<a <a
class="d-none d-sm-block no-min-width p-1" class="d-none d-sm-block no-min-width p-1"
href="https://github.com/ghostfolio/ghostfolio" href="https://github.com/ghostfolio/ghostfolio"
mat-flat-button mat-button
><ion-icon name="logo-github"></ion-icon ><ion-icon name="logo-github"></ion-icon
></a> ></a>
</li> </li>
<li class="list-inline-item"> <li class="list-inline-item">
<button class="d-sm-block" mat-flat-button (click)="openLoginDialog()"> <button class="d-sm-block" mat-button (click)="openLoginDialog()">
<ng-container i18n>Sign in</ng-container> <ng-container i18n>Sign in</ng-container>
</button> </button>
</li> </li>

1
apps/client/src/app/components/header/header.component.scss

@ -24,6 +24,7 @@
} }
.mdc-button { .mdc-button {
color: var(--mdc-text-button-label-text-color);
height: 100%; height: 100%;
&:not(.mat-primary) { &:not(.mat-primary) {

4
apps/client/src/styles/theme.scss

@ -157,6 +157,8 @@ $_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
); );
@include mat.all-component-themes($gf-theme-default); @include mat.all-component-themes($gf-theme-default);
--mdc-outlined-card-container-color: unset;
} }
.theme-dark { .theme-dark {
@ -175,6 +177,8 @@ $_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
); );
@include mat.all-component-themes($gf-theme-dark); @include mat.all-component-themes($gf-theme-dark);
--mdc-outlined-card-container-color: unset;
} }
:root { :root {

Loading…
Cancel
Save