|
|
|
@ -1,3 +1,11 @@
|
|
|
|
|
.middle () {
|
|
|
|
|
position: relative;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
.hidden {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html, body{
|
|
|
|
|
padding: 0px;
|
|
|
|
|
margin: 0px;
|
|
|
|
@ -11,36 +19,57 @@ body {
|
|
|
|
|
background-size: cover;
|
|
|
|
|
background-position: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// created in the html
|
|
|
|
|
#canvas-area {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
// created by fabricjs. styled so defaults don't break anything
|
|
|
|
|
.canvas-container {
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
margin: auto;
|
|
|
|
|
background: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// contains user tools
|
|
|
|
|
#controls {
|
|
|
|
|
display: block;
|
|
|
|
|
position: relative;
|
|
|
|
|
border-top: 1px solid black;
|
|
|
|
|
background: white;
|
|
|
|
|
height: 100px;
|
|
|
|
|
line-height: 100px;
|
|
|
|
|
padding-bottom: 5px;
|
|
|
|
|
|
|
|
|
|
#width {
|
|
|
|
|
.middle;
|
|
|
|
|
}
|
|
|
|
|
#clear, #toggleDraw {
|
|
|
|
|
display: inline;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
#colors {
|
|
|
|
|
z-index: 100;
|
|
|
|
|
background: white;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
.selected {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
height: 100px;
|
|
|
|
|
height: 135px;
|
|
|
|
|
width: 135px;
|
|
|
|
|
z-index: 9001;
|
|
|
|
|
text-align: center;
|
|
|
|
|
img {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#copy {
|
|
|
|
|
padding-left: 75px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Colors */
|
|
|
|
|
#colors {
|
|
|
|
|
.middle;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
background: white;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
span.palette-color {
|
|
|
|
|
height: 4vw;
|
|
|
|
|
width: 4vw;
|
|
|
|
@ -49,21 +78,15 @@ span.palette-color {
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
#controls {
|
|
|
|
|
display: block;
|
|
|
|
|
position: relative;
|
|
|
|
|
border-top: 1px solid black;
|
|
|
|
|
background: white;
|
|
|
|
|
height: 100px;
|
|
|
|
|
line-height: 100px;
|
|
|
|
|
}
|
|
|
|
|
#width, #colors {
|
|
|
|
|
position: relative;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// used in the toolbar if supported
|
|
|
|
|
#color-picker {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// input[type=color] must exist in the dom to work correctly
|
|
|
|
|
// styled so that they don't break layouts
|
|
|
|
|
#pickers {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
position: absolute;
|
|
|
|
@ -71,7 +94,4 @@ span.palette-color {
|
|
|
|
|
height: 0;
|
|
|
|
|
z-index: -5;
|
|
|
|
|
}
|
|
|
|
|
.hidden {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|