104 lines
2.3 KiB
CSS
104 lines
2.3 KiB
CSS
#gamepad #telemetry {
|
|
background: var(--main-bg-color);
|
|
display: flex;
|
|
width: 650px;
|
|
height: 120px;
|
|
border-top-left-radius: 6px;
|
|
border-bottom-left-radius: 6px;
|
|
border-top-right-radius: 60px;
|
|
border-bottom-right-radius: 60px;
|
|
|
|
--black-color: black;
|
|
--white-color: white;
|
|
--main-bg-color: black;
|
|
--main-component-color: #333;
|
|
--clutch-color: #2D64B9;
|
|
--brake-color: #A52725;
|
|
--throttle-color: #0CA818;
|
|
}
|
|
|
|
#gamepad #telemetry * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#gamepad #telemetry #chart {
|
|
flex: 1;
|
|
margin: 4px;
|
|
background-color: var(--main-component-color);
|
|
border: 1px solid var(--black-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#gamepad #telemetry #meters {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
width: 90px;
|
|
}
|
|
|
|
#gamepad #telemetry #meters .meter {
|
|
position: relative;
|
|
flex: 1;
|
|
margin: 4px 2px;
|
|
background-color: var(--main-component-color);
|
|
border: 1px solid var(--black-color);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#gamepad #telemetry #meters .meter .value {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
width: 100%;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 10pt;
|
|
color: var(--white-color);
|
|
}
|
|
|
|
#gamepad #telemetry #meters .meter .bar {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 0%;
|
|
transition: height 100ms;
|
|
}
|
|
#gamepad #telemetry #meters #clutch.meter .bar {
|
|
background-color: var(--clutch-color);
|
|
}
|
|
#gamepad #telemetry #meters #brake.meter .bar {
|
|
background-color: var(--brake-color);
|
|
}
|
|
#gamepad #telemetry #meters #throttle.meter .bar {
|
|
background-color: var(--throttle-color);
|
|
}
|
|
|
|
#gamepad #telemetry #direction {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100px;
|
|
height: 100px;
|
|
margin: 10px;
|
|
border-radius: 50px;
|
|
background-color: var(--main-component-color);
|
|
}
|
|
|
|
#gamepad #telemetry #direction .center {
|
|
position: absolute;
|
|
top: 20%;
|
|
left: 20%;
|
|
width: 60%;
|
|
height: 60%;
|
|
border-radius: 50%;
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
#gamepad #telemetry #direction .indicator {
|
|
display: block;
|
|
width: 5%;
|
|
height: 50%;
|
|
background-color: var(--white-color);
|
|
transform-origin: bottom;
|
|
transition: transform 100ms;
|
|
}
|