whitebophir/client-data/board.css
2019-06-22 20:10:20 +02:00

154 lines
2.4 KiB
CSS

html, body, svg {
padding:0;
margin:0;
}
#canvas {
transform-origin: 0 0;
}
#menu {
font-family: Liberation sans, sans-serif;
font-size: 16px;
border-radius:0;
overflow:hidden;
position:fixed;
left:0;
top:0;
color:black;
height:100%;
transition-duration:1s;
cursor:default;
padding: 10px;
pointer-events: none;
width: 300px;
}
#menu.closed {
border-radius:3px;
left:10px;
top:10px;
background-color:rgba(100,200,255,0.7);
width:6vw;
height:2em;
transition-duration:1s;
}
#menu h2{ /*Menu title ("Menu")*/
display: none;
font-size:4vh;
text-align: center;
letter-spacing:.5vw;
text-shadow: 0px 0px 5px white;
color:black;
padding:0;
margin:0;
}
#menu .tools {
list-style-type:none;
padding:0;
}
#menu .tool {
pointer-events: auto;
white-space: nowrap;
list-style-position:inside;
border:0;
text-decoration:none;
transition-duration:0.5s;
cursor:pointer;
background: linear-gradient( #C4DFFF, #8FA2BC);
margin-top: 10px;
height: 60px;
line-height: 60px;
border-radius: 30px;
max-width: 60px;
transition-duration: .5s;
overflow: hidden;
width: max-content;
box-shadow: inset 0 0 3px #8FA2BC;
}
@keyframes minimize {
to {max-width:100%;}
}
#menu .tool:hover {
color:black;
animation-name: minimize;
animation-duration: 1.2s;
animation-iteration-count: 2;
animation-timing-function: cubic-bezier(.08,.82,.17,1);
animation-direction: alternate;
}
#menu .tool:focus-within,
#menu #settings .tool:hover {
max-width:100%;
}
#menu .tool.curTool {
box-shadow: 0 0 5px #0074D9;
background: linear-gradient(#96E1FF, #36A2FF);
}
#menu .tool-icon {
display: inline-block;
text-align:center;
font-size:24px;
width: 30px;
margin-left: 15px;
margin-right: 26px;
height: 30px;
max-height: 24px;
height: 100%;
margin: 0px 26px auto 15px;
font-family: mono;
}
#menu .tool-icon > * {
display: block;
margin: auto;
}
#menu .tool-name {
text-align: center;
font-size: 25px;
margin-right: 30px;
}
#menu .tool-name.slider {
display: inline-block;
width: 100px;
height: 30px;
font-size: 1.3em;
line-height: 25px;
vertical-align: top;
padding: 6px;
}
input {
font-size:16px;
}
#chooseColor {
width:5vw;
height:100%;
border:1px solid black;
border-radius:3px;
color:black;
text-shadow: 0 0 6px white;
display: block;
width: 100%;
margin: 0;
padding: 0;
}
.rangeChooser {
display: block;
border: 0;
width: 100%;
margin: 0;
background: transparent;
}