webbed-site/themes/webbed-theme/assets/css/main.css
2026-02-15 20:59:59 +01:00

181 lines
2.8 KiB
CSS

:root {
color-scheme: light dark;
}
html, body {
width: 100%;
margin: 0;
}
body {
font-family: "Cascadia Code", sans-serif;
font-weight: 500;
font-size: 16px;
color: light-dark(#4c4f69, #cdd6f4);
background-color: light-dark(#dce0e8, #11111b);
line-height: 1.5;
display: flex;
flex-direction: column;
}
nav {
/* border: 1px solid #f1f1f110; */
/* border-radius: 0.5rem 0.5rem 0 0; */
display: flex;
flex-direction: row;
justify-content: start;
align-items: center;
border-bottom: 3px dashed light-dark(#bcc0cc, #313244);
background-color: light-dark(#dce0e8, #11111b);
position: fixed;
top: 0;
left: 0;
padding-left: 1.75rem;
padding-right: 1.75rem;
padding-top: 0.40rem;
padding-bottom: 0.40rem;
width: 100%;
height: 2rem;
gap: 1.75rem
}
nav > a {
display: block;
text-decoration: none;
}
main {
display: flex;
flex-direction: row;
}
section.buttons-wrapper {
display: flex;
flex-direction: column;
align-items: center;
background-color: light-dark(#ccd0da, #181825);
max-width: 100%
}
section.highlighted {
background-color: light-dark(#ccd0da, #181825);
}
section {
border-bottom: 3px dashed light-dark(#bcc0cc, #313244);
padding-left: 2.5rem;
padding-right: 2.5rem;
padding-top: 1rem;
padding-bottom: 1rem;
}
section > p {
max-width: 95ch;
}
section > div.buttons {
width: 100%
}
.buttons > p {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(88px, 20%));
justify-content: start;
gap: 0;
}
.buttons > p > img,
.buttons > p > a > img {
width: 100%;
height: auto;
image-rendering: pixelated;
display: block;
}
main {
margin-top: 2.8rem;
/* border-radius: 0 0 0.5rem 0.5rem; */
flex-grow: 1;
display: flex;
flex-direction: column;
}
footer {
width: 100%;
display: flex;
justify-content: center;
}
.summary, .date {
color: light-dark(#6c6f85, #a6adc8)
}
a {
color: light-dark(#1e66f5, #89b4fa);
text-decoration: underline;
text-decoration-style: dashed;
}
i, em {
color: light-dark(#ea76cb, #f5c2e7)
}
b, strong {
color: light-dark(#179299, #94e2d5)
}
s, del {
color: light-dark(#d20f39, #f38ba8)
}
small {
color: light-dark(#6c6f85, #a6adc8)
}
table {
border-collapse: collapse;
width: 100%
}
table, th, td {
border: 3px dashed light-dark(#bcc0cc, #313244);
}
th, td {
padding: 0.25rem;
padding-left: 0.5rem;
padding-right: 0.5rem
}
th {
background-color: light-dark(#bcc0cc, #313244);
}
code {
font-family: "JetBrains Mono", monospace;
color: light-dark(#dc8a78, #f5e0dc)
}
blockquote {
color: light-dark(#6c6f85, #a6adc8);
border-left: 3px dashed light-dark(#bcc0cc, #313244);
margin-left: 0;
padding-left: 2rem;
max-width: calc(95ch - 2rem);
}
li {
margin-bottom: 0.25rem
}
.emoji {
position: relative;
top: 0.25rem;
height: 2rem;
}