whitebophir/client-data/board.css

288 lines
4.5 KiB
CSS
Raw Normal View History

html, body, svg {
padding:0;
margin:0;
2019-06-25 11:28:02 +00:00
font-family: Liberation sans, sans-serif;
}
2019-01-01 23:50:35 +00:00
#canvas {
transform-origin: 0 0;
}
2019-06-25 11:28:02 +00:00
#loadingMessage {
font-size: 1.5em;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
background: #eee linear-gradient(#eeeeee, #cccccc);
2019-06-25 11:28:02 +00:00
padding: 20px;
width: 40%;
line-height: 50px;
text-align: center;
border-radius: 10px;
position:fixed;
top: 40%;
left: 30%;
z-index: 1;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
box-shadow: 0 0 2px #333333;
2019-06-25 11:28:02 +00:00
transition: 1s;
}
#loadingMessage.hidden {
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
display: none;
2019-06-25 11:28:02 +00:00
opacity: 0;
z-index: -1;
}
#loadingMessage::after {
content: "...";
}
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
/* Hide scrollbar for Chrome, Safari and Opera */
#menu::-webkit-scrollbar {
display: none;
}
#menu {
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
-ms-overflow-style: none;
scrollbar-width: none;
2019-06-19 10:09:06 +00:00
font-size: 16px;
border-radius: 0;
overflow-y: scroll;
position: fixed;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
margin-bottom: 30px;
left: 0;
top: 0;
color: black;
max-height: 100%;
transition-duration: 1s;
cursor: default;
2019-06-19 10:09:06 +00:00
padding: 10px;
pointer-events: none;
}
#menu.closed {
border-radius:3px;
2013-10-03 14:24:45 +00:00
left:10px;
top:10px;
background-color:rgba(100,200,255,0.7);
width:6vw;
2013-10-03 14:24:45 +00:00
height:2em;
transition-duration:1s;
}
#menu h2{ /*Menu title ("Menu")*/
2019-06-19 10:09:06 +00:00
display: none;
font-size:4vh;
text-align: center;
letter-spacing:.5vw;
text-shadow: 0px 0px 5px white;
color:black;
padding:0;
margin:0;
}
2019-03-20 17:00:22 +00:00
#menu .tools {
list-style-type:none;
padding:0;
}
#settings {
margin-bottom: 0;
}
2019-03-20 17:00:22 +00:00
#menu .tool {
position: relative;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Opera and Firefox */
2019-06-19 10:09:06 +00:00
pointer-events: auto;
white-space: nowrap;
list-style-position:inside;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
border:1px solid #eeeeee;
text-decoration:none;
cursor:pointer;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
background: #ffffff;
2019-06-19 10:09:06 +00:00
margin-top: 10px;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
height: 40px;
line-height: 40px;
border-radius: 0px;
max-width: 40px;
transition-duration: .2s;
2019-06-19 10:09:06 +00:00
overflow: hidden;
width: max-content;
box-shadow: inset 0 0 3px #8FA2BC;
2013-10-03 14:24:45 +00:00
}
2019-03-20 17:00:22 +00:00
#menu .tool:hover {
max-width: 100%;
2019-06-19 10:09:06 +00:00
}
@media (hover: none), (pointer: coarse) {
#menu .tool:hover {
max-width: 40px;
}
#menu .tool:focus {
max-width: 100%;
}
#menu {
pointer-events: auto;
}
#menu:focus-within {
pointer-events: none;
}
}
#menu .oneTouch:active {
border-radius: 3px;
background-color:#eeeeff;
}
#menu .tool:active {
box-shadow: inset 0 0 1px #ddeeff;
background-color:#eeeeff;
}
2019-03-20 17:00:22 +00:00
#menu .tool.curTool {
2019-06-19 10:09:06 +00:00
box-shadow: 0 0 5px #0074D9;
background: linear-gradient(#96E1FF, #36A2FF);
}
2020-04-25 22:45:42 +00:00
#menu .tool-icon {
display: inline-block;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
text-align:center;
width: 35px;
height: 35px;
margin: 2.5px;
font-family: mono, monospace;
2020-04-25 22:45:42 +00:00
overflow: hidden;
2019-06-19 10:09:06 +00:00
}
#menu img.tool-icon {
pointer-events: none;
}
2019-06-19 10:09:06 +00:00
#menu .tool-icon > * {
display: block;
margin: auto;
2013-12-14 12:45:55 +00:00
}
2019-06-19 10:09:06 +00:00
2013-12-14 12:45:55 +00:00
#menu .tool-name {
2019-06-19 10:09:06 +00:00
text-align: center;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
font-size: 23px;
margin-right: 20px;
margin-left: 20px;
margin-bottom: 2.5px;
display: inline-block;
vertical-align: text-bottom;
2013-12-14 12:45:55 +00:00
}
2019-06-19 10:09:06 +00:00
#menu .tool-name.slider {
display: inline-block;
2019-06-27 13:44:16 +00:00
width: 150px;
2019-06-19 10:09:06 +00:00
height: 30px;
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
font-size: .9em;
line-height: 15px;
2019-06-19 10:09:06 +00:00
vertical-align: top;
padding: 6px;
2013-12-14 12:45:55 +00:00
2019-06-19 10:09:06 +00:00
}
#menu .tool.hasSecondary .tool-icon{
margin-top:0px;
margin-left:0px;
}
#menu .tool .tool-icon.secondaryIcon{
display: none;
}
#menu .tool.hasSecondary .tool-icon.secondaryIcon{
display: block;
position: absolute;
bottom: 0px;
left: 26px;
width: 12px;
height: 12px;
}
input {
font-size:16px;
}
#chooseColor {
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
width: 100%;
height:100%;
border: 0;
border-radius: 0;
color:black;
display: block;
margin: 0;
padding: 0;
}
.colorPresets {
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
margin-right: 20px;
vertical-align: top;
display: inline-block;
}
.colorPresetButton {
width: 30px;
height: 30px;
border: 1px solid black;
border-radius: 3px;
display: inline-block;
margin-right: 6px;
padding: 0;
2020-04-25 22:45:42 +00:00
vertical-align: middle;
}
2018-12-02 12:18:29 +00:00
.rangeChooser {
display: block;
2019-06-19 10:09:06 +00:00
border: 0;
width: 100%;
2019-06-19 10:09:06 +00:00
margin: 0;
background: transparent;
}
Style changes (#39) * Initial Changes (#1) * Move socket event handlers and initial connection to connect function * Converted await statements to .then() * Toggle tool if clicked again and toggling option exists Co-authored-by: Finn Böger <finnboeger@googlemail.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> * Updated client styles - disable selecting text in tool menu - change design of tool boxes to be square and smaller - reduce text size in sliders Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed Apple Touch Icon * Update size and opacity icon, include fontawesome for future use Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Changed favicon svg * replace font-family with valid value * Added icons and icomoon font * change eraser and zoom icon Co-authored-by: Finn Böger <finnboeger@googlemail.com> * Revert icon change for now * Revert "Converted await statements to .then()" This reverts commit b35e0207df4515eeff17a004e31f04b73eea5dfb. * Revert "Revert icon change for now" This reverts commit 34e354f00fab0ad137772a7a6e04e759710452c0. * Restored new Icons * Restored favicon * Remove fontawesome * Increase icon sizes * Update the zoom icon See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098 * set display inline block for tool names, otherwise firefox doesn't respect margin-bottom * Rework tool icons * fix color presets position Co-authored-by: finnboeger <finnboeger@users.noreply.github.com> Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Finn Böger <finnboeger@googlemail.com>
2020-04-26 12:56:51 +00:00
line {
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}
path {
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}
text {
font-family:"Arial", "Helvetica", sans-serif;
user-select:none;
-moz-user-select:none;
}
Add a cursor (#46) * Added cursors * Prepare cursor code for future settings to toggle cursors on or off. Let cursor be the color the person has currently selected * fix cursor on mobile (still won't display it in most cases as there is no hover on mobile but at least it won't throw errors) * use correct size for cursor * throttle cursor update rate to dramatically improve performance by eliminating congestion * fix remote cursor size on desktop * show own cursor by default and renove offset * use svg as mouse cursor for pencil to be able to apply a reduced opacity to it and view our cursor * don't throttle local cursor * throttle local cursor at an independent higher rate. This could be made user adjustable for low power devices * remove let and const from client-side code * get emit count and emit count period from configuration * reduce network cursor updates a lot to prevent instantly getting banned with the current defaults * prevent eraser from deleting cursors * use group inside of svg as drawing area and only delete elements inside it with the eraser * use transform: translate to move cursors around instead of manipulating x and y directly * fix: add socket ids to cursor messages * fix incorrect remote cursor scaling and make local cursor visible again after it has been moved after being hidden due to inactivity * create cursors in a proper fashion and keep them in a separate group * scaling has been fixed in a1a5580 * move duplicated cursor creation code to function * show cursors above content * pass some of ther server configuration through to the client * fix bug introduced in a833ce9 * allocate at most half of the allowed traffic to cursor updates * remove debugging leftover * use feature detection instead of ua sniffing Co-Authored-By: Ophir LOJKINE <ophir.lojkine@auto-grid.com> * fix regression where local cursor color was not updated on color change * Define the cursor as a tool * Remove the cursor tool from the UI * Throttle remote cursor updates, not local ones * Do not increment notification count on cursor move * Use only one pencil icon Use the same image for the pencil icon in the menu and the pencil cursor that appears while drawing * Add a test for the new cursor feature * only stop drawing remote cursor when using some tools and always draw local cursor * increase idle period before hiding cursor * change idle duration back and set whether a cursor should be sent when using a tool in the respective tool Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Ophir LOJKINE <ophir.lojkine@auto-grid.com> Co-authored-by: ophir <pere.jobs@gmail.com>
2020-05-02 04:13:48 +00:00
circle.opcursor {
pointer-events: none;
transition: .1s;
}
#cursor-me {
transition: 0s;
}
/* Internet Explorer specific CSS */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#chooseColor {
color: transparent;
}
label.tool-name[for=chooseColor] {
line-height: 10px;
}
Add a cursor (#46) * Added cursors * Prepare cursor code for future settings to toggle cursors on or off. Let cursor be the color the person has currently selected * fix cursor on mobile (still won't display it in most cases as there is no hover on mobile but at least it won't throw errors) * use correct size for cursor * throttle cursor update rate to dramatically improve performance by eliminating congestion * fix remote cursor size on desktop * show own cursor by default and renove offset * use svg as mouse cursor for pencil to be able to apply a reduced opacity to it and view our cursor * don't throttle local cursor * throttle local cursor at an independent higher rate. This could be made user adjustable for low power devices * remove let and const from client-side code * get emit count and emit count period from configuration * reduce network cursor updates a lot to prevent instantly getting banned with the current defaults * prevent eraser from deleting cursors * use group inside of svg as drawing area and only delete elements inside it with the eraser * use transform: translate to move cursors around instead of manipulating x and y directly * fix: add socket ids to cursor messages * fix incorrect remote cursor scaling and make local cursor visible again after it has been moved after being hidden due to inactivity * create cursors in a proper fashion and keep them in a separate group * scaling has been fixed in a1a5580 * move duplicated cursor creation code to function * show cursors above content * pass some of ther server configuration through to the client * fix bug introduced in a833ce9 * allocate at most half of the allowed traffic to cursor updates * remove debugging leftover * use feature detection instead of ua sniffing Co-Authored-By: Ophir LOJKINE <ophir.lojkine@auto-grid.com> * fix regression where local cursor color was not updated on color change * Define the cursor as a tool * Remove the cursor tool from the UI * Throttle remote cursor updates, not local ones * Do not increment notification count on cursor move * Use only one pencil icon Use the same image for the pencil icon in the menu and the pencil cursor that appears while drawing * Add a test for the new cursor feature * only stop drawing remote cursor when using some tools and always draw local cursor * increase idle period before hiding cursor * change idle duration back and set whether a cursor should be sent when using a tool in the respective tool Co-authored-by: Robert Beach <rdbeach@gmail.com> Co-authored-by: Ophir LOJKINE <ophir.lojkine@auto-grid.com> Co-authored-by: ophir <pere.jobs@gmail.com>
2020-05-02 04:13:48 +00:00
}