cryptpad/www/oldwhiteboard/whiteboard.less

136 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-04-09 09:49:14 +00:00
.middle () {
position: relative;
vertical-align: middle;
}
.hidden {
display: none;
}
2017-04-07 20:05:31 +00:00
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;
}
2017-04-09 09:49:14 +00:00
// created in the html
2017-04-07 20:05:31 +00:00
#canvas-area {
flex: 1;
display: flex;
}
2017-04-09 09:49:14 +00:00
// created by fabricjs. styled so defaults don't break anything
2017-04-07 20:05:31 +00:00
.canvas-container {
margin: auto;
background: white;
2017-08-09 12:43:32 +00:00
& > canvas {
border: 1px solid black;
}
2017-04-07 20:05:31 +00:00
}
2017-04-09 09:49:14 +00:00
// contains user tools
2017-04-07 20:05:31 +00:00
#controls {
2017-08-09 12:43:32 +00:00
display: flex;
align-items: center;
justify-content: center;
2017-04-07 20:05:31 +00:00
position: relative;
border-top: 1px solid black;
background: white;
2017-08-09 12:43:32 +00:00
padding: 1em;
& > * + * {
margin: 0;
margin-left: 1em;
}
2017-04-09 09:49:14 +00:00
#width, #opacity {
2017-04-09 09:49:14 +00:00
.middle;
}
#clear, #delete, #toggleDraw {
2017-04-09 09:49:14 +00:00
display: inline;
vertical-align: middle;
}
.selected {
2017-08-09 12:43:32 +00:00
display: flex;
align-items: center;
justify-content: center;
2017-04-09 09:49:14 +00:00
z-index: 9001;
2017-08-09 12:43:32 +00:00
width: 100px;
height: 100px;
}
.range-group {
display: flex;
flex-direction: column;
position: relative;
input[type="range"] {
background-color: inherit;
2017-04-09 09:49:14 +00:00
}
2017-08-09 12:43:32 +00:00
& > 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;
2017-04-09 09:49:14 +00:00
}
2017-04-07 20:05:31 +00:00
}
2017-04-09 09:49:14 +00:00
/* Colors */
#colors {
.middle;
z-index: 100;
background: white;
display: flex;
justify-content: space-between;
2017-08-09 12:43:32 +00:00
padding: 1em;
2017-04-09 09:49:14 +00:00
span.palette-color {
height: 4vw;
width: 4vw;
2017-08-09 12:43:32 +00:00
display: block;
2017-04-09 09:49:14 +00:00
margin: 5px;
border: 1px solid black;
vertical-align: top;
2017-08-09 12:43:32 +00:00
border-radius: 50%;
transition: transform 0.1s;
&:hover {
transform: scale(1.2);
}
2017-04-09 09:49:14 +00:00
}
2017-04-07 20:05:31 +00:00
}
2017-04-09 09:49:14 +00:00
// used in the toolbar if supported
2017-04-07 20:05:31 +00:00
#color-picker {
display: block;
}
2017-04-09 09:49:14 +00:00
// input[type=color] must exist in the dom to work correctly
// styled so that they don't break layouts
2017-08-09 12:43:32 +00:00
2017-04-07 20:05:31 +00:00
#pickers {
visibility: hidden;
position: absolute;
width: 0;
height: 0;
z-index: -5;
}