camp/camp/static/css/site.scss
2025-03-28 12:04:55 +00:00

166 lines
3 KiB
SCSS

.gallery-dialog {
background: #282828;
overflow: hidden;
border: 1px solid black;
}
.gallery-dialog, .gallery-main-stage {
&: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) {
&:open {
overflow: auto;
}
.photo-container .image {
height: auto;
width: 100%;
}
}
.main-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.caption {
margin: 10px 0;
font-size: 14px;
color: lightgray;
text-align: center;
}
.thumbnails {
display: flex;
justify-content: center;
margin-top: 10px;
overflow: auto;
}
@media screen and (max-width: 39.9375em) {
.thumbnails {
flex-wrap: wrap;
}
}
.thumbnail {
width: 80px;
height: 60px;
margin: 5px;
cursor: pointer;
border: 2px solid transparent;
}
.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,
.edit.disabled {
display: none;
}
.download {
color: lightgray !important;
cursor: pointer;
position: absolute;
top: 4px;
right: 24px
}
.edit {
color: lightgray !important;
cursor: pointer;
position: absolute;
top: 4px;
left: 4px
}
.download:hover,
.edit: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;
}
}
.gallery-main-stage {
.photo-container .image {
height: auto;
}
.download {
right: 4px
}
@media screen and (max-width: 39.9375em) {
.download {
}
}
}
.gallery-dialog, .inline-gallery {
.thumbnail {
cursor: pointer;
border: 2px solid transparent;
}
.thumbnail.active {
cursor: initial;
border-color: #1779ba;
}
}