login screen fixes, work for image upload

master
f0x 6 years ago
parent 92543321a0
commit f0c7f3b56c

@ -16,6 +16,7 @@ $purple: #B294BB;
$brown: #A3685A; $brown: #A3685A;
$accent: $blue; $accent: $blue;
$hover: hsla(0, 100%, 100%, 0.05);
$spacing: 0.7rem; $spacing: 0.7rem;
$borderwidth: 0.2rem; $borderwidth: 0.2rem;
@ -113,6 +114,7 @@ body {
label, input, button, span { label, input, button, span {
margin: 0.3em; margin: 0.3em;
padding: 0.3em; padding: 0.3em;
line-height: 140%;
} }
label { label {
@ -166,7 +168,7 @@ body {
position: relative; position: relative;
display: grid; display: grid;
box-sizing: border-box; box-sizing: border-box;
grid-template-columns: 15% 85%; //grid-template-columns: 15% 85%;
justify-content: center; justify-content: center;
} }
@ -354,7 +356,7 @@ body {
&:hover { &:hover {
border-radius: 0.1rem; border-radius: 0.1rem;
background-color: hsla(0, 100%, 100%, 0.05); background: $hover;
transition: 0.1s; transition: 0.1s;
} }
@ -372,7 +374,7 @@ body {
flex-direction: column; flex-direction: column;
border-top: $borderwidth solid transparent; border-top: $borderwidth solid transparent;
.replyEvent { .replyEvent, .imgPreview {
border-bottom: $borderwidth/2 solid $bg3; border-bottom: $borderwidth/2 solid $bg3;
padding: $spacing/2 $spacing; padding: $spacing/2 $spacing;
max-width: 100%; max-width: 100%;
@ -381,19 +383,63 @@ body {
overflow: hidden; overflow: hidden;
} }
textarea { .imgPreview {
background: transparent; object-fit: cover;
box-sizing: border-box; display: flex;
flex: 1 1 auto; }
padding: $spacing;
font-size: 1.2rem;
border: none;
resize: none; .imgPreview div {
overflow: hidden; height: 5rem;
overflow-y: auto; width: 5rem;
outline: none; object-fit: cover;
max-height: 150px; margin: 2px;
margin-right: $spacing;
position: relative;
img {
height: 5rem;
width: 5rem;
object-fit: cover;
}
span {
position: absolute;
top: 2px;
right: 2px;
}
}
.fileUpload {
input {
display: none;
}
}
.content {
display: flex;
textarea {
background: transparent;
box-sizing: border-box;
flex: 1 1 auto;
padding: $spacing;
font-size: 1.2rem;
border: none;
resize: none;
overflow: hidden;
overflow-y: auto;
outline: none;
max-height: 150px;
}
.fileUpload {
flex: 0 0 auto;
display: inline-block;
margin: $spacing;
align-self: center;
cursor: pointer;
}
} }
} }

Loading…
Cancel
Save