styling a few inputs

This commit is contained in:
synth-ruiner 2017-12-22 19:44:44 +00:00
parent 1d89159ca4
commit 1a67c3c899
2 changed files with 31 additions and 9 deletions

View File

@ -25,6 +25,9 @@ input[type="color"] {
border: none; border: none;
background: none; background: none;
} }
input[type="color"][disabled] {
opacity: 0.5;
}
table { table {
margin: 0 auto; margin: 0 auto;
} }
@ -39,7 +42,9 @@ table th {
text-align: right; text-align: right;
} }
textarea { textarea {
height: 4em; height: 256px;
width: 256px;
margin: 1em;
} }
textarea, textarea,
input { input {
@ -49,18 +54,24 @@ input {
margin: 0 auto; margin: 0 auto;
} }
.section { .section {
width: 33.33vw; width: 20vw;
height: 33.33vw; height: 20vw;
display: table-cell; display: table-cell;
background-color: #d3cbd0; background-color: #d3cbd0;
color: #594a54; color: #594a54;
} }
#brightness { #brightness,
#threshold {
width: 256px; width: 256px;
} }
#brightness + label { #brightness + label,
#threshold + label {
margin: 0 auto; margin: 0 auto;
} }
#imageUpload {
padding: 1em 0;
width: 256px;
}
#preview { #preview {
margin: 0 auto; margin: 0 auto;
width: 256px; width: 256px;

View File

@ -25,6 +25,10 @@ canvas {
} }
input[type="color"] { input[type="color"] {
&[disabled] {
opacity: 0.5;
}
width: 2em; width: 2em;
height: 2em; height: 2em;
margin: 0; margin: 0;
@ -50,7 +54,9 @@ table {
} }
textarea { textarea {
height: 4em; height: 256px;
width: 256px;
margin: 1em;
} }
textarea, input { textarea, input {
@ -64,14 +70,14 @@ textarea, input {
// make this just for desktop view? // make this just for desktop view?
// put sections in a single column on mobile/etc? // put sections in a single column on mobile/etc?
.section { .section {
width: 33.33vw; width: 20vw;
height: 33.33vw; height: 20vw;
display: table-cell; display: table-cell;
background-color: @light; background-color: @light;
color: @dark; color: @dark;
} }
#brightness { #brightness, #threshold {
+ label{ + label{
.centre; .centre;
} }
@ -80,6 +86,11 @@ textarea, input {
width: 256px; width: 256px;
} }
#imageUpload {
padding: 1em 0;
width: 256px;
}
#preview { #preview {
.centre; .centre;