t2-model-skinner/src/pages/gallery.module.css
2024-12-08 16:46:30 -08:00

105 lines
1.6 KiB
CSS

.GalleryPage {
flex-direction: column;
}
.Tools {
position: sticky;
top: 0;
flex: 0 0 auto;
padding: 10px;
text-align: center;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
background: rgba(0, 0, 0, 0.7);
z-index: 2;
}
.Tools select:focus {
outline: none;
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.5), 0 0 2px 3px rgb(152, 255, 212);
}
.Back {
justify-self: start;
display: inline-flex;
align-items: center;
gap: 4px;
color: #fff;
text-decoration: none;
font-size: 14px;
}
.IconLink {
justify-self: end;
display: grid;
place-content: center;
color: rgba(255, 255, 255, 0.3);
}
.IconLink:hover {
color: rgba(255, 255, 255, 1);
}
.Gallery {
flex: 0 0 auto;
display: grid;
width: 100%;
background: rgb(12, 31, 40);
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.Skin {
position: relative;
font-size: 12px;
text-align: center;
overflow: hidden;
padding-bottom: 32px;
}
.Preview {
display: block;
width: 100%;
height: auto;
}
.Name {
position: absolute;
bottom: 16px;
left: 50%;
transform: translate(-50%, 0);
display: inline-block;
white-space: nowrap;
color: #fff;
background: rgba(0, 0, 0, 0.5);
padding: 3px 10px;
border-radius: 9999px;
opacity: 0.5;
}
.Skin:hover .Name {
opacity: 1;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.Spinner {
flex: 0 0 auto;
margin: auto;
font-size: 64px;
animation: spin 2s linear infinite;
}
@media (max-width: 479px) {
.Back .Label {
display: none;
}
}