mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
A11Y: set modal widths with EMs; improves scaling (#14863)
This commit is contained in:
@@ -311,7 +311,8 @@
|
||||
|
||||
html:not(.mobile-view) {
|
||||
.fixed-modal .discourse-local-dates-create-modal.modal-body {
|
||||
width: 600px;
|
||||
width: 40em; // using ems to scale with user font size
|
||||
max-width: 100vw; // avoids overflow if someone has extreme font-sizes impacting width
|
||||
max-height: 400px !important;
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,7 @@
|
||||
.poll-ui-builder-modal {
|
||||
.modal-inner-container {
|
||||
width: 600px;
|
||||
width: 40em; // scale with user font-size
|
||||
max-width: 100vw; // prevent overflow if user font-size is enourmous
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
|
Reference in New Issue
Block a user