pages/css/style.scss
2024-01-13 14:33:06 +01:00

328 lines
4.2 KiB
SCSS

@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;
}
::selection {
background: rgba(#3B0764, 0.7);
color: #fff; /* Set the text color within the selection */
}
html {
height: 100%;
}
body {
font-family: 'Rethink Sans', sans-serif;
display: flex;
flex-direction: column;
height: 100%;
}
a {
color: #A855F7;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
header {
margin: 0 0 2rem;
background: linear-gradient(337deg, #A855F7 -34.74%, #3B0764 162.02%), #D9D9D9;
color: #fff;
min-height: 30vh;
> div {
max-width: 1100px;
margin: 0 auto;
padding: 1rem 0;
height: 100%;
display: flex;
flex-direction: column;
justify-content: end;
.title {
display: flex;
align-items: center;
gap: 1rem;
}
}
}
main {
display: flex;
flex-direction: column;
flex: 1;
max-width: 1100px;
width: 100%;
margin: 0 auto 2rem;
gap: 2rem;
h2 {
margin-bottom: 1rem;
line-height: 1.5rem;
}
h3 {
margin-bottom: 0.5rem;
line-height: 1.5rem;
}
ol {
margin-bottom: 1rem;
line-height: 1.5rem;
list-style: lower-alpha inside;
> li {
margin-bottom: 0.1rem;
}
}
ul {
margin-bottom: 1rem;
line-height: 1.5rem;
list-style: disc inside;
> li {
margin-bottom: 0.1rem;
}
}
p {
margin-bottom: 0.5rem;
line-height: 1.5rem;
}
code, kbd {
background-color: #f3f3f3;
padding: 0.1rem 0.3rem;
border-radius: 4px;
border: 1px solid #ccc;
font-family: monospace;
}
}
footer {
background-color: #f3f3f3;
.footerInner {
display: flex;
justify-content: space-between;
align-items: start;
padding: 16px 0;
max-width: 1100px;
margin: 0 auto;
> .footerText {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
> .footerLinks {
display: flex;
justify-content: space-between;
align-items: start;
gap: 2rem;
> div {
display: flex;
flex-direction: column;
gap: 0.5rem;
> ul {
display: flex;
flex-direction: column;
gap: 0.3rem;
> li {
list-style: none;
> a {
text-decoration: none;
color: #000;
font-size: 0.9rem;
}
}
}
> label {
text-transform: uppercase;
font-variant: small-caps;
font-weight: 700;
}
}
}
}
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
> .card {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem;
border-radius: 4px;
border: 1px solid #ccc;
> .cardTitle {
font-size: 1.2rem;
}
> .cardDescription {
font-size: 0.9rem;
}
> .cardLink {
text-decoration: none;
color: #000;
font-size: 0.9rem;
}
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #fff;
}
.card {
border-color: #555 !important;
}
code, kbd {
background-color: #222 !important;
border-color: #555 !important;
}
footer {
background-color: #222 !important;
.footerInner > .footerLinks {
> div {
> ul {
> li {
> a {
color: #fff !important;
}
}
}
}
}
}
}
@media (max-width: 768px) {
header {
padding: 2rem 1rem;
> div {
.title {
flex-direction: column;
text-align: center;
}
}
}
main {
margin: 0 1rem 2rem;
width: calc(100% - 2rem);
}
.cards {
grid-template-columns: 1fr;
}
footer {
.footerInner {
padding: 1rem;
flex-direction: column;
justify-content: center;
text-align: center;
gap: 1rem;
> div {
width: 100%;
}
> .footerLinks {
width: 100%;
justify-content: center;
align-items: center;
gap: 3rem;
}
}
}
}