File: D:/HostingSpaces/bomacon/bomacon.nl/resources/sass/site/5-Components/_components.fileUpload.scss
.c-file-upload {}
.c-file-upload__main {
position: relative;
}
.c-file-upload__input {
position: absolute;
inset: 0;
opacity: 0;
}
.c-file-upload__wrapper {
margin-top: space(3);
}
.c-file-upload__list {
margin-left: 0;
margin-bottom: space(3);
list-style: none;
overflow: hidden;
& > li {
display: flex;
justify-content: flex-start;
align-items: center;
border-bottom: 1px solid palette(primary, 500);
padding: var(--space-small) 0;
animation: expand .5s ease-in-out;
&::before {
content: '';
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
margin-right: space(1);
}
// delete button
& > button {
font-size: 24px;
line-height: 16px;
color: palette(primary, 500);
margin-left: auto;
border: none;
background-color: transparent;
cursor: pointer;
outline: none;
transition: color 150ms linear;
&:hover {
color: var(--color-negative-500);
}
}
}
}
.c-file-upload__button {
padding: 8px 16px;
margin-right: 8px;
border: 1px solid palette(primary, 500);
border-radius: 16px;
}
.c-file-upload__note {
margin-left: space(1);
color: var(--color-neutral-400);
}
@keyframes expand {
from {
transform: translateX(-100%);
transform-origin: top;
opacity: 0;
background: var(--color-action-500);
}
}