pages/css/style.css
2024-01-12 22:20:27 +01:00

176 lines
3.2 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Space+Mono:ital@0;1&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
height: 100%;
}
body {
font-family: "Rethink Sans", sans-serif;
display: flex;
flex-direction: column;
height: 100%;
}
a {
background: linear-gradient(337deg, #A855F7 -34.74%, #3B0764 162.02%);
background-clip: text;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
header {
margin: 0 0 2rem;
background: linear-gradient(337deg, #A855F7 -34.74%, #3B0764 162.02%), #D9D9D9;
color: #fff;
height: 30vh;
}
header > div {
max-width: 1100px;
margin: 0 auto;
padding: 1rem 0;
height: 100%;
display: flex;
flex-direction: column;
justify-content: end;
}
header > div .title {
display: flex;
align-items: center;
gap: 1rem;
}
main {
display: flex;
flex-direction: column;
flex: 1;
max-width: 1100px;
margin: 0 auto 2rem;
gap: 2rem;
}
main h2 {
margin-bottom: 1rem;
line-height: 1.5rem;
}
main p {
margin-bottom: 0.5rem;
line-height: 1.5rem;
}
main code, main kbd {
background-color: #f3f3f3;
padding: 0.1rem 0.3rem;
border-radius: 4px;
border: 1px solid #ccc;
font-family: monospace;
}
footer {
background-color: #f3f3f3;
}
footer .footerInner {
display: flex;
justify-content: space-between;
align-items: start;
padding: 16px 0;
max-width: 1100px;
margin: 0 auto;
}
footer .footerInner > .footerText {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
footer .footerInner > .footerLinks {
display: flex;
justify-content: space-between;
align-items: start;
gap: 2rem;
}
footer .footerInner > .footerLinks > div {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
footer .footerInner > .footerLinks > div > ul {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
footer .footerInner > .footerLinks > div > ul > li {
list-style: none;
}
footer .footerInner > .footerLinks > div > ul > li > a {
text-decoration: none;
color: #000;
font-size: 0.9rem;
}
footer .footerInner > .footerLinks > div > label {
text-transform: uppercase;
font-weight: 700;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}
.cards > .card {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem;
border-radius: 4px;
border: 1px solid #ccc;
}
.cards > .card > .cardTitle {
font-size: 1.2rem;
}
.cards > .card > .cardDescription {
font-size: 0.9rem;
}
.cards > .card > .cardLink {
text-decoration: none;
color: #000;
font-size: 0.9rem;
}
@media (max-width: 768px) {
header {
padding: 2rem 1rem;
}
header > div .title {
flex-direction: column;
text-align: center;
}
main {
margin: 0 1rem 2rem;
}
.cards {
grid-template-columns: 1fr;
}
footer .footerInner {
padding: 1rem;
flex-direction: column;
justify-content: center;
text-align: center;
gap: 1rem;
}
footer .footerInner > div {
width: 100%;
}
footer .footerInner > .footerLinks {
width: 100%;
justify-content: center;
align-items: center;
gap: 3rem;
}
}
/*# sourceMappingURL=style.css.map */