Skip to content

Commit

Permalink
Responsive Wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Oct 24, 2024
1 parent 2838b3e commit 25e762e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions petitbonhomme/_includes/outfit_display_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function setupWheel(outfitStack) {

// Translate items based on calculated x, y positions
item.style.transform = `translate(${x}px, ${y}px)`;
item.style.width = `${imgMaxWidth}px`;;
item.style.height = `${imgMaxHeight}px`;

const image = item.querySelector('img');
image.style.maxHeight = `${imgMaxHeight}px`;
Expand Down
8 changes: 6 additions & 2 deletions petitbonhomme/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,12 @@ Calendar Page
justify-content: flex-start;
}

@media screen and (max-width: 910px) {
.outfits-wrap {
flex-direction: column;
}
}

.outfit-stack {
position: relative;
display: flex;
Expand Down Expand Up @@ -582,8 +588,6 @@ Calendar Page
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
width: 125px;
height: 166px;
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit 25e762e

Please sign in to comment.