Skip to content

Commit

Permalink
Cleanup header layout for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
mirisuzanne committed Feb 5, 2025
1 parent aac9bd3 commit 1e2f22d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
gap: inherit;
grid-area: settings;
grid-template-columns: repeat(2, auto);
justify-content: safe end;
justify-content: var(--justify-settings);
}
</style>
3 changes: 0 additions & 3 deletions src/sass/components/_color-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@
justify-content: end;

@include config.above('sm-page-break') {
--align-label: right;

grid-template: 'format-label format-input' auto / 1fr auto;
}

label {
grid-area: format-label;
text-align: var(--align-label, left);
}

select {
Expand Down
5 changes: 4 additions & 1 deletion src/sass/initial/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ body {
display: grid;
gap: var(--shim) var(--double-gutter);
grid-area: header;
grid-template: 'logo settings' auto / auto 1fr;
grid-template: 'logo' auto 'settings' auto / 1fr;

@include config.above('sm-page-break') {
--justify-settings: safe end;

gap: var(--double-gutter);
grid-template: 'logo settings' auto / auto 1fr;
}
}

Expand Down

0 comments on commit 1e2f22d

Please sign in to comment.