From 70fe8614e3e335854c4266f485bc1d6c4e8d2f8e Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Fri, 16 Sep 2022 11:53:03 +0200 Subject: [PATCH] refactor: splitted up those declarations for easier consumption especially in DB UI Elements for global declarations --- source/css/_fonts.general.scss | 9 +++++++++ source/css/db-ui-core.general.scss | 7 ++----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 source/css/_fonts.general.scss diff --git a/source/css/_fonts.general.scss b/source/css/_fonts.general.scss new file mode 100644 index 0000000000..65044471c7 --- /dev/null +++ b/source/css/_fonts.general.scss @@ -0,0 +1,9 @@ +@import "db-ui-core.variables"; + +%general-fonts { + font-family: $db-font-family-base; + color: $db-color-cool-gray-700; + font-size: 1rem; + font-weight: 400; + line-height: 1.5; +} diff --git a/source/css/db-ui-core.general.scss b/source/css/db-ui-core.general.scss index f4d33a7d1d..4c054b243d 100644 --- a/source/css/db-ui-core.general.scss +++ b/source/css/db-ui-core.general.scss @@ -1,6 +1,7 @@ @import "db-ui-core.variables"; @import "@csstools/normalize.css/normalize"; @import "../_patterns/00-base/init"; +@import "fonts.general"; /* TODO: We most likely need to rework this */ body, @@ -9,9 +10,5 @@ button, input, select, textarea { - font-family: $db-font-family-base; - color: $db-color-cool-gray-700; - font-size: 1rem; - font-weight: 400; - line-height: 1.5; + @extend %general-fonts; }