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

181 lines
3.7 KiB
CSS
Raw Normal View History

2023-10-27 01:15:29 +00:00
:root {
--color-background: #ffffff;
--color-foreground: #000000;
--color-accent: initial;
2023-11-16 14:33:58 +00:00
--color-canvas-gray: #7E7E7E;
--color-canvas-red: #FB464C;
--color-canvas-orange: #E9973F;
--color-canvas-yellow: #E0DE71;
--color-canvas-green: #44CF6E;
--color-canvas-blue: #53DFDD;
--color-canvas-purple: #A882FF;
--color-canvas: var(--color-canvas-gray);
--color-callout-gray: #9e9e9e;
--color-callout-red: #e93147;
--color-callout-orange: #ec7500;
--color-callout-yellow: #e0ac00;
--color-callout-green: #08b94e;
--color-callout-cyan: #00bfbc;
--color-callout-blue: #086ddd;
--color-callout-purple: #7852ee;
--color-callout-pink: #d53984;
--color-callout: var(--color-callout-gray);
2023-10-27 01:15:29 +00:00
2023-10-30 04:08:57 +00:00
--margins: 0;
2023-10-27 01:15:29 +00:00
--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 {
2023-11-16 14:33:58 +00:00
stroke: var(--color-canvas);
2023-10-27 01:15:29 +00:00
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
}
2023-11-16 14:33:58 +00:00
.callout {
}
.callout-abstract, .callout-summary, .callout-tldr {
--color-callout: var(--color-callout-cyan);
}
.callout-info {
--color-callout: var(--color-callout-blue);
}
.callout-todo {
--color-callout: var(--color-callout-blue)
}
.callout-tip, .callout-hint, .callout-important {
--color-callout: var(--color-callout-cyan);
}
.callout-success, .callout-check, .callout-done {
--color-callout: var(--color-callout-green);
}
.callout-question, .callout-help, .callout-faq {
--color-callout: var(--color-callout-orange);
}
.callout-warning, .callout-caution, .callout-attention {
--color-callout: var(--color-callout-orange);
}
.callout-failure, .callout-fail, .callout-mission {
--color-callout: var(--color-callout-red);
}
.callout-danger, .callout-error {
--color-callout: var(--color-callout-red);
}
.callout-bug {
--color-callout: var(--color-callout-red);
}
.callout-example {
--color-callout: var(--color-callout-purple);
}
.callout-quote, .callout-cite {
--color-callout: var(--color-callout-gray);
}