Skip to content

Commit

Permalink
✨ [feat/rework-scania] #78 add fuel level and oil pressure bars
Browse files Browse the repository at this point in the history
Signed-off-by: JAGFx <[email protected]>
  • Loading branch information
JAGFx committed May 23, 2022
1 parent 7f8cb75 commit 500db4b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 26 deletions.
10 changes: 5 additions & 5 deletions src/assets/scss/dashboard/scania-next-gen/_fuel-gauge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

.fuel-gauge {
position: absolute;
top: 35.8rem;
left: 11.4rem;
width: 13.5rem;
top: 30.5rem;
left: 18.6rem;
width: 8.4rem;

&.bars .bar {
width: 1.1rem;
height: .3rem;
width: 0.7rem;
height: 0.25rem;
background: $cGreyLight;

&.active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

.water-temperature-gauge {
position: absolute;
top: 35.8rem;
right: 10.9rem;
width: 13.5rem;
top: 30.4rem;
right: 18.1rem;
width: 8.4rem;

&.bars .bar {
width: 1.1rem;
height: .3rem;
width: 0.7rem;
height: 0.25rem;
background: $cGreyLight;

&.active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
>
<i class="icon-scania-ad-blue-low_yellow mr-2"></i>
<div class="adblue-bars w-100">
<div
class="labels d-flex justify-content-between align-items-center mb-1"
>
<div class="labels d-flex justify-content-between align-items-center">
<span>0</span>
<span>1/2</span>
<span>1</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@
</div>
<ScaniaNextGenAdBlueBar class="mt-2" />
</ScaniaNextGenGaugeDisplay>
<!-- <Bars-->
<!-- class="fuel-gauge"-->
<!-- :level="telemetry2.truck.fuelLevel"-->
<!-- :capacity="telemetry2.truck.fuelCapacity"-->
<!-- :factor="8"-->
<!-- />-->
<!-- <Bars-->
<!-- class="water-temperature-gauge"-->
<!-- :level="telemetry2.truck.engineWaterTemperature"-->
<!-- :capacity="120"-->
<!-- :factor="8"-->
<!-- mode="bar"-->
<!-- />-->
<Bars
class="fuel-gauge"
:level="telemetry2.truck.fuelLevel"
:capacity="telemetry2.truck.fuelCapacity"
:factor="8"
/>
<Bars
class="water-temperature-gauge"
:level="telemetry2.truck.engineWaterTemperature"
:capacity="120"
:factor="8"
mode="bar"
/>

<!-- <editor-folder> Symbols -->
<ScaniaNextGenGeneralWarningSymbols />
Expand Down

0 comments on commit 500db4b

Please sign in to comment.