Skip to content

Commit 014c13d

Browse files
committed
refactor: moved basic styles to base
1 parent e826142 commit 014c13d

File tree

6 files changed

+8
-114
lines changed

6 files changed

+8
-114
lines changed

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"license": "Apache-2.0",
5757
"dependencies": {
5858
"@csstools/normalize.css": "^12.0.0",
59-
"@db-ui/base": "2.0.0-20-58c8a10"
59+
"@db-ui/base": "2.0.0-21-06f1b12"
6060
},
6161
"devDependencies": {
6262
"@babel/cli": "^7.19.3",

source/_patterns/00-base/_init.global.scss

-31
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
@use "@db-ui/base/build/scss/variables" as *;
22
@use "@db-ui/base/build/scss/helpers/functions" as *;
33

4-
// *! this is an opionionated (especially based on "enhancing" normalize.css) version of minireset.css v0.0.4 | MIT License | github.com/jgthms/minireset.css
5-
html,
6-
body {
7-
margin: 0;
8-
padding: 0;
9-
}
10-
11-
body {
12-
min-height: 100vh;
13-
}
14-
154
// adapted from https://github.com/jgthms/bulma/blob/0.7.5/sass/base/generic.sass
165
html {
176
background-color: #fdfdfd; // TODO: This would need to get replaced by the correct (semantic) color
@@ -48,16 +37,6 @@ body {
4837
line-height: 1.5;
4938
}
5039

51-
// Inline
52-
a {
53-
// TODO: Move to DB UI Base
54-
color: inherit;
55-
56-
strong {
57-
color: currentColor;
58-
}
59-
}
60-
6140
code {
6241
background-color: #f5f5f5;
6342
color: darken($db-colors-primary-enabled, 2%);
@@ -74,20 +53,10 @@ hr {
7453
margin: 1.5rem 0;
7554
}
7655

77-
img {
78-
height: auto;
79-
max-width: 100%;
80-
}
81-
8256
small {
8357
font-size: to-em($pxValue: 14);
8458
}
8559

86-
// Block
87-
fieldset {
88-
border: none;
89-
}
90-
9160
pre {
9261
background-color: #f5f5f5;
9362
color: #282d37;

source/_patterns/00-base/_init.scss

-73
This file was deleted.

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

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55
@import "@csstools/normalize.css/normalize";
66
@import "db-ui-core.variables";
7-
@import "../_patterns/00-base/init";

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

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ $partial: false;
2222
@use "@db-ui/base/build/scss/color-placeholder" as *;
2323

2424
@use "../../_patterns/00-base/init.global" as *;
25-
@use "../../_patterns/00-base/init" as *;
2625

2726
// Importing helpers
2827
@use "@db-ui/base/build/scss/helpers/functions" as *;

0 commit comments

Comments
 (0)