Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created June 16, 2019 17:50
Show Gist options
  • Save jsmanifest/7003fadb579c4cdc78f982b24f2b8e8b to your computer and use it in GitHub Desktop.
Save jsmanifest/7003fadb579c4cdc78f982b24f2b8e8b to your computer and use it in GitHub Desktop.
.file-list {
font-size: 0.75rem;
}
.file-row {
position: relative;
transition: all 0.15s ease-in;
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 0;
max-height: 50px;
animation: fade 0.6s ease-in;
}
.file-row:hover {
opacity: 0.7 !important;
}
@keyframes fade {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.file-row-thumbarea {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
flex-grow: 1;
}
.file-row-thumbarea img {
transition: all 0.15s ease-out;
border: 1px solid rgb(170, 26, 110);
width: 50px;
height: 50px;
object-fit: cover;
}
.file-row-filename {
flex-grow: 1;
padding: 0 12px;
font-size: 0.7rem;
}
.file-row-additional-info {
opacity: 0.7;
}
.file-row-filesize {
font-style: italic;
font-size: 0.7rem;
padding: 3px 6px;
border-radius: 6px;
width: 90px;
text-align: center;
border: 1px solid rgb(112, 78, 58);
animation: border-glow 2s ease-in forwards;
}
@keyframes border-glow {
0% {
border: 1px solid rgb(94, 68, 54);
}
100% {
border: 1px solid rgb(255, 74, 2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment