mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
106 lines
2.1 KiB
CSS
106 lines
2.1 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--spacing: 24px;
|
|
--theme: #242424;
|
|
--background-color: #f8f8f8;
|
|
--surface-color: #fff;
|
|
--surface-secondary-color: #ededed;
|
|
|
|
--input-background-color: #fff;
|
|
--input-color: #24292e;
|
|
--backdrop-color: rgba(247, 247, 247, .54);
|
|
--shadow-color: rgba(0, 0, 0, .12);
|
|
--font-color: rgba(0, 0, 0, .87);
|
|
--font-color-contrast: rgba(255, 255, 255, 1);
|
|
--font-color-secondary: rgba(0, 0, 0, .6);
|
|
--font-family-base: Roboto, sans-serif;
|
|
--font-family-heading: "Sen", Roboto, sans-serif;
|
|
--border-radius: 8px;
|
|
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
color-scheme: dark;
|
|
--theme: #eee;
|
|
--background-color: #141414;
|
|
--backdrop-color: rgba(20, 20, 20, .54);
|
|
--shadow-color: rgba(255, 255, 255, .12);
|
|
--surface-color: #242424;
|
|
--surface-secondary-color: #222222;
|
|
|
|
--input-background-color: #161616;
|
|
--input-color: #d8d8d8;
|
|
--font-color: rgba(255, 255, 255, .87);
|
|
--font-color-contrast: rgba(0, 0, 0, .87);
|
|
--font-color-secondary: rgba(255, 255, 255, .6)
|
|
}
|
|
}
|
|
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
break-after: avoid-page;
|
|
}
|
|
|
|
img,
|
|
svg,
|
|
table,
|
|
canvas {
|
|
break-inside: avoid;
|
|
}
|
|
|
|
@media print {
|
|
a::after {
|
|
content: " (" attr(href) ")";
|
|
}
|
|
}
|
|
|
|
html {
|
|
font-family: var(--font-family-base);
|
|
background-color: var(--background-color);
|
|
color: var(--font-color);
|
|
font-size: 16px;
|
|
line-height: 1.5
|
|
}
|
|
|
|
body {
|
|
padding: 0;
|
|
margin: 0
|
|
}
|
|
|
|
iframe,
|
|
img,
|
|
svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.main {
|
|
max-width: 1056px;
|
|
margin: 0 auto;
|
|
padding: 0 var(--spacing);
|
|
--edge-border-radius: var(--border-radius);
|
|
}
|
|
|
|
@media screen and (max-width: 320px) {
|
|
.main {
|
|
padding: 0 0;
|
|
--edge-border-radius: 0;
|
|
}
|
|
}
|
|
|
|
|
|
.card {
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow);
|
|
background-color: var(--surface-color);
|
|
}
|
|
|
|
|
|
.edge {
|
|
border-radius: var(--edge-border-radius);
|
|
} |