camp/camp/static/css/site.scss
2025-03-25 22:34:55 +00:00

124 lines
2.3 KiB
SCSS

.gallery-dialog {
&:open {
background: #282828;
width: 100%;
height: 100%;
overflow: hidden;
}
&:open::backdrop {
background: black;
opacity: 0.8;
}
.photo-container {
position: relative;
max-height: 100%;
max-width: 100%;
margin: auto;
}
.photo-container .image {
max-height: 100%;
max-width: 100%;
height: calc(100vh - 180px);
}
@media screen and (max-width: 39.9375em) {
.photo-container .image {
height: auto;
width: 100%;
}
}
.main-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.caption {
margin: 10px 0;
font-size: 18px;
color: lightgray;
text-align: center;
}
.thumbnails {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-top: 10px;
}
.thumbnail {
width: 80px;
height: 60px;
margin: 5px;
cursor: pointer;
border: 2px solid transparent;
}
.thumbnail.active {
border-color: blue;
}
.nav-btn {
cursor: pointer;
font-size: 20px;
padding: 10px;
background: #007BFF;
color: white;
border: none;
margin: 10px;
position: absolute;
top: 50%;
margin-top: -16px;
outline: 0;
width: 32px;
height: 32px;
text-indent: -9999px;
z-index: 9999;
}
.close {
color: lightgray !important;
cursor: pointer;
position: absolute;
top: 2px;
right: 3px;
font-size: 20px;
}
.close:hover {
color: white !important;
}
.download.disabled {
display: none;
}
.download {
color: lightgray !important;
cursor: pointer;
position: absolute;
top: 4px;
right: 24px
}
.download:hover {
color: white !important;
}
@media screen and (max-width: 39.9375em) {
.close {
bottom: 6px;
top: initial;
}
.download {
bottom: 2px;
top: initial;
}
}
.nav-btn.next {
right: 0px;
background: url('/static/css/controls.png') no-repeat -43px -32px;
}
.nav-btn.prev {
left: 0px;
background: url('/static/css/controls.png') no-repeat 0 -32px;
}
.nav-btn:disabled {
display: none;
cursor: not-allowed;
}
}