Skip to content

Commit afd6576

Browse files
authored
refactor: updated DB UI Base (#204)
1 parent 67ef312 commit afd6576

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
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-13-734dd87"
59+
"@db-ui/base": "2.0.0-15-344f053"
6060
},
6161
"devDependencies": {
6262
"@babel/cli": "^7.19.3",

source/_patterns/01-elements/checkbox/checkbox.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
}
7171

7272
& + label {
73-
margin-left: $db-spacing-fixed-normal-xs;
73+
margin-left: $db-spacing-fixed-regular-xs;
7474
}
7575
}

source/_patterns/01-elements/input/input.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
line-height: to-rem($pxValue: 24);
1616
max-width: 100%;
1717

18-
padding: $db-spacing-fixed-normal-xs $db-spacing-fixed-normal-m;
18+
padding: $db-spacing-fixed-regular-xs $db-spacing-fixed-regular-m;
1919

2020
width: 100%;
2121

@@ -91,7 +91,7 @@
9191

9292
margin-bottom: -#{to-rem($pxValue: 18)};
9393
transform: translate(
94-
$db-spacing-fixed-normal-m,
94+
$db-spacing-fixed-regular-m,
9595
-#{to-rem($pxValue: 41)}
9696
);
9797

source/_patterns/01-elements/radio/radio.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
// }
5353

5454
& + label {
55-
margin-left: $db-spacing-fixed-normal-xs;
55+
margin-left: $db-spacing-fixed-regular-xs;
5656
}
5757

5858
&:disabled {

source/_patterns/01-elements/select/select.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
background-repeat: no-repeat;
3030
height: to-rem($pxValue: 44);
3131
padding: to-rem($pxValue: 20) to-rem($pxValue: 42) 0
32-
$db-spacing-fixed-normal-m;
32+
$db-spacing-fixed-regular-m;
3333

3434
// Floating labels
3535
& + .elm-label {
@@ -48,7 +48,7 @@
4848
color: $select-floatingLabel--color;
4949
font-size: to-rem($pxValue: 16);
5050
transform: translate(
51-
$db-spacing-fixed-normal-m,
51+
$db-spacing-fixed-regular-m,
5252
-#{to-rem($pxValue: 35)}
5353
);
5454
}
@@ -78,7 +78,7 @@
7878
font-size: to-rem($pxValue: 12);
7979
margin-bottom: -#{to-rem($pxValue: 18)};
8080
transform: translate(
81-
$db-spacing-fixed-normal-m,
81+
$db-spacing-fixed-regular-m,
8282
-#{to-rem($pxValue: 41)}
8383
);
8484
transition: opacity, transform 150ms;
@@ -93,7 +93,7 @@
9393

9494
& + .elm-label {
9595
transform: translate(
96-
$db-spacing-fixed-normal-m,
96+
$db-spacing-fixed-regular-m,
9797
-#{to-rem($pxValue: 100)}
9898
);
9999
}

source/_patterns/02-components/accordion/accordion.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
align-items: center;
1717
display: flex;
1818

19-
padding-block: $db-spacing-fixed-normal-xs;
19+
padding-block: $db-spacing-fixed-regular-xs;
2020
// Negating the padding left for moving the element into that direction with the same measures
2121
transform: translateX(calc(var(--db-accordion---paddingLeft) * -1));
2222
width: calc(
@@ -98,7 +98,7 @@
9898

9999
summary {
100100
font-size: to-rem($pxValue: 20);
101-
padding-block: $db-spacing-fixed-normal-m;
101+
padding-block: $db-spacing-fixed-regular-m;
102102

103103
&::before {
104104
--icon-font-size: #{to-rem($pxValue: 32)};

source/_patterns/02-components/cards/card.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
// Cards contents are probably deprecated
4242
// TODO: probably remove after discussions and/or move to demonstration styles for the homepage
4343
figure {
44-
margin: $db-spacing-fixed-normal-m $db-spacing-fixed-normal-m
45-
$db-spacing-fixed-normal-m $db-spacing-fixed-normal-xs;
44+
margin: $db-spacing-fixed-regular-m $db-spacing-fixed-regular-m
45+
$db-spacing-fixed-regular-m $db-spacing-fixed-regular-xs;
4646
}
4747
// Banner variant
4848
&[data-variant="banner"] {

source/_patterns/02-components/table/_table.variables.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ $table-line--borderColor: #d7dce1 !default;
1717

1818
$table-row-zebra-color: rgba($db-colors-secondary-enabled, 0.07) !default;
1919

20-
$table-densitySmall--padding: $db-spacing-fixed-normal-xs !default;
21-
$table-densityRegular--padding: $db-spacing-fixed-normal-xs !default;
22-
$table-densityLarge--padding: $db-spacing-fixed-normal-m !default;
20+
$table-densitySmall--padding: $db-spacing-fixed-regular-xs !default;
21+
$table-densityRegular--padding: $db-spacing-fixed-regular-xs !default;
22+
$table-densityLarge--padding: $db-spacing-fixed-regular-m !default;

0 commit comments

Comments
 (0)