An electron-based WIP aesthetic file explorer ^^
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.
FileKade/styles/files.css

98 lines
2.1 KiB

3 years ago
@font-face {
font-family: 'Montserrat';
src: url(../assets/Montserrat-Thin.ttf) format('truetype');
}
@keyframes shine {
from {
background-position: 200% center;
}
}
.files {
margin: 0 15px 12px 15px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
align-content: stretch;
row-gap: 7px;
}
.file, .file-header {
padding: 2px 3px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: flex-start;
align-content: space-around;
}
.file-name {
color: white;
order: 0;
}
.file > * {
font-family: 'Montserrat', sans-serif;
font-size: 18px;
margin: 0 0;
}
.file-header > * {
align-self: center;
flex-basis: 30%;
}
.file > * {align-self: center;}
.file-name {flex-basis: 27%;}
.file-type {flex-basis: 25%;}
.file-size {flex-basis: 20%;}
.file-icon {flex-basis: 2%;}
.file-date {flex-basis: 24%;}
.file-icon {
max-height: 30px;
max-width: 30px;
}
.file {
transition: background-color .1s ease-in, padding-top .12s ease-in, padding-bottom .12s ease-in;
border-radius: 5px 5px;
padding: 4px;
height: 30px;
}
.file:hover {background-color: #90909049;}
.file:focus, .file:active, .file-active {
padding-top: 6px;
padding-bottom: 6px;
background: linear-gradient(to right, #5d60ca78 20%, #17171778 35%, #17171778 35%, #5d60ca99 50%, #5d60ca99 50%, #af218878 75%, #5d60ca78 90%);
background-size: 200% auto;
animation: shine 10s linear infinite;
}
@keyframes scroll-text {
from {transform: translateX(35%);}
to {transform: translateX(-100.5%);}
}
.large-file-name {
position: absolute;
animation: scroll-text 10s linear infinite;
width: max-content;
height: max-content;
margin: 0 0;
transform: translateX(0%);
animation-fill-mode: both;
}
.large-file-name-container {
overflow: hidden;
position: relative;
margin: 0 0;
padding: 0 0;
width: 27%;
height: 100%;
3 years ago
}