blog/static/blog.css

144 lines
1.8 KiB
CSS

:root
{
--bg: #1d1f21;
--bg-code: #10111280;
--bg-hover: #282a2e;
--sel: #373b41;
--bg-admonition: #1d1d1d;
--fg: LightGray;
--fg-dim: Gray;
--link: SkyBlue;
--link-hover: MediumAquamarine;
--link-visited: Plum;
--font-serif: "Source Serif Pro", serif;
--font-sans-serif: "Source Sans Pro", sans-serif;
--font-mono: "Source Code Pro", monospace;
}
html
{
background-color: var(--bg);
color: var(--fg);
font-family: var(--font-serif)
}
body
{
margin-top: 0.5em;
margin-bottom: 0.5em;
}
a
{
color: var(--link);
}
a:visited
{
color: var(--link-visited);
}
a:hover, a:hover:visited
{
color: var(--link-hover);
}
hr
{
border-style: dashed;
}
.header, .nav ul, .pagination ul, h1, h2, h3, h4, h5, h6
{
font-family: var(--font-sans-serif);
}
.header a, .nav a
{
padding: 0.2em 0.4em;
text-decoration: none;
color: var(--fg);
}
.header a
{
font-family: var(--font-serif);
text-transform: uppercase;
}
.header a:hover, .nav a:hover
{
background-color: var(--bg-hover);
}
.header .description::before
{
content: "";
}
.description
{
float: right;
color: var(--fg-dim);
}
.nav-top
{
text-align: center;
padding-bottom: 0.5em;
border-bottom: 1px solid;
}
.nav-bottom
{
text-align: center;
padding-top: 0.5em;
border-top: 1px solid;
}
code, kbd, pre, samp
{
font-family: var(--font-mono);
}
p > code, td > code
{
background-color: var(--bg-code);
}
div.admonitionblock td.icon
{
border-color: var(--bg-hover);
}
div.admonitionblock table
{
background-color: var(--bg-admonition);
}
div.note td.icon
{
color: LimeGreen;
}
div.tip td.icon
{
color: CornflowerBlue;
}
div.important td.icon
{
color: Gold;
}
div.caution td.icon
{
color: Orange;
}
div.warning td.icon
{
color: OrangeRed;
}