Style for the new sensors web plugin

This commit is contained in:
Fabio Manganiello 2019-07-02 15:38:09 +02:00
parent fb4af87967
commit 0dac122db5
2 changed files with 3 additions and 4 deletions

View file

@ -13,14 +13,13 @@
.body {
display: flex;
flex-direction: column;
border: $default-border-3;
border-radius: 2rem;
margin: 2rem auto;
width: 80%;
.metric {
margin-bottom: .75rem;
padding: 2rem;
border-bottom: $default-border-3;
border: $default-border-3;
border-radius: 2rem;
&:nth-child(odd) { background: rgba(255, 255, 255, 0.0); }

View file

@ -9,7 +9,7 @@
<div class="body">
<sensor-metric v-for="value, name in metrics"
:key="name"
:name="name"
:name="name[0].toUpperCase() + name.slice(1)"
:value="value">
</sensor-metric>
</div>