pixsy/style.less

98 lines
1.4 KiB
Plaintext

@font-face {
font-family: 'rubikregular';
src: url('rubik-regular-webfont.woff2') format('woff2'),
url('rubik-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@light: #d3cbd0;
@dark: #594a54;
* {
box-sizing: border-box;
font-family: "rubikregular", sans-serif;
text-align: center;
}
html, body {
background-color: @dark;
color: @light;
}
canvas {
image-rendering: pixelated;
}
input[type="color"] {
&[disabled] {
opacity: 0.5;
}
width: 2em;
height: 2em;
margin: 0;
padding: 0;
border: none;
background: none;
}
table {
margin: 0 auto;
td, th {
width: 50%;
}
td {
text-align: left;
}
th {
text-align: right;
}
}
textarea {
height: 256px;
width: 256px;
margin: 1em;
}
textarea, input {
text-align: left;
}
.centre {
margin: 0 auto;
}
// make this just for desktop view?
// put sections in a single column on mobile/etc?
.section {
width: 20vw;
height: 20vw;
display: table-cell;
background-color: @light;
color: @dark;
}
#brightness, #threshold {
+ label{
.centre;
}
// todo make this match the croppie slider or vice versa
width: 256px;
}
#imageUpload {
padding: 1em 0;
width: 256px;
}
#preview {
.centre;
width: 256px;
}