forked from forkcms/forkcms
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve PrivacyConsentDialog.html.twig accessibility
- Loading branch information
Daphne Slootmans
committed
Aug 28, 2023
1 parent
a6cddcd
commit c5b4f00
Showing
2 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
46 changes: 33 additions & 13 deletions
46
src/Frontend/Themes/Bootstrap/src/Layout/Sass/components/_privacyConsentDialog.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
#privacyConsentDialog { | ||
box-shadow: 0 0.5rem 1rem rgba($black, 0.5); | ||
bottom: $spacer/2; | ||
position: fixed; | ||
display: block; | ||
height: auto; | ||
left: $spacer/2; | ||
right: $spacer/2; | ||
top: auto; | ||
width: auto; | ||
max-height: calc(100vh - env(safe-area-inset-bottom)); | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
width: 100vw; | ||
z-index: $zindex-modal - 1; | ||
overflow-y: auto; | ||
|
||
form { | ||
max-height: 100%; | ||
overflow-y: auto; | ||
} | ||
|
||
.modal-dialog { | ||
margin: 0; | ||
margin: 1rem; | ||
|
||
@include media-breakpoint-up(md) { | ||
margin: 3rem; | ||
} | ||
|
||
.modal-header, .modal-body, .modal-footer { | ||
padding: 1rem 1rem; | ||
} | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(sm) { | ||
#privacyConsentDialog { | ||
bottom: $spacer; | ||
left: $spacer; | ||
right: auto; | ||
.btn-link { | ||
text-decoration: underline; | ||
} | ||
|
||
|
||
@include media-breakpoint-up(sm) { | ||
left: unset; | ||
right: unset; | ||
top: unset; | ||
width: auto; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters