cryptpad/www/whiteboard/whiteboard.less

98 lines
1.8 KiB
Text
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 {
border: 1px solid black;
margin: auto;
background: white;
}
2017-04-09 09:49:14 +00:00
// contains user tools
2017-04-07 20:05:31 +00:00
#controls {
display: block;
position: relative;
border-top: 1px solid black;
background: white;
height: 100px;
line-height: 100px;
2017-04-09 09:49:14 +00:00
padding-bottom: 5px;
#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 {
margin-left: 20px;
display: inline-block;
height: 135px;
width: 135px;
z-index: 9001;
text-align: center;
img {
vertical-align: middle;
}
}
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;
span.palette-color {
height: 4vw;
width: 4vw;
display: inline-block;
margin: 5px;
border: 1px solid black;
vertical-align: top;
}
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-04-07 20:05:31 +00:00
#pickers {
visibility: hidden;
position: absolute;
width: 0;
height: 0;
z-index: -5;
}