Skip to content

Commit 48e0aa8

Browse files
authored
refactor: splitted up those declarations for easier consumption (#16)
especially in DB UI Elements for global declarations
1 parent a74139e commit 48e0aa8

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

source/css/_fonts.general.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@import "db-ui-core.variables";
2+
3+
%general-fonts {
4+
font-family: $db-font-family-base;
5+
color: $db-color-cool-gray-700;
6+
font-size: 1rem;
7+
font-weight: 400;
8+
line-height: 1.5;
9+
}

source/css/db-ui-core.general.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import "db-ui-core.variables";
22
@import "@csstools/normalize.css/normalize";
33
@import "../_patterns/00-base/init";
4+
@import "fonts.general";
45

56
/* TODO: We most likely need to rework this */
67
body,
@@ -9,9 +10,5 @@ button,
910
input,
1011
select,
1112
textarea {
12-
font-family: $db-font-family-base;
13-
color: $db-color-cool-gray-700;
14-
font-size: 1rem;
15-
font-weight: 400;
16-
line-height: 1.5;
13+
@extend %general-fonts;
1714
}

0 commit comments

Comments
 (0)