mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Added a button to close the cookies policy page at the bottom of the page to improve UX on mobile
This commit is contained in:
@@ -175,3 +175,6 @@
|
||||
|
||||
%a.close-reveal-modal{"ng-click" => "$close()"}
|
||||
%i.ofn-i_009-close
|
||||
|
||||
%a.mobile-close-reveal-modal{"ng-click" => "$close()"}
|
||||
%i.ofn-i_009-close
|
||||
|
||||
@@ -55,6 +55,17 @@ dialog .close-reveal-modal, .reveal-modal .close-reveal-modal {
|
||||
}
|
||||
}
|
||||
|
||||
.reveal-modal .mobile-close-reveal-modal, dialog .mobile-close-reveal-modal {
|
||||
@extend .close-reveal-modal;
|
||||
position: relative;
|
||||
top: auto;
|
||||
left: 90%;
|
||||
|
||||
@media only screen and (min-width: 40.063em) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Prevent body from scrolling when a modal is open
|
||||
body.modal-open {
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user