213 lines
4.0 KiB
CSS
213 lines
4.0 KiB
CSS
.bd-modal-wrapper {
|
|
position: absolute;
|
|
z-index: 1000;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
|
|
.bd-backdrop {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0, .6);
|
|
position: absolute;
|
|
}
|
|
|
|
.bd-modal {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 33%;
|
|
}
|
|
|
|
.bd-modal-inner {
|
|
background: var(--background-primary);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
animation: bd-modal-open ease-out;
|
|
animation-duration: 300ms;
|
|
}
|
|
|
|
.bd-modal-wrapper.closing .bd-modal-inner {
|
|
animation: bd-modal-close ease-in;
|
|
animation-duration: 300ms;
|
|
}
|
|
|
|
.bd-modal .footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding: 15px;
|
|
background: var(--background-secondary);
|
|
}
|
|
|
|
.bd-modal-body {
|
|
padding: 20px 15px;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.bd-modal .header {
|
|
padding: 15px;
|
|
}
|
|
|
|
.bd-modal .title {
|
|
font-size: 22px;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bd-modal-body {
|
|
color: #fff;
|
|
}
|
|
|
|
.bd-modal .footer .bd-button {
|
|
min-width: 80px;
|
|
height: 38px;
|
|
}
|
|
|
|
@keyframes bd-modal-close {
|
|
to {transform: scale(0.7);}
|
|
}
|
|
|
|
@keyframes bd-modal-open {
|
|
from {transform: scale(0.7);}
|
|
}
|
|
|
|
|
|
|
|
.bd-modal-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--modal-background);
|
|
border-radius: 4px;
|
|
margin: 0 auto;
|
|
pointer-events: all;
|
|
position: relative;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.bd-close-button {
|
|
height: 26px;
|
|
padding: 4px;
|
|
transition: opacity 0.2s ease-in-out;
|
|
opacity: 0.5;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
color: var(--interactive-normal);
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.bd-close-button:hover {
|
|
opacity: 1;
|
|
color: var(--interactive-hover);
|
|
}
|
|
|
|
.bd-modal-small {
|
|
width: 440px;
|
|
max-height: 720px;
|
|
min-height: 200px;
|
|
}
|
|
|
|
.bd-modal-standard {
|
|
font-size: 13px;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
width: 490px;
|
|
max-height: 800px;
|
|
}
|
|
|
|
.bd-modal-medium {
|
|
width: 600px;
|
|
max-height: 800px;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.bd-modal-large {
|
|
width: 800px;
|
|
max-height: 960px;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.bd-modal-header,
|
|
.bd-modal-footer {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
padding: 16px;
|
|
z-index: 1;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.bd-modal-header {
|
|
border-radius: 4px 4px 0 0;
|
|
transition: box-shadow 0.1s ease-out;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.bd-modal-footer {
|
|
border-radius: 0 0 5px 5px;
|
|
background-color: var(--modal-footer-background);
|
|
overflow: hidden;
|
|
box-shadow: inset 0 1px 0 hsl(var(--primary-630-hsl)/0.6);
|
|
}
|
|
|
|
.bd-modal-content {
|
|
position: relative;
|
|
z-index: 0;
|
|
border-radius: 5px 5px 0 0;
|
|
padding-left: 16px;
|
|
/* padding-right: 16px; */
|
|
overflow-x: hidden;
|
|
font-size: 16px;
|
|
line-height: 20px;
|
|
padding-bottom: 20px;
|
|
overflow: hidden scroll;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.bd-modal-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
right: var(--devtools-sidebar-width,0);
|
|
bottom: 0;
|
|
left: 0;
|
|
-webkit-transform: translateZ(0);
|
|
transform: translateZ(0);
|
|
pointer-events: all;
|
|
}
|
|
|
|
#bd-modal-container {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: var(--devtools-sidebar-width,0);
|
|
bottom: 0;
|
|
background: none!important;
|
|
pointer-events: none;
|
|
z-index: 1002;
|
|
}
|
|
|
|
.bd-modal-layer {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.bd-modal-layer {
|
|
-webkit-box-align: center;
|
|
-ms-flex-align: center;
|
|
align-items: center;
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-webkit-box-pack: center;
|
|
-ms-flex-pack: center;
|
|
justify-content: center;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-direction: normal;
|
|
-ms-flex-direction: column;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
padding-top: 40px;
|
|
padding-bottom: 40px;
|
|
} |