1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-11-29 11:34:24 +00:00
glassflame/style/base.css

118 lines
2.2 KiB
CSS
Raw Normal View History

2023-10-27 01:15:29 +00:00
:root {
--color-background: #ffffff;
--color-foreground: #000000;
--color-accent: initial;
--color-gray: #7E7E7E;
--color-red: #FB464C;
--color-orange: #E9973F;
--color-yellow: #E0DE71;
--color-green: #44CF6E;
--color-blue: #53DFDD;
--color-purple: #A882FF;
2023-10-30 04:08:57 +00:00
--margins: 0;
2023-10-27 01:15:29 +00:00
--color-node: var(--color-gray);
--node-group-border-width: 2px;
--node-file-border-width: 2px;
2023-10-27 08:22:19 +00:00
--edge-width: 2px;
--font-text: sans-serif;
--font-mono: monospace;
2023-11-06 15:48:20 +00:00
--math-border-width: 1px;
2023-11-06 16:59:22 +00:00
--blockquote-border-width: 2px;
2023-10-27 01:15:29 +00:00
}
2023-10-30 04:08:57 +00:00
@media screen {
:root {
--margins: 32px;
}
}
@media screen and (min-width: 768px) {
:root {
--margins: 64px;
}
}
2023-10-27 01:15:29 +00:00
body {
margin: 0;
width: max-content;
2023-10-27 08:22:19 +00:00
min-width: 100svw;
2023-10-27 01:15:29 +00:00
height: max-content;
background-color: var(--color-background);
color: var(--color-foreground);
}
2023-10-27 08:22:19 +00:00
body > h1 {
2023-10-30 04:11:50 +00:00
margin-left: var(--margins);
margin-right: var(--margins);
2023-10-27 08:22:19 +00:00
font-size: 4em;
}
* {
font-family: var(--font-text);
}
code {
font-family: var(--font-mono);
}
2023-10-27 01:15:29 +00:00
a {
color: var(--color-accent);
}
svg line {
stroke: var(--color-node);
stroke-width: var(--edge-width);
}
2023-11-06 15:48:20 +00:00
2023-11-06 16:59:22 +00:00
blockquote {
border-left: var(--blockquote-border-width) solid var(--color-accent);
margin-block-start: 0;
margin-block-end: 0;
margin-inline-start: 0;
margin-inline-end: 0;
padding-left: 1.5ex;
}
2023-11-06 15:48:20 +00:00
.math {
overflow-x: auto;
2023-11-06 15:51:56 +00:00
overflow-y: hidden;
2023-11-06 15:48:20 +00:00
}
.math-inline {
}
.math-block {
margin: 1em 0;
text-align: center;
}
2023-11-06 17:00:23 +00:00
a, .wikilink {
color: color-mix(in srgb, var(--color-accent) 50%, transparent);
text-decoration: underline 1px dashed color-mix(in srgb, var(--color-accent) 50%, transparent);
}
2023-11-06 17:00:23 +00:00
a[href], .wikilink[href] {
color: var(--color-accent);
text-decoration: underline 1px solid var(--color-accent);
cursor: pointer;
}
2023-11-06 17:00:23 +00:00
a[href]:hover, .wikilink[href]:hover {
color: color-mix(in srgb, var(--color-accent) 50%, var(--color-foreground));
text-decoration: underline 1px solid color-mix(in srgb, var(--color-accent) 50%, var(--color-foreground));
}
h1 a, .wikilink.wikilink-heading {
color: var(--color-foreground);
}
h1 a:hover, .wikilink.wikilink-heading:hover {
color: var(--color-foreground);
2023-11-06 17:00:23 +00:00
}