You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

134 lines
2.1 KiB

#assets {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
}
.asset {
text-align: center;
}
.asset__thumbnail {
position: relative;
width: 100%;
margin-bottom: 12px;
&::after {
content: "";
display: block;
padding-bottom: 100%;
}
& div {
position: absolute;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
& img {
display: block;
max-width: 100%;
max-height: 100%;
box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
}
}
.asset__title {
font-size: 1.4rem;
margin-bottom: 2px;
text-overflow: ellipsis;
white-space: nowrap;
word-break: normal;
overflow: hidden;
}
.asset__mimetypes {
font-size: 1.2rem;
font-family: var(--font-mono);
color: var(--action);
}
.assets-sort {
font-size: 1.4rem;
display: flex;
justify-content: flex-end;
gap: 1rem;
align-items: center;
.popup-menu {
min-width: auto
}
& a {
font-size: 1.4rem;
white-space: nowrap;
}
}
.asset {
position: relative;
padding: 10px 10px 40px 10px;
border: 2px solid transparent;
&:hover {
border-color: var(--clr-grey-200);
border-radius: 10px;
& .asset-ctrls {
bottom: 6px;
position: absolute;
left: 10px;
right: 10px;
display: flex;
justify-content: space-between;
}
}
}
.icon-cb-round {
position: absolute;
inset: 0 0 0 0;
cursor: pointer;
display: none;
& span {
position: absolute;
right: 8px;
top: 8px;
width: 16px;
height: 16px;
outline: 2px solid var(--border);
outline-offset: 2px;
border-radius: 50%;
}
& input {
position: absolute;
height: 0;
width: 0;
clip: rect(0,0,0,0);
&:checked~span {
outline: 2px solid var(--action);
background-color: var(--action);
}
}
}
#overlay {
& .icon-cb-round {
display: block;
}
& .asset-ctrls {
display: none;
}
}