forked from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eds-406 fixed problem connect with dialog
- Loading branch information
1 parent
5fdefd3
commit ce5c01b
Showing
2 changed files
with
50 additions
and
52 deletions.
There are no files selected for viewing
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,53 +1,52 @@ | ||
body.modal-open { | ||
overflow: hidden; | ||
} | ||
|
||
overflow: hidden; | ||
} | ||
|
||
.modal dialog { | ||
--dialog-border-radius: 16px; | ||
padding: 0; | ||
overscroll-behavior: none; | ||
border: 1px solid #ccc; | ||
border-radius: var(--dialog-border-radius); | ||
width: 100vw; | ||
} | ||
|
||
.modal dialog .modal-content { | ||
overflow-y: auto; | ||
overscroll-behavior: none; | ||
max-height: calc(100dvh - 60px); | ||
} | ||
|
||
@media (width >= 600px) { | ||
.modal dialog { | ||
--dialog-border-radius: 16px; | ||
|
||
overscroll-behavior: none; | ||
border: 1px solid #ccc; | ||
border-radius: var(--dialog-border-radius); | ||
width: 100vw; | ||
width: 80vw; | ||
max-width: 730px; | ||
} | ||
|
||
.modal dialog .modal-content { | ||
overflow-y: auto; | ||
overscroll-behavior: none; | ||
max-height: calc(100dvh - 60px); | ||
} | ||
|
||
@media (width >= 600px) { | ||
.modal dialog { | ||
padding: 30px; | ||
width: 80vw; | ||
max-width: 700px; | ||
} | ||
|
||
.modal dialog .modal-content { | ||
max-height: calc(100vh - 90px); | ||
} | ||
} | ||
|
||
.modal dialog::backdrop { | ||
background-color: rgb(0 0 0 / 50%); | ||
} | ||
|
||
.modal .close-button { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
width: 20px; | ||
height: 100%; | ||
max-height: 54px; | ||
border-radius: 0 var(--dialog-border-radius) 0 0; | ||
background-color: unset; | ||
text-overflow: clip; | ||
margin: 0; | ||
border: none; | ||
padding-right: 30px; | ||
max-height: calc(100vh - 90px); | ||
} | ||
|
||
.modal dialog .section { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.modal dialog::backdrop { | ||
background-color: rgb(0 0 0 / 50%); | ||
} | ||
|
||
.modal .close-button { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
width: 20px; | ||
height: 100%; | ||
max-height: 54px; | ||
border-radius: 0 var(--dialog-border-radius) 0 0; | ||
background-color: unset; | ||
text-overflow: clip; | ||
margin: 0; | ||
border: none; | ||
padding-right: 30px; | ||
} | ||
|
||
.modal dialog .section { | ||
padding: 0; | ||
} |
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