webapp/src/components/_shared/Lightbox/Lightbox.module.scss

102 lines
1.6 KiB
SCSS
Raw Normal View History

2023-11-13 08:05:05 +00:00
.Lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
2023-11-22 21:31:51 +00:00
background-color: rgb(0 0 0 / 50%);
2023-11-13 08:05:05 +00:00
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
animation: 300ms fadeIn;
animation-fill-mode: forwards;
2023-11-13 08:05:05 +00:00
.image {
max-width: 90%;
max-height: 80%;
2023-11-22 21:31:51 +00:00
cursor: grab;
2023-11-13 08:05:05 +00:00
}
.close {
2023-11-22 21:31:51 +00:00
background: rgb(0 0 0 / 50%);
border-radius: 100%;
2023-11-13 16:55:32 +00:00
position: fixed;
z-index: 1001;
2023-11-13 08:05:05 +00:00
top: 20px;
right: 40px;
font-size: 30px;
color: white;
cursor: pointer;
2023-11-22 21:31:51 +00:00
width: 36px;
height: 36px;
.icon {
height: 20px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 20px;
}
2023-11-13 08:05:05 +00:00
}
.zoomControls {
display: flex;
2023-11-13 16:55:32 +00:00
position: fixed;
2023-11-13 08:05:05 +00:00
bottom: 16px;
left: 50%;
height: 24px;
gap: 1rem;
transform: translateX(-50%);
2023-11-13 16:55:32 +00:00
z-index: 1001;
2023-11-13 08:05:05 +00:00
.control {
2023-11-22 21:31:51 +00:00
background-color: rgb(0 0 0 / 50%);
2023-11-13 08:05:05 +00:00
border-radius: 50%;
2023-11-22 21:31:51 +00:00
width: 30px;
height: 30px;
font-size: 24px;
2023-11-13 08:05:05 +00:00
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
2023-11-22 21:31:51 +00:00
transition: background-color 0.3s;
2023-11-13 08:05:05 +00:00
color: #fff;
2023-11-22 21:31:51 +00:00
&:hover {
background-color: #000;
}
}
.controlDefault {
font-size: 1.2rem;
letter-spacing: 0.15em;
2023-11-13 08:05:05 +00:00
}
}
}
.fadeOut {
animation: 300ms fadeOut;
animation-fill-mode: backwards;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}