webbed-site/themes/webbed-theme/assets/css/main.css

213 lines
3.4 KiB
CSS

:root {
color-scheme: light dark;
--wallpaper-background: light-dark(rgba(245, 245, 245, 0.90), rgba(17, 17, 27, 0.90))
}
html, body {
width: 100%;
margin: 0;
}
body {
font-family: "Space Grotesk", sans-serif;
font-weight: 500;
font-size: 20px;
color: light-dark(#4c4f69, #cdd6f4);
background-color: light-dark(#f5f5f7, #11111b);
line-height: 1.5;
}
header {
width: 100%;
display: flex;
justify-content: start;
position: fixed;
}
nav {
/* border: 1px solid #f1f1f110; */
/* border-radius: 0.5rem 0.5rem 0 0; */
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
border: 1px solid light-dark(#bcc0cc60, #31324460);
background-color: light-dark(#ebebef60, #1A1A2960);
backdrop-filter: blur(5px);
top: 0;
left: 0;
padding: 0.40rem 1.20rem;
margin: 0.50rem;
height: 2rem;
gap: 1.75rem;
border-radius: 0.75rem;
user-select: none;
}
nav > div {
display: flex;
flex-direction: row;
gap: 1.75rem
}
nav > div > a {
display: block;
text-decoration: none;
color: light-dark(#4c4f69, #cdd6f4);
}
section.buttons-wrapper {
display: flex;
flex-direction: column;
align-items: center;
background-color: light-dark(#ebebef, #1A1A29);
width: auto;
max-width: 100%;
margin: 0;
}
section.highlighted {
background-color: light-dark(#ebebef, #181825);
}
section.full-height {
min-height: calc(100vh - 4rem);
}
section {
border-bottom: 1px solid light-dark(#bcc0cc, #313244);
padding-left: 2.5rem;
padding-right: 2.5rem;
padding-top: 1rem;
padding-bottom: 1rem;
}
section > p {
max-width: 60ch;
}
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 {
display: flex;
flex-direction: column;
}
main > :first-child {
padding-top: 4rem;
}
main > :first-child.highlighted {
text-align: center;
}
main > :first-child.highlighted > p {
max-width: 100%;
}
footer {
text-align: center;
padding: 1rem;
}
.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 {
width: 100%;
border: 1px solid light-dark(#bcc0cc, #313244);
border-radius: 0.75rem;
}
th, td {
padding: 0.25rem;
padding-left: 0.5rem;
padding-right: 0.5rem
}
th {
background-color: light-dark(#ebebef, #1A1A29);
}
code {
color: light-dark(#dc8a78, #f5e0dc);
font-family: 'Cascadia Code', monospace;
}
blockquote {
color: light-dark(#6c6f85, #a6adc8);
border-left: 5px solid light-dark(#6c6f85, #a6adc8);
margin-left: 0;
padding-left: 2rem;
max-width: calc(95ch - 2rem);
}
li {
margin-bottom: 0.25rem
}
.emoji {
position: relative;
top: 0.25rem;
height: 2rem;
}
.wallpaper {
background: linear-gradient(var(--wallpaper-background), var(--wallpaper-background)), url('/wallpaper.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
.post-title {
font-size: 1.5rem;
text-decoration: none;
margin-right: 1rem;
}
.tag {
text-decoration: none;
}