mirror of
https://codeberg.org/vegvisir/website.git
synced 2025-09-14 00:43:42 +02:00
Brand new design for the website following the new design language I used for [version 2.0 of my personal website](https://codeberg.org/vlw/vlw.se/releases/tag/2.0.0). Reviewed-on: https://codeberg.org/vegvisir/website/pulls/2 Co-authored-by: vlw <victor@vlw.se> Co-committed-by: vlw <victor@vlw.se>
71 lines
No EOL
1 KiB
CSS
71 lines
No EOL
1 KiB
CSS
/* # Split */
|
|
|
|
section.split {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
margin: 10svh 0;
|
|
}
|
|
|
|
section.split.center {
|
|
justify-items: center;
|
|
}
|
|
|
|
section.split > div {
|
|
grid-row: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
section.split.reverse > div:last-child {
|
|
grid-column: 1;
|
|
}
|
|
|
|
section.split.reverse > div:first-child {
|
|
grid-column: 2;
|
|
}
|
|
|
|
/* ## Text */
|
|
|
|
section.split .text {
|
|
width: 70%;
|
|
display: flex;
|
|
align-items: baseline;
|
|
flex-direction: column;
|
|
}
|
|
|
|
section.split.reverse .text {
|
|
align-items: end;
|
|
justify-self: end;
|
|
text-align: right;
|
|
}
|
|
|
|
/* ## Buttons */
|
|
|
|
section.split .buttons {
|
|
display: flex;
|
|
gap: var(--padding);
|
|
margin-top: var(--padding);
|
|
}
|
|
|
|
/* # Size queries */
|
|
|
|
@media (max-width: 950px) {
|
|
section.split {
|
|
display: flex;
|
|
margin: 5svh 0;
|
|
gap: var(--padding);
|
|
flex-direction: column;
|
|
}
|
|
|
|
section.split .text {
|
|
width: 100%;
|
|
}
|
|
|
|
section.split .buttons {
|
|
width: 100%;
|
|
flex-direction: column;
|
|
gap: calc(var(--padding) / 2);
|
|
}
|
|
} |