Skip to content

Commit

Permalink
Merge pull request #3001 from statisticsnorway/MIM-2066-popup-open-re…
Browse files Browse the repository at this point in the history
…zsize-mobile

MIM-2066 popup open resize small mobile screen
  • Loading branch information
Carl-OW authored Oct 31, 2024
2 parents 3b46808 + b755c38 commit e26a956
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/main/resources/assets/styles/_popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,26 @@
&.open {
left: 50%;
transform: translateX(-50%);

@media (max-width: 380px) {
transform: translateX(-50%) scale(0.9);
bottom: 12px;
}

@media (max-width: 360px) {
transform: translateX(-50%) scale(0.9);
bottom: 12px;
}

@media (max-width: 345px) {
transform: translateX(-50%) scale(0.85);
bottom: 6px;
}

@media (max-width: 330px) {
transform: translateX(-50%) scale(0.8);
bottom: -2px;
}
}

&.closed,
Expand Down Expand Up @@ -190,4 +210,4 @@
.header-text {
font-size: 20px;
}
}
}

0 comments on commit e26a956

Please sign in to comment.