shiori/internal/view/less/custom-dialog.less

127 lines
3.2 KiB
Text
Raw Normal View History

2019-05-27 18:01:53 +08:00
:root {
--dialogHeaderBg: #292929;
--colorDialogHeader: #FFF;
}
.custom-dialog-overlay {
display: flex;
flex-flow: column nowrap;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 0;
overflow: hidden;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 10001;
background-color: rgba(0, 0, 0, 0.6);
padding: 32px;
.custom-dialog {
display: flex;
flex-flow: column nowrap;
width: 100%;
max-width: 400px;
min-height: 0;
max-height: 100%;
overflow: auto;
background-color: var(--contentBg);
font-size: 16px;
.custom-dialog-header {
padding: 16px;
color: var(--colorDialogHeader);
background-color: var(--dialogHeaderBg);
font-weight: 600;
font-size: 1em;
text-transform: uppercase;
border-bottom: 1px solid var(--border);
2019-05-27 18:01:53 +08:00
}
.custom-dialog-body {
padding: 16px;
display: grid;
max-height: 100%;
min-height: 80px;
min-width: 0;
overflow: auto;
font-size: 1em;
grid-template-columns: max-content 1fr;
align-items: baseline;
grid-gap: 16px;
&::after {
content: "";
display: block;
min-height: 1px;
grid-column-end: -1;
grid-column-start: 1;
}
2019-05-27 18:01:53 +08:00
.custom-dialog-content {
grid-column-end: -1;
grid-column-start: 1;
2019-05-27 18:01:53 +08:00
color: var(--color);
align-self: baseline;
}
>input,
>textarea {
2019-05-27 18:01:53 +08:00
color: var(--color);
padding: 8px;
font-size: 1em;
border: 1px solid var(--border);
background-color: var(--contentBg);
2019-05-27 18:01:53 +08:00
min-width: 0;
}
>textarea {
height: 6em;
min-height: 37px;
resize: vertical;
}
>.suggestion {
position: absolute;
display: block;
padding: 8px;
background-color: var(--contentBg);
border: 1px solid var(--border);
color: var(--color);
font-size: 0.9em;
}
2019-05-27 18:01:53 +08:00
}
.custom-dialog-footer {
padding: 16px;
display: flex;
flex-flow: row wrap;
justify-content: flex-end;
border-top: 1px solid var(--border);
>a {
padding: 0 8px;
font-size: 0.9em;
font-weight: 600;
2019-05-27 20:50:50 +08:00
color: var(--color);
text-transform: uppercase;
2019-05-27 18:01:53 +08:00
2019-05-30 14:30:36 +08:00
&:hover,
2019-05-27 18:01:53 +08:00
&:focus {
outline: none;
color: var(--main);
}
}
>i.fa-spinner.fa-spin {
width: 19px;
line-height: 19px;
text-align: center;
2019-05-31 17:32:02 +08:00
color: var(--color);
2019-05-27 18:01:53 +08:00
}
}
}
}