mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
Enlarge potential size of modals for large screens
Change modals for large screens from 10% position from top and 80% max height, to 5% position from top and 90% max height. This is to accommodate the taller cookies policy modal. It seems that it is not easy to apply a custom position and height to a specific modal only. This doesn't seem to be supported by the modal library currently being used. Before the recent changes, most modals were rendering at 10px top position (not the originally planned 10%), so changing this to 5% doesn't seem to be much of a compromise.
This commit is contained in:
@@ -125,9 +125,9 @@
|
||||
transition: transform 0.2s ease-out;
|
||||
|
||||
@media only screen and (min-width: 641px) {
|
||||
-webkit-transform: translate(0, -10%);
|
||||
-ms-transform: translate(0, -10%);
|
||||
transform: translate(0, -10%);
|
||||
-webkit-transform: translate(0, -5%);
|
||||
-ms-transform: translate(0, -5%);
|
||||
transform: translate(0, -5%);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ dialog
|
||||
|
||||
// Medium and up - when modal IS NOT full screen
|
||||
@media only screen and (min-width: 641px) {
|
||||
top: 10%;
|
||||
max-height: 80%;
|
||||
top: 5%;
|
||||
max-height: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user