umami/src/components/layout/Grid.module.css

69 lines
952 B
CSS
Raw Normal View History

2023-10-03 06:51:26 +00:00
.grid {
display: grid;
}
.row {
2023-10-03 06:51:26 +00:00
display: grid;
grid-template-columns: repeat(6, 1fr);
border-top: 1px solid var(--base300);
}
2023-10-03 06:51:26 +00:00
.col {
padding: 20px;
min-height: 430px;
2023-04-20 18:08:56 +00:00
border-inline-start: 1px solid var(--base300);
}
2023-10-03 06:51:26 +00:00
.col:first-child {
2023-04-20 18:08:56 +00:00
border-inline-start: 0;
padding-inline-start: 0;
}
2023-10-03 06:51:26 +00:00
.col:last-child {
2023-04-20 18:08:56 +00:00
padding-inline-end: 0;
}
2023-10-03 06:51:26 +00:00
.col.two {
grid-column: span 3;
}
.col.three {
grid-column: span 2;
}
.col.two-one:first-child {
grid-column: span 4;
}
.col.two-one:last-child {
grid-column: span 2;
}
.col.one-two:first-child {
grid-column: span 2;
}
.col.one-two:last-child {
grid-column: span 4;
}
@media only screen and (max-width: 992px) {
.row {
border: 0;
}
.row > .col {
border-top: 1px solid var(--base300);
2023-07-04 09:41:09 +00:00
border-inline-start: 0;
2023-04-20 18:08:56 +00:00
border-inline-end: 0;
padding: 20px 0;
}
2023-10-03 06:51:26 +00:00
.col.two,
.col.three,
.col.one-two,
.col.two-one {
grid-column: span 6 !important;
}
}