renamed 'width100' to 'tile'

This commit is contained in:
Patrick Haßel 2024-10-18 15:03:35 +02:00
parent 629dcb8c1e
commit 929ea7f802
4 changed files with 36 additions and 49 deletions

View File

@ -1,11 +1,11 @@
<div class="width100"> <div class="tile">
<app-dashboard-electricity-tile [now]="now"></app-dashboard-electricity-tile> <app-dashboard-electricity-tile [now]="now"></app-dashboard-electricity-tile>
</div> </div>
<div class="width100"> <div class="tile">
<app-dashboard-air-tile [now]="now"></app-dashboard-air-tile> <app-dashboard-air-tile [now]="now"></app-dashboard-air-tile>
</div> </div>
<div class="width100"> <div class="tile">
<app-dashboard-heating-tile [now]="now"></app-dashboard-heating-tile> <app-dashboard-heating-tile [now]="now"></app-dashboard-heating-tile>
</div> </div>

View File

@ -1,2 +1,2 @@
@import "states"; @import "states";
@import "widths"; @import "tile";

View File

@ -0,0 +1,32 @@
@import "config";
.tile {
float: left;
width: 100%;
padding: calc(@space / 2);
}
@media (min-width: 1000px) {
.tile {
width: 33.33%;
min-height: 400px;
}
}
@media (min-width: 1500px) {
.tile {
width: 25%;
}
}
@media (min-width: 2000px) {
.tile {
width: 20%;
}
}

View File

@ -1,45 +0,0 @@
@import "config";
.width100 {
float: left;
width: 100%;
padding: calc(@space / 2);
}
.width50 {
float: left;
width: 50%;
padding: calc(@space / 2);
}
.width50:nth-child(2n) {
padding-left: calc(@space / 2);
}
.width50:nth-child(2n+1) {
padding-right: calc(@space / 2);
}
@media (min-width: 1000px) {
.width100 {
width: 33.33%;
}
}
@media (min-width: 1500px) {
.width100 {
width: 25%;
}
}
@media (min-width: 2000px) {
.width100 {
width: 20%;
}
}