mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-29 14:50:20 +00:00
3ae9cf0420
* start converting * small fixes * reorganize theme files * cleanup search bar * increase spacing * small tweaks * fix select styles in Chrome * cleanup menus * improve button icons * restore badges * remove unused classes * restore some overrides * restore bookmark form * add summary outline * avoid layout shifts * restore bookmark details * increase border radius for modals * improve details modal * restore reader mode * restore settings * cleanup variables * start with dark theme * more dark theme... * more light theme... * more dark theme... * add postcss build * remove sass processor * update docker build * fix alt color * remove endless symbol * fix tests * update assets * remove sass files * fix docker build * cleanup spacing * improve theme * update test scripts * update CI workflow * fix test
93 lines
2.1 KiB
CSS
93 lines
2.1 KiB
CSS
/* Modals */
|
|
:root {
|
|
--modal-overlay-bg-color: rgba(243, 244, 246, 0.6);
|
|
--modal-container-bg-color: var(--body-color);
|
|
--modal-container-border-color: var(--gray-200);
|
|
--modal-border-radius: var(--border-radius-lg);
|
|
--modal-box-shadow: var(--box-shadow-lg);
|
|
}
|
|
|
|
.modal {
|
|
align-items: center;
|
|
bottom: 0;
|
|
display: none;
|
|
justify-content: center;
|
|
left: 0;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
padding: var(--layout-spacing);
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
|
|
&:target,
|
|
&.active {
|
|
display: flex;
|
|
opacity: 1;
|
|
z-index: var(--zindex-4);
|
|
|
|
& .modal-overlay {
|
|
animation: fade-in .15s ease 1;
|
|
background: var(--modal-overlay-bg-color);
|
|
bottom: 0;
|
|
cursor: default;
|
|
display: block;
|
|
left: 0;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
|
|
& .modal-container {
|
|
animation: fade-in .15s ease 1;
|
|
z-index: var(--zindex-0);
|
|
}
|
|
}
|
|
|
|
&.active.closing {
|
|
& .modal-overlay, & .modal-container {
|
|
animation: fade-out .15s ease 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.modal-container {
|
|
background: var(--modal-container-bg-color);
|
|
border: solid 1px var(--modal-container-border-color);
|
|
border-radius: var(--modal-border-radius);
|
|
box-shadow: var(--modal-box-shadow);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--unit-4);
|
|
max-height: 75vh;
|
|
max-width: var(--control-width-md);
|
|
padding: var(--unit-6);
|
|
width: 100%;
|
|
|
|
& .modal-header {
|
|
color: var(--text-color);
|
|
|
|
& button.close {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
line-height: 0;
|
|
cursor: pointer;
|
|
opacity: .85;
|
|
color: var(--secondary-text-color);
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
& .modal-body {
|
|
overflow-y: auto;
|
|
position: relative;
|
|
}
|
|
|
|
& .modal-footer {
|
|
text-align: right;
|
|
}
|
|
}
|