add lightbox for post image previews

This commit is contained in:
2025-06-12 15:58:10 +03:00
parent ccccb9d238
commit e0de885cdd
3 changed files with 143 additions and 4 deletions

View File

@ -176,7 +176,7 @@ pre code {
font-size: 1rem;
}
#delete-dialog {
#delete-dialog, .lightbox-dialog {
padding: 0;
border-radius: 4px;
border: 2px solid black;
@ -190,6 +190,27 @@ pre code {
padding: 20px;
}
.lightbox-inner {
display: flex;
flex-direction: column;
padding: 20px;
min-width: 400px;
background-color: #c1ceb1;
gap: 10px;
}
.lightbox-image {
max-width: 70vw;
max-height: 70vh;
object-fit: scale-down;
}
.lightbox-nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.copy-code-container {
position: sticky;
width: calc(100% - 4px);
@ -442,7 +463,6 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus
justify-content: center;
flex-direction: column;
}
.contain-svg:not(.full) > svg {
height: 50%;
width: 50%;
@ -710,7 +730,6 @@ ul, ol {
padding: 5px 10px;
min-width: 36px;
}
.babycode-button > * {
font-size: 1rem;
}