blob: f6fa0abed49c0e8440be34f57bc60a9777bede61 [file] [log] [blame]
$code: #f2f4f4;
$bg: #1d1F21;
$fg: #abb2bf;
$black: #1e2127;
$red: #e06c75;
$green: #a0ea98;
$yellow: #d1ed8b;
$blue: #81A1C1;
$magenta: #cb80ce;
$cyan: #87dfe5;
$white: #abb2bf;
@import url('https://rsms.me/inter/inter.css');
html
{
font-family: 'Inter', sans-serif;
}
@supports (font-variation-settings: normal)
{
html
{
font-family: 'Inter var', sans-serif;
}
}
body
{
display: grid;
place-items: center center
}
h4 code
{
font-size: 1.5em;
}
code
{
background: $code;
border-radius: 5px;
padding: 3px 5px 3px 5px;
}
a,
a:visited
{
color: #0242f2;
text-decoration: underline;
&:hover
{
color: #0056b3;
text-decoration: none;
}
}
.container
{
width: 60em;
}
.nav
{
font-size: 1.5rem;
display: flex;
flex-direction: row;
.wide
{
flex: 1;
font-weight: bold;
}
}
.split
{
display: grid;
grid-template-columns: 16em auto;
.sidebar
{
margin-right: 1em;
}
}
video
{
width: 100%;
}
@media screen and (max-width: 58em)
{
.split
{
display: flex;
flex-direction: column;
.sidebar
{
margin-right: none;
}
}
.container
{
width: calc(100% - 2em);
margin: 1em;
}
}
.hljs
{
display: block;
overflow-x: auto;
background: $code;
padding: 1em;
color: $black;
font-size: 1rem;
font-family: monospace;
font-variant-ligatures: normal;
font-weight: 500;
}
.hljs-comment, .hljs-quote
{
font-style: italic;
color: $green;
}
.hljs-name, .hljs-selector-id, .hljs-selector-class, .hljs-regexp, .hljs-deletion
{
font-weight: 500;
}
.hljs-variable, .hljs-template-variable, .hljs-tag
{
font-weight: 600;
}
.hljs-number, .hljs-builtin-name, .hljs-literal, .hljs-type, .hljs-params, .hljs-link
{
font-weight: 400;
font-style: italic;
}
.hljs-attribute
{
font-weight: 700;
}
.hljs-string, .hljs-symbol, .hljs-bullet, .hljs-addition
{
font-style: italic;
color: $red;
}
.hljs-title, .hljs-section
{
font-style: underline;
color: $blue;
}
.hljs-keyword, .hljs-built_in, .hljs-selector-tag
{
color: $blue;
font-weight: bold;
}
.hljs-emphasis
{
font-weight: 700;
}
.hljs-strong
{
font-weight: 700;
opacity: 1;
}