Iceshrimp.NET/Iceshrimp.Frontend/Components/AttachmentView.razor.css

90 lines
No EOL
1.5 KiB
CSS

.attachment-view {
background-color: transparent;
max-height: 100vh;
max-width: 100vw;
}
.container {
display: flex;
flex-direction: column;
flex: 0 0 auto;
width: 100%;
height: 100%;
scroll-snap-align: center;
justify-content: center;
align-content: center;
background-color: transparent;
}
.attachment {
max-width: 85%;
max-height: 85%;
object-fit: contain;
margin: auto;
min-height: 50%;
padding-top: 2rem;
padding-bottom: 2rem;
}
.wrap {
background-color: transparent;
scroll-snap-type: x mandatory;
width: 100vw;
height: 100vh;
display: flex;
overflow: auto;
flex-wrap: nowrap;
}
::backdrop {
opacity: 50%;
background-color: black;
}
.close {
position: absolute;
top: 0%;
right: 0%;
background-color: transparent;
color: white;
}
.next {
position: absolute;
top: 50%;
right: 0%;
background-color: transparent;
color: white;
> i {
margin-left: 3rem;
}
}
.prev {
position: absolute;
top: 50%;
left: 0%;
background-color: transparent;
color: white;
> i {
margin-right: 3rem;
}
}
.alt-text {
overflow: auto;
max-width: 50%;
max-height: 30%;
min-height: 3rem;
margin-left: auto;
margin-right: auto;
margin-bottom: auto;
background-color: rgb(0 0 0 / 0.5);
padding: 1rem;
border-radius: 0.5rem;
}
.carousel-btn {
width: 6rem;
height: 6rem;
}