Skip to content

Commit 416b5c5

Browse files
spliffonedr-itz
authored andcommitted
refactor(system-banner): use relative units for system-banner
1 parent c30ebd9 commit 416b5c5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

projects/element-ng/system-banner/system-banner.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
inline-size: 100%;
88

99
.banner {
10-
padding-block: map.get(variables.$spacers, 1);
10+
padding-block: variables.$si-system-banner-padding-y;
1111
padding-inline: map.get(variables.$spacers, 5);
1212
}
1313

projects/element-theme/src/styles/variables/_si-vars.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use 'sass:map';
2+
@use './spacers';
13
@use './animations';
24

35
// Custom variables
@@ -12,7 +14,8 @@ $btn-width-normal: 80px;
1214
$si-application-header-height: 48px;
1315

1416
$si-titlebar-height: 36px;
15-
$si-system-banner-height: 20px;
17+
$si-system-banner-padding-y: map.get(spacers.$spacers, 1);
18+
$si-system-banner-height: calc(1rem + 2 * $si-system-banner-padding-y);
1619

1720
// allows adding a custom titlebar on top
1821
// stylelint-disable-next-line length-zero-no-unit

0 commit comments

Comments
 (0)