maximize dialog size #153
This commit is contained in:
parent
b548e2835d
commit
6baadb4e37
3 changed files with 12 additions and 8 deletions
|
|
@ -20,6 +20,11 @@ body {
|
||||||
padding: var(--gutter);
|
padding: var(--gutter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Scrollbar */
|
||||||
|
* {
|
||||||
|
scrollbar-color: hsla(180, 1%, 51%, .7) transparent;
|
||||||
|
}
|
||||||
|
|
||||||
/* If an element is [hidden] it needs to be max priority */
|
/* If an element is [hidden] it needs to be max priority */
|
||||||
.hidden, [hidden] {
|
.hidden, [hidden] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@
|
||||||
max-width: 25rem;
|
max-width: 25rem;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
margin-block: auto;
|
margin-top: var(--gutter);
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
}
|
}
|
||||||
#dtl-panel > header {
|
#dtl-panel > header {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
/* DIALOG BLOCK */
|
/* DIALOG BLOCK */
|
||||||
|
|
||||||
.dialog {
|
.dialog {
|
||||||
--dialog-max-w: min(100vw - var(--gutter) * 2, 77rem);
|
--dialog-max-w: calc(100vw - var(--gutter) * 2);
|
||||||
--dialog-max-h: min(100vh - var(--gutter) * 2, 50rem);
|
--dialog-max-h: calc(100vh - var(--gutter) * 2);
|
||||||
--dialog-header-h: 4.5rem;
|
--dialog-header-h: 4.5rem;
|
||||||
--dialog-footer-h: 4.5rem;
|
--dialog-footer-h: 4.5rem;
|
||||||
--dialog-comments-w: 22.5rem;
|
--dialog-comments-w: 22.5rem;
|
||||||
|
|
@ -15,14 +15,13 @@
|
||||||
border-radius: var(--rounded-2xl);
|
border-radius: var(--rounded-2xl);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: var(--dialog-background);
|
background: var(--dialog-background);
|
||||||
margin: auto !important;
|
margin: auto;
|
||||||
left: var(--gutter);
|
|
||||||
right: var(--gutter);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog.with-dtl {
|
.dialog.with-dtl {
|
||||||
--dialog-max-w: min(100vw - var(--gutter) * 2 - 26rem, 77rem);
|
--dialog-max-w: calc(100vw - var(--gutter) * 2 - 27rem);
|
||||||
margin-right: 30rem !important;
|
margin-right: 29rem;
|
||||||
|
margin-left: var(--gutter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue