Skip to content

Commit

Permalink
feat: Change sidebar positioning to mobile first
Browse files Browse the repository at this point in the history
  • Loading branch information
phneutral committed Jan 28, 2025
1 parent 0f07a3b commit 34872df
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Shop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,24 +171,26 @@ watch(()=>shopStore.state.currentTab, (newVal,oldVal)=>{
padding: var(--sl-spacing-medium);
overflow: hidden;
border-radius: var(--sl-border-radius-medium);
grid-column: auto / span var(--shop-sidebar-columns);
/* height has to be set or sidebar grows until infinity... */
height: min-content;
grid-column: auto / span 12;
order: -1;
@media (min-width: 1024px) {
position: sticky;
max-height: calc(100vh - var(--viur-shop-sidebar-height-offset) - 2 * var(--padding));
top: var(--padding);
bottom: var(--padding);
grid-column: auto / span var(--shop-sidebar-columns);
order: unset;
}
}
.viur-shop-stepper-wrap {
display: flex;
flex-direction: column;
grid-column: auto / span var(--shop-main-columns);
@media (max-width: 1024px) {
grid-column: auto / span 12;
grid-column: auto / span 12;
@media (min-width: 1024px) {
grid-column: auto / span var(--shop-main-columns);
}
@media (max-width: 600px) {
Expand Down

0 comments on commit 34872df

Please sign in to comment.