pixsy/includes/style.less

127 lines
1.7 KiB
Plaintext
Raw Normal View History

2017-12-22 17:22:08 +00:00
@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;
2017-12-23 21:17:31 +00:00
@accent: #f69f8f; // pink
2017-12-22 17:22:08 +00:00
* {
box-sizing: border-box;
font-family: "rubikregular", sans-serif;
text-align: center;
}
html, body {
background-color: @dark;
color: @light;
}
2017-12-23 21:17:31 +00:00
a {
color: @accent;
}
2017-12-22 17:22:08 +00:00
canvas {
image-rendering: pixelated;
}
input[type="color"] {
2017-12-22 19:44:44 +00:00
&[disabled] {
opacity: 0.5;
}
2017-12-22 17:22:08 +00:00
width: 2em;
height: 2em;
margin: 0;
padding: 0;
border: none;
background: none;
}
2018-03-03 09:28:15 +00:00
input[type="file"] {
padding: 1em 0;
width: 256px;
}
2017-12-23 20:41:40 +00:00
input[type="text"], button {
width: 14em;
margin: 1em;
padding: 0.25em;
font-size: 1em;
}
2017-12-22 17:22:08 +00:00
table {
margin: 0 auto;
td, th {
width: 50%;
}
td {
text-align: left;
}
th {
text-align: right;
}
}
textarea {
2017-12-22 19:44:44 +00:00
height: 256px;
width: 256px;
2017-12-23 23:34:17 +00:00
margin: 0 1em;
2017-12-23 00:14:54 +00:00
font-family: monospace;
2017-12-22 17:22:08 +00:00
}
textarea, input {
text-align: left;
}
.centre {
margin: 0 auto;
}
2017-12-23 23:34:17 +00:00
.croppie-container {
height: auto;
}
2017-12-22 17:22:08 +00:00
// make this just for desktop view?
// put sections in a single column on mobile/etc?
.section {
2017-12-22 19:44:44 +00:00
width: 20vw;
height: 20vw;
2017-12-22 17:22:08 +00:00
display: table-cell;
background-color: @light;
color: @dark;
}
#brightness {
width: 256px;
}
#threshold {
width: 150px;
}
2017-12-22 19:44:44 +00:00
#brightness, #threshold {
2017-12-22 17:22:08 +00:00
+ label{
.centre;
}
// todo make this match the croppie slider or vice versa
}
2017-12-23 00:14:54 +00:00
#preview, #room-output {
2017-12-22 17:22:08 +00:00
.centre;
width: 256px;
2017-12-23 20:41:40 +00:00
}
#save {
margin-top: 0;
2017-12-22 17:22:08 +00:00
}