blog.ari.lt/content/styles.css
Ari Archer 009b27e4d5
update @ Tue 20 Sep 01:20:12 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-09-20 01:20:12 +03:00

148 lines
2.4 KiB
CSS

@import url("https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.min.css");
:root {
color-scheme: dark;
--clr-bg: #262220;
--clr-fg: #f9f6e8;
--clr-code-bg: #1f1b1a;
--clr-code-fg: #f0f3e6;
}
*,
*::before,
*::after {
background-color: var(--clr-bg);
color: var(--clr-fg);
font-family: Hack, hack, monospace;
scrollbar-width: none;
-ms-overflow-style: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
/*
* Removed because users asked to to:
* word-break: break-all;
* */
scroll-behavior: smooth;
}
::-webkit-scrollbar {
display: none;
}
/*
* Disabled because I want code blocks to scroll
*
code,
code *,
pre,
pre * {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
}
*
*/
body {
margin: auto;
padding: 2rem;
max-width: 1100px;
min-height: 100vh;
text-rendering: optimizeSpeed;
}
h1 {
text-align: center;
margin: 1em;
font-size: 2em;
}
li {
margin: 0.5em;
}
a {
text-decoration: none;
text-shadow: 0px 0px 6px white;
}
pre,
pre * {
background-color: var(--clr-code-bg);
}
pre,
pre *,
code {
color: var(--clr-code-fg);
}
pre,
pre code {
overflow-y: scroll !important;
scrollbar-width: initial;
-ms-overflow-style: initial;
}
pre {
padding: 1em;
border-radius: 4px;
}
code:not(pre code) {
background-color: var(--clr-code-bg);
border-radius: 2px;
padding: 0.2em;
}
#info-bar {
text-align: center;
}
#blog-content {
padding: 0.3em;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
-webkit-animation-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
-webkit-animation-iteration-count: 1 !important;
animation-iteration-count: 1 !important;
-webkit-transition-duration: 0.01ms !important;
-o-transition-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
@media (prefers-contrast: more) {
:root {
--clr-bg: black;
--clr-fg: white;
--clr-code-bg: #181818;
--clr-code-fg: whitesmoke;
}
a {
text-shadow: none;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
}