Fixes some mobile rendering.
This commit is contained in:
1 parent
a56191ffca
commit
c6ce366d95
3 files changed
+50
-22
No files matched your search
@@ -97,7 +97,8 @@ 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.
|
||||
|
||||
<table>
|
||||
<div class="overflow">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Industry Name</th>
|
||||
<th>Level</th>
|
||||
@@ -149,7 +150,8 @@ In this table each industry is listed with all of it's levels and the VP and inc
|
||||
</tr>
|
||||
));
|
||||
})()}
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
### Cotton Mills
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user