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.
|
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>
|
<tr>
|
||||||
<th>Industry Name</th>
|
<th>Industry Name</th>
|
||||||
<th>Level</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>
|
</tr>
|
||||||
));
|
));
|
||||||
})()}
|
})()}
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
### Cotton Mills
|
### Cotton Mills
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,25 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<style>
|
<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 {
|
body {
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"header"
|
"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) {
|
@media (max-width: 500px) {
|
||||||
body {
|
body {
|
||||||
|
grid-template-areas:
|
||||||
|
"header"
|
||||||
|
"main"
|
||||||
|
"footer";
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
margin: 1rem 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.sidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -96,6 +113,11 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
main > * {
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ body {
|
|||||||
font-size: var(--font-size-md);
|
font-size: var(--font-size-md);
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
background-color: var(--color-space-blue);
|
background-color: var(--color-space-blue);
|
||||||
min-width: 360px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
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 */
|
/* 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;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overflow {
|
||||||
|
width: 100%;
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user