Merge branch 'mobile-modals' into shigusegubu-themes3
This commit is contained in:
commit
1348bbb4d2
1 changed files with 35 additions and 24 deletions
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<span
|
<span
|
||||||
|
class="dialog-container"
|
||||||
:class="{ 'dark-overlay': darkOverlay }"
|
:class="{ 'dark-overlay': darkOverlay }"
|
||||||
@click.self.stop="onCancel()"
|
@click.self.stop="onCancel()"
|
||||||
>
|
>
|
||||||
|
@ -41,14 +42,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-modal.panel {
|
.dialog-container {
|
||||||
|
display: grid;
|
||||||
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 50%;
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
justify-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-modal.panel {
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
max-width: 90vw;
|
max-width: 90vw;
|
||||||
margin: 15vh auto;
|
|
||||||
position: fixed;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
z-index: 2001;
|
z-index: 2001;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -71,11 +79,14 @@
|
||||||
border-top: 1px solid var(--border);
|
border-top: 1px solid var(--border);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 0.5em;
|
grid-gap: 0.5em;
|
||||||
grid-auto-columns: minmax(max-content, 1fr);
|
grid-template-columns: min-content;
|
||||||
|
grid-auto-columns: min-content;
|
||||||
|
grid-auto-flow: column dense;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width: auto;
|
width: auto;
|
||||||
|
white-space: nowrap;
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
padding-right: 2em;
|
padding-right: 2em;
|
||||||
}
|
}
|
||||||
|
@ -83,27 +94,27 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#modal.-mobile {
|
#modal.-mobile {
|
||||||
|
.dialog-container {
|
||||||
|
justify-content: stretch;
|
||||||
|
align-items: end;
|
||||||
|
justify-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
.dialog-modal.panel {
|
.dialog-modal.panel {
|
||||||
top: auto;
|
min-width: 100vw;
|
||||||
left: 0;
|
}
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
max-width: none;
|
|
||||||
transform: none;
|
|
||||||
width: 100vw;
|
|
||||||
margin: auto;
|
|
||||||
z-index: 2001;
|
|
||||||
|
|
||||||
.dialog-modal-footer {
|
.dialog-modal-footer {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
grid-auto-columns: initial;
|
grid-template-columns: 1fr;
|
||||||
grid-auto-rows: 1fr;
|
grid-auto-columns: none;
|
||||||
|
grid-auto-rows: auto;
|
||||||
|
grid-auto-flow: row dense;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
grid-column: 1;
|
grid-column: 1;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue