Spaces:
Running
Running
File size: 696 Bytes
f2bee8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
@import "../../css/colors.css";
.container {
padding: 1rem;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
}
.dial-container {
position: relative;
}
.dial-face, .dial-handle, .gauge {
position: absolute;
top: 0;
left: 0;
overflow: visible;
}
.dial-face {
width: 100%;
}
$dial-size: 40px;
.dial-handle {
cursor: pointer;
width: $dial-size;
height: $dial-size;
/* Use margin to make positioning via top/left easier */
margin-left: calc($dial-size / -2);
margin-top: calc($dial-size / -2);
}
.gauge-path {
fill: $motion-transparent;
stroke: $motion-primary;
stroke-width: 1px;
}
|