mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-31 18:50:14 +02:00
make modals more subtle and intuitive
This commit is contained in:
@@ -439,7 +439,7 @@
|
||||
<hr>
|
||||
|
||||
<h3>Editor</h3>
|
||||
<div class="flex">
|
||||
<div class="flex block--mobile">
|
||||
|
||||
<div>
|
||||
<label class="line">
|
||||
@@ -496,7 +496,7 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ml-2">
|
||||
<div class="ml-2 ml-0--mobile">
|
||||
<label class="line" title="Toggle wrapping of long sentences onto new line">
|
||||
<input type="checkbox" d-change="updateSetting" data-setting="lineWrap"> Line wrap
|
||||
</label>
|
||||
|
@@ -2415,7 +2415,7 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
|
||||
if (typeof e.target.className !== 'string') {
|
||||
return;
|
||||
}
|
||||
if (e.target.className.indexOf('modal-overlay') !== -1) {
|
||||
if (e.target.classList.contains('modal-overlay') || e.target.classList.contains('modal')) {
|
||||
closeAllOverlays();
|
||||
}
|
||||
});
|
||||
|
@@ -90,6 +90,12 @@ p {
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
.block--mobile {
|
||||
display: block;
|
||||
}
|
||||
.ml-0--mobile {
|
||||
margin-left: 0rem;
|
||||
}
|
||||
.hide-on-mobile {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -569,14 +575,11 @@ body > #demo-frame {
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
overflow-y: auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 2000;
|
||||
visibility: hidden;
|
||||
|
||||
/* So that modal overlay gets pointer events */
|
||||
pointer-events: none;
|
||||
}
|
||||
.modal__close-btn {
|
||||
position: absolute;
|
||||
@@ -603,13 +606,13 @@ body > #demo-frame {
|
||||
font-size: 1.1em;
|
||||
line-height: 1.4;
|
||||
max-width: 85vw;
|
||||
max-height: 90vh;
|
||||
margin: 2rem auto;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
pointer-events: auto;
|
||||
transition-property: transform, opacity;
|
||||
transition-duration: 0.19s;
|
||||
transform: translateY(-50px) scale(0.7);
|
||||
transform: translateY(50px) scale(0.95);
|
||||
}
|
||||
@media screen and (max-width: 900px) {
|
||||
.modal__content {
|
||||
|
Reference in New Issue
Block a user