mirror of
https://gitlab.wasp.best/sel/web.git
synced 2026-09-13 10:30:17 +02:00
270 lines
4.9 KiB
CSS
270 lines
4.9 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
|
|
|
|
:root {
|
|
color-scheme: light dark;
|
|
--dark-text: #eee8ea;
|
|
--dark-background: #171113;
|
|
--dark-primary: #bfabb3;
|
|
--dark-secondary: #1c1516;
|
|
|
|
--light-text: #171113;
|
|
--light-background: #eee8ea;
|
|
--light-primary: #544048;
|
|
--light-secondary: #ebe4e6;
|
|
|
|
--wallpaper-background: light-dark(rgba(238, 232, 234, 0.90), rgba(23, 17, 19, 0.90))
|
|
}
|
|
|
|
html, body {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: "DM Sans", sans-serif;
|
|
font-weight: 500;
|
|
font-size: 20px;
|
|
|
|
color: light-dark(var(--light-text), var(--dark-text));
|
|
background-color: light-dark(var(--light-background), var(--dark-background));
|
|
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(var(#ebe4e680), var(#1c151680));
|
|
background-color: light-dark(var(#eee8ea80), var(#17111380));
|
|
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(var(--light-text), var(--dark-text));
|
|
}
|
|
|
|
section.buttons-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
background-color: light-dark(var(--light-secondary), var(--dark-secondary));
|
|
width: auto;
|
|
max-width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
section.highlighted {
|
|
background-color: light-dark(var(--light-secondary), var(--dark-secondary));
|
|
}
|
|
|
|
section.full-height {
|
|
min-height: calc(100vh - 4rem);
|
|
padding-top: 3rem;
|
|
padding-bottom: 3rem;
|
|
}
|
|
|
|
section.full-height > p {
|
|
max-width: 60ch;
|
|
}
|
|
|
|
section {
|
|
border-bottom: 2px solid light-dark(var(--light-secondary), var(--dark-secondary));
|
|
|
|
|
|
padding-left: 2.5rem;
|
|
padding-right: 2.5rem;
|
|
padding-top: 1rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.content-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.content {
|
|
max-width: 60ch;
|
|
border-bottom: none;
|
|
overflow-x: scroll;
|
|
height: fit-content;
|
|
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.content::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
section > div.buttons {
|
|
width: 100%
|
|
}
|
|
|
|
.buttons > p {
|
|
display: grid;
|
|
justify-content: center;
|
|
grid-template-columns: repeat(auto-fill, minmax(clamp(176px, 20vw, 440px), 1fr));
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.buttons img {
|
|
width: 100%;
|
|
height: clamp(88px, auto, 440px);
|
|
image-rendering: pixelated;
|
|
object-fit: cover;
|
|
display: block;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
main > :first-child {
|
|
padding-top: 4rem;
|
|
}
|
|
|
|
main > :first-child.highlighted > p {
|
|
max-width: 100%;
|
|
}
|
|
|
|
footer {
|
|
padding: 1rem;
|
|
}
|
|
|
|
footer > a {
|
|
color: light-dark(var(--light-text), var(--dark-text));
|
|
text-decoration: none;
|
|
}
|
|
|
|
.summary, .date {
|
|
color: light-dark(var(--light-primary), var(--dark-primary));
|
|
}
|
|
|
|
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(var(--light-primary), var(--dark-primary));
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border: 1px solid light-dark(var(--light-secondary), var(--dark-secondary));
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
th, td {
|
|
padding: 0.25rem;
|
|
padding-left: 0.5rem;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
th {
|
|
background-color: light-dark(var(--light-secondary), var(--dark-secondary));
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
code {
|
|
color: light-dark(#dc8a78, #f5e0dc);
|
|
font-family: 'Cascadia Code', monospace;
|
|
}
|
|
|
|
blockquote {
|
|
color: light-dark(var(--light-primary), var(--dark-primary));
|
|
border-left: 5px solid light-dark(var(--light-secondary), var(--dark-secondary));
|
|
border-radius: 0.25rem;
|
|
margin-left: 0;
|
|
padding-left: 2rem;
|
|
max-width: calc(95ch - 2rem);
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 0.25rem
|
|
}
|
|
|
|
.emoji {
|
|
position: relative;
|
|
top: 0.25rem;
|
|
height: 2rem;
|
|
}
|
|
|
|
.detailed {
|
|
text-decoration: underline;
|
|
text-decoration-color: light-dark(var(--light-primary), var(--dark-primary));
|
|
}
|
|
|
|
.wallpaper {
|
|
background: linear-gradient(var(--wallpaper-background), var(--wallpaper-background)), url('/wallpaper-3.gifv');
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: bottom;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.post-title {
|
|
color: light-dark(var(--light-text), var(--dark-text));
|
|
font-size: 1.5rem;
|
|
text-decoration: none;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.tag {
|
|
text-decoration: none;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
summary {
|
|
font-size: 1.5rem;
|
|
}
|