From ccccbaa0be8ec0f980a4d566c98b876e53de8310 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 20 Sep 2022 23:23:46 +0300 Subject: [PATCH] Removed unused variable, and renamed $fontSize --- src/app/app.component.ts | 3 --- src/assets/layout/styles/layout/_main.scss | 3 +-- src/assets/layout/styles/layout/_variables.scss | 6 +++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 2ffcb3f46..2bba850a8 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -6,12 +6,9 @@ import { PrimeNGConfig } from 'primeng/api'; }) export class AppComponent { - menuMode = 'static'; - constructor(private primengConfig: PrimeNGConfig) { } ngOnInit() { this.primengConfig.ripple = true; - document.documentElement.style.fontSize = '14px'; } } diff --git a/src/assets/layout/styles/layout/_main.scss b/src/assets/layout/styles/layout/_main.scss index 2b2685aae..61cc1b558 100644 --- a/src/assets/layout/styles/layout/_main.scss +++ b/src/assets/layout/styles/layout/_main.scss @@ -4,7 +4,7 @@ html { height: 100%; - font-size: $fontSize; + font-size: $scale; } body { @@ -25,5 +25,4 @@ a { .layout-wrapper { min-height: 100vh; - overflow-x: hidden; } \ No newline at end of file diff --git a/src/assets/layout/styles/layout/_variables.scss b/src/assets/layout/styles/layout/_variables.scss index 3886613d3..8e9b025d2 100644 --- a/src/assets/layout/styles/layout/_variables.scss +++ b/src/assets/layout/styles/layout/_variables.scss @@ -1,4 +1,4 @@ /* General */ -$fontSize:10px; -$borderRadius:12px; -$transitionDuration:.2s; +$scale:14px; /* main font size */ +$borderRadius:12px; /* border radius of layout element e.g. card, sidebar */ +$transitionDuration:.2s; /* transition duration of layout elements e.g. sidebar, overlay menus */