Skip to content

Commit 8a13ca1

Browse files
author
veeck
committed
Add new layout styles to improve weather layout
1 parent e886821 commit 8a13ca1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

css/main.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,15 @@ sup {
252252
.region .container.hidden {
253253
display: none;
254254
}
255+
256+
.region.left .flex {
257+
justify-content: flex-start;
258+
}
259+
260+
.region.center .flex {
261+
justify-content: center;
262+
}
263+
264+
.region.right .flex {
265+
justify-content: flex-end;
266+
}

modules/default/weather/current.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
{% endif %}
4444
</div>
4545
{% endif %}
46-
<div class="large type-temp">
46+
<div class="flex large type-temp">
4747
{% if config.showIndoorTemperature and indoor.temperature or config.showIndoorHumidity and indoor.humidity %}
4848
<span class="medium fas fa-home"></span>
4949
<span style="display: inline-block">

modules/default/weather/weather.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444

4545
.weather .type-temp {
4646
display: flex;
47-
align-items: center;
47+
align-items: baseline;
4848
gap: 10px;
4949
}

0 commit comments

Comments
 (0)