Skip to content

Commit

Permalink
[Task] #77 improve responsive design, hide images, status overlays map
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Sep 1, 2024
1 parent c852365 commit 76e54a2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/client/css/start.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/* grid layout */
height: 100%;
display: grid;
grid-template-columns: 1fr minmax(18.5rem, 40vmin);
grid-template-columns: 1fr minmax(16rem, 40vmin);
grid-template-rows: minmax(3em, auto) 1fr 1fr 1fr minmax(3em, auto);

.grid-item {
Expand Down Expand Up @@ -48,6 +48,11 @@
margin-right: 1em;

background-color: color-mix(in oklab, transparent 50%, var(--main));

@media (max-width: 35em) {
grid-column: 1 / -1;
margin-right: 0;
}
}

&.status {
Expand Down Expand Up @@ -86,6 +91,9 @@

display: grid;
overflow: auto;
@media (max-width: 35em) {
display: none;
}
}

.image {
Expand All @@ -102,10 +110,11 @@
}

&.subinfo {
grid-column: 1;
grid-column: 1 / -1;
padding: 0.5em 0.8em;
@media (min-width: 30em) {
@media (min-width: 35em) {
padding: 0.7em 2em;
grid-column: 1;
}

.MuiLinearProgress-root {
Expand Down
14 changes: 14 additions & 0 deletions src/client/css/status.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,18 @@
td {
padding-inline: 0.2rem;
}
}

@container (max-width: 20rem) {
.statusTable {
padding: 0.3rem 0.1rem;
font-size: 1.15rem;
}

td {
padding: 0 0 0 0.1rem;
font-stretch: 100%;
font-weight: 400;
letter-spacing: normal;
}
}

0 comments on commit 76e54a2

Please sign in to comment.