You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
136 lines
2.4 KiB
Plaintext
136 lines
2.4 KiB
Plaintext
8 years ago
|
.middle () {
|
||
|
position: relative;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
.hidden {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
8 years ago
|
html, body{
|
||
|
padding: 0px;
|
||
|
margin: 0px;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
body {
|
||
|
display: flex;
|
||
|
flex-flow: column;
|
||
|
height: 100%;
|
||
|
background: url('/customize/bg3.jpg') no-repeat center center;
|
||
|
background-size: cover;
|
||
|
background-position: center;
|
||
|
}
|
||
8 years ago
|
|
||
|
// created in the html
|
||
8 years ago
|
#canvas-area {
|
||
|
flex: 1;
|
||
|
display: flex;
|
||
|
}
|
||
8 years ago
|
// created by fabricjs. styled so defaults don't break anything
|
||
8 years ago
|
.canvas-container {
|
||
|
margin: auto;
|
||
|
background: white;
|
||
7 years ago
|
& > canvas {
|
||
|
border: 1px solid black;
|
||
|
}
|
||
8 years ago
|
}
|
||
8 years ago
|
|
||
|
// contains user tools
|
||
8 years ago
|
#controls {
|
||
7 years ago
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
|
||
8 years ago
|
position: relative;
|
||
|
border-top: 1px solid black;
|
||
|
background: white;
|
||
7 years ago
|
|
||
|
padding: 1em;
|
||
|
|
||
|
& > * + * {
|
||
|
margin: 0;
|
||
|
margin-left: 1em;
|
||
|
}
|
||
8 years ago
|
|
||
8 years ago
|
#width, #opacity {
|
||
8 years ago
|
.middle;
|
||
|
}
|
||
8 years ago
|
#clear, #delete, #toggleDraw {
|
||
8 years ago
|
display: inline;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
.selected {
|
||
7 years ago
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
8 years ago
|
z-index: 9001;
|
||
7 years ago
|
|
||
|
width: 100px;
|
||
|
height: 100px;
|
||
|
}
|
||
|
|
||
|
.range-group {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
position: relative;
|
||
|
|
||
|
input[type="range"] {
|
||
|
background-color: inherit;
|
||
8 years ago
|
}
|
||
7 years ago
|
|
||
|
& > span {
|
||
|
cursor: default;
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
}
|
||
|
}
|
||
|
.range-group:first-of-type {
|
||
|
margin-left: 2em;
|
||
|
}
|
||
|
.range-group:last-of-type {
|
||
|
margin-right: 1em;
|
||
8 years ago
|
}
|
||
8 years ago
|
}
|
||
8 years ago
|
|
||
|
/* Colors */
|
||
|
#colors {
|
||
|
.middle;
|
||
|
z-index: 100;
|
||
|
background: white;
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
|
||
7 years ago
|
padding: 1em;
|
||
|
|
||
8 years ago
|
span.palette-color {
|
||
|
height: 4vw;
|
||
|
width: 4vw;
|
||
7 years ago
|
display: block;
|
||
8 years ago
|
margin: 5px;
|
||
|
border: 1px solid black;
|
||
|
vertical-align: top;
|
||
7 years ago
|
border-radius: 50%;
|
||
|
transition: transform 0.1s;
|
||
|
|
||
|
&:hover {
|
||
|
transform: scale(1.2);
|
||
|
}
|
||
8 years ago
|
}
|
||
8 years ago
|
}
|
||
8 years ago
|
|
||
|
// used in the toolbar if supported
|
||
8 years ago
|
#color-picker {
|
||
|
display: block;
|
||
|
}
|
||
8 years ago
|
|
||
|
// input[type=color] must exist in the dom to work correctly
|
||
|
// styled so that they don't break layouts
|
||
7 years ago
|
|
||
8 years ago
|
#pickers {
|
||
|
visibility: hidden;
|
||
|
position: absolute;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
z-index: -5;
|
||
|
}
|