File uploads

This commit is contained in:
Magnus Åhall 2023-06-22 08:28:51 +02:00
parent 33b10e6527
commit 8a3970645f
5 changed files with 126 additions and 18 deletions

View file

@ -227,18 +227,46 @@ header {
font-family: monospace;
font-size: 0.85em;
color: #333;
width: 100ex;
width: 900px;
resize: none;
border: none;
outline: none;
&[contenteditable] {
outline: 0px solid transparent;
&:invalid {
background: #f5f5f5;
}
}
#file-section {
justify-self: center;
width: 900px;
margin-top: 32px;
padding: 32px;
background: #f5f5f5;
.header {
font-weight: bold;
color: #000;
margin-bottom: 16px;
}
&:invalid {
border-bottom: 1px solid #eee;
border-radius: 8px;
.files {
display: grid;
grid-template-columns: 1fr min-content;
grid-gap: 8px 16px;
color: #444;
font-size: 0.85em;
.filename {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.size {
white-space: nowrap;
text-align: right;
}
}
}
@ -251,4 +279,9 @@ header {
width: 100%;
justify-self: start;
}
#file-section {
width: 100%;
justify-self: start;
}
}