mirror of
https://git.coop/cotech/website.git
synced 2025-06-26 16:40:52 +00:00
Layout improvements on mobile
I've hidden the metadata and reduced some whitespace to make things look a little better on small screens.
This commit is contained in:
@ -118,7 +118,7 @@ section.content h2 {
|
|||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: var(--space-xxl);
|
padding: var(--space-lg) var(--space-sm);
|
||||||
background-image: url(/assets/img/banner-collage.jpg);
|
background-image: url(/assets/img/banner-collage.jpg);
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -130,6 +130,12 @@ section.content h2 {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (width >= 480px) {
|
||||||
|
.hero {
|
||||||
|
padding: var(--space-xxl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.hero_body {
|
.hero_body {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -155,7 +161,7 @@ section.content h2 {
|
|||||||
|
|
||||||
.slice {
|
.slice {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: var(--space-lg);
|
padding: var(--space-sm);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -163,6 +169,12 @@ section.content h2 {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (width >= 480px) {
|
||||||
|
.slice {
|
||||||
|
padding: var(--space-lg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.slice--light-grey {
|
.slice--light-grey {
|
||||||
background-color: var(--cotech-light-grey);
|
background-color: var(--cotech-light-grey);
|
||||||
}
|
}
|
||||||
@ -217,8 +229,14 @@ section.content h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.metadata {
|
.metadata {
|
||||||
display: flex;
|
display: none;
|
||||||
gap: var(--space-xl);
|
}
|
||||||
|
|
||||||
|
@media screen and (width >= 480px) {
|
||||||
|
.metadata {
|
||||||
|
display: flex;
|
||||||
|
gap: var(--space-xl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.metadata_item {
|
.metadata_item {
|
||||||
|
Reference in New Issue
Block a user