111 lines
3.0 KiB
CSS
111 lines
3.0 KiB
CSS
/* Default fonts */
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 900;
|
|
src: url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
|
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 800;
|
|
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
|
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono Italic";
|
|
font-style: italic;
|
|
font-display: swap;
|
|
font-weight: 100 800;
|
|
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/latin-wght-italic.woff2) format('woff2-variations');
|
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
}
|
|
|
|
/* Styling */
|
|
*, *:before, *:after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
color: white;
|
|
background-color: #202030;
|
|
width: auto;
|
|
height: 100%;
|
|
font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
}
|
|
|
|
/* Inline verbatim `` */
|
|
code {
|
|
font-family: "JetBrains Mono", monospace;
|
|
background-color: #303040;
|
|
border-radius: 6px;
|
|
padding: 0px 4px;
|
|
}
|
|
|
|
/* PrismJS specific css */
|
|
pre[class*="language-"],
|
|
code[class*="language-"] {
|
|
text-shadow: unset !important;
|
|
font-family: "JetBrains Mono", monospace !important;
|
|
}
|
|
|
|
/* PrismJS line-numbers plugin */
|
|
pre[class*="language-"].line-numbers {
|
|
position: relative;
|
|
padding-left: 3.4em;
|
|
counter-reset: linenumber;
|
|
}
|
|
|
|
pre[class*="language-"].line-numbers > code {
|
|
position: relative;
|
|
white-space: inherit;
|
|
}
|
|
|
|
.line-numbers .line-numbers-rows {
|
|
position: absolute;
|
|
pointer-events: none;
|
|
top: 0;
|
|
font-size: 100%;
|
|
left: -3.8em;
|
|
width: 3em; /* works for line-numbers below 1000 lines */
|
|
/* letter-spacing: -1px; */
|
|
border-right: 1px solid #999;
|
|
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.line-numbers-rows > span {
|
|
display: block;
|
|
counter-increment: linenumber;
|
|
}
|
|
|
|
.line-numbers-rows > span:before {
|
|
content: counter(linenumber);
|
|
color: #999;
|
|
display: block;
|
|
padding-right: 0.8em;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Norgolith landing page styling */
|
|
#desc > a,
|
|
#discord-link > a,
|
|
#github-pages > a,
|
|
#github-issues > a {
|
|
color: var(--color-blue-400);
|
|
}
|
|
#desc > a:hover,
|
|
#discord-link > a:hover,
|
|
#github-pages > a:hover,
|
|
#github-issues > a:hover {
|
|
text-decoration: underline;
|
|
}
|