Newer
Older
<style>
.currentTemperatureTile {
font-weight: bold;
flex-direction: row;
}
.currentTemperatureTile .icon {

Robert Goldmann
committed
font-size: 9vmin;
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
}
.currentTemperatureTile .content {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 85%;
height: 85%;
}
.currentTemperatureTile .entries {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
flex: 1;
}
.currentTemperatureTile .temperatures {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.currentTemperatureTile .temperature-entry {
display: flex;
flex-direction: column;
align-items: center;
padding-left: 3vmin;
justify-content: space-between;
}
.currentTemperatureTile .label {
font-size: 2vmin;
}
.currentTemperatureTile .wind {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
font-size: 2vmin;
padding-top: 1vmin;
}
.currentTemperatureTile .windSpeed {
padding-left: 1vmin;
}
</style>
<div class="currentTemperatureTile">
{% if data['isDayTime'] %}
{% set iconPrefix = 'wi-owm-day-' %}
{% else %}
{% set iconPrefix = 'wi-owm-night-' %}
{% endif %}
<i class="wi {{ iconPrefix }}{{ data['icon'] }} icon" style="color: {{ data['iconColor'] }};"></i>
<div class="entries">
<div class="temperatures">
<div class="temperature-entry">
<div class="label">Aktuell</div>
<div style="color: {{ data['temperatureColor'] }}">{{ data['temperature'] }}°C</div>
</div>
<div class="temperature-entry">
<div class="label">Gefühlt</div>
<div style="color: {{ data['feelsLikeColor'] }}">{{ data['feelsLike'] }}°C</div>
</div>
</div>
<div class="wind">
<i class="wi wi-wind from-{{ data['windDegrees'] }}-deg"></i>
<div class="windSpeed" style="color: {{ data['windSpeedColor'] }}">{{ data['windSpeed'] }}</div>