Fixes some mobile rendering.

This commit is contained in:
Periodic committed 2026-09-19 16:46:38 -07:00
1 parent a56191ffca
commit c6ce366d95
3 files changed
+48 -20

No files matched your search

@@ -97,6 +97,7 @@ I am also not accounting for the second-level and higher industry tiles being sc
In this table each industry is listed with all of it's levels and the VP and income per money and action are calculated.
<div class="overflow">
<table>
<tr>
<th>Industry Name</th>
@@ -150,6 +151,7 @@ In this table each industry is listed with all of it's levels and the VP and inc
));
})()}
</table>
</div>
### Cotton Mills
+41 -19
View File
@@ -33,7 +33,25 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
</div>
</body>
<style>
@media (max-width: 1000px) {
@media (min-width: 1000px) {
body {
grid-template-areas:
"header header"
"sidebar main"
"footer footer";
grid-template-columns: 20rem 1fr;
margin: 2rem 1rem;
max-width: 1600px;
}
.header {
display: none;
}
.sidebar {
display: block;
}
}
@media (min-width: 500px) and (max-width: 1000px) {
body {
grid-template-areas:
"header"
@@ -53,28 +71,27 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
}
}
@media (min-width: 1000px) {
body {
grid-template-areas:
"header header"
"sidebar main"
"footer footer";
grid-template-columns: 20rem 1fr;
margin: 2rem 1rem;
max-width: 1600px;
}
.header {
display: none;
}
.sidebar {
display: block;
}
}
@media (max-width: 500px) {
body {
grid-template-areas:
"header"
"main"
"footer";
grid-template-columns: 1fr;
margin: 1rem 0;
font-size: 14px;
}
main {
padding: 0;
}
.header {
display: block;
}
.sidebar {
display: none;
}
}
body {
@@ -96,6 +113,11 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
flex-direction: column;
align-items: stretch;
justify-content: stretch;
min-width: 0;
}
main > * {
min-width: 0;
}
.footer {
+5 -1
View File
@@ -110,7 +110,6 @@ body {
font-size: var(--font-size-md);
line-height: 1.7;
background-color: var(--color-space-blue);
min-width: 360px;
}
main {
@@ -220,3 +219,8 @@ figure {
/* added line to stop words getting smushed together (as they go onto separate lines and some screen readers do not understand line feeds as a space */
white-space: nowrap;
}
.overflow {
width: 100%;
overflow: scroll;
}