282 lines
5.1 KiB
CSS
282 lines
5.1 KiB
CSS
/*@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');*/
|
|
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
|
|
|
|
:root {
|
|
/*
|
|
--bg0: #282C34;
|
|
--bg-dark: #21252b;
|
|
--bg1: #31363f;
|
|
--bg2: #373d48;
|
|
--bg3: #434a56;
|
|
--fg0: #abb2bf;
|
|
--fg1: #99a2b2;
|
|
--fg2: #6e7a91;
|
|
--fg3: #4f5664;
|
|
*/
|
|
--red: #e06c75;
|
|
--yellow: #e5c07b;
|
|
--green: #98c379;
|
|
--blue: #61afef;
|
|
--cyan: #56b6c2;
|
|
--purple: #c678dd;
|
|
--accent: #61afef;
|
|
--bg0: #ffffff;
|
|
--bg1: #ededed;
|
|
--bg2: #dadada;
|
|
--bg3: #afafaf;
|
|
--fg0: #3a494e;
|
|
--fg1: #4d6066;
|
|
--fg2: #607880;
|
|
--fg3: #98aab3;
|
|
--accent: #38c997;
|
|
/*
|
|
remark42 color overrides
|
|
--primary-color: 56, 201, 150!important;
|
|
*/
|
|
--sans-serif: "Source Sans 3", "Arial", sans-serif;
|
|
--monospace: "JetBrains Mono", "Courier", monospace;
|
|
--serif: "Merriweather", serif;
|
|
--display: "Bree Serif", var(--serif);
|
|
}
|
|
|
|
body {
|
|
color: var(--fg0);
|
|
background-color: var(--bg0);
|
|
/*font-family: var(--sans-serif);*/
|
|
font-family: var(--serif);
|
|
margin: 0;
|
|
}
|
|
|
|
*::selection, *::selection {
|
|
color: white;
|
|
background-color: black;
|
|
}
|
|
|
|
.content {
|
|
max-width: 768px;
|
|
margin: auto;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: 500;
|
|
margin-bottom: 2em;
|
|
margin-top: 2em;
|
|
font-family: var(--display);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 24px;
|
|
margin-bottom: 0;
|
|
background-color: var(--bg0);
|
|
/*background: linear-gradient(120deg, var(--green) 60%, var(--cyan) 60%);*/
|
|
color: var(--accent);
|
|
display: inline-block;
|
|
/*
|
|
position: sticky;
|
|
top: 0;
|
|
width: 100%;
|
|
*/
|
|
padding: 16px 16px 16px 0;
|
|
}
|
|
|
|
h2:after {
|
|
background-color: var(--fg3);
|
|
content: "";
|
|
display: inline-block;
|
|
height: 1px;
|
|
position: relative;
|
|
vertical-align: middle;
|
|
width: 100%;
|
|
}
|
|
|
|
@keyframes rainbow {
|
|
0% {
|
|
color: var(--red);
|
|
}
|
|
20% {
|
|
color: var(--yellow);
|
|
}
|
|
40% {
|
|
color: var(--green);
|
|
}
|
|
60% {
|
|
color: var(--blue);
|
|
}
|
|
80% {
|
|
color: var(--purple);
|
|
}
|
|
100% {
|
|
color: var(--red);
|
|
}
|
|
}
|
|
|
|
@keyframes shake {
|
|
0% { transform: translate(1px, 1px) rotate(0deg); }
|
|
10% { transform: translate(-1px, -2px) rotate(-1deg); }
|
|
20% { transform: translate(-3px, 0px) rotate(1deg); }
|
|
30% { transform: translate(3px, 2px) rotate(0deg); }
|
|
40% { transform: translate(1px, -1px) rotate(1deg); }
|
|
50% { transform: translate(-1px, 2px) rotate(-1deg); }
|
|
60% { transform: translate(-3px, 1px) rotate(0deg); }
|
|
70% { transform: translate(3px, 1px) rotate(-1deg); }
|
|
80% { transform: translate(-1px, -1px) rotate(1deg); }
|
|
90% { transform: translate(1px, 2px) rotate(0deg); }
|
|
100% { transform: translate(1px, -2px) rotate(-1deg); }
|
|
}
|
|
|
|
.MUGA:hover {
|
|
background: none;
|
|
animation: shake 0.15s infinite, rainbow 1s infinite;
|
|
}
|
|
|
|
.MUGA > .hidden {
|
|
position: absolute;
|
|
display: none;
|
|
}
|
|
|
|
.MUGA:hover > .hidden {
|
|
display: inline;
|
|
}
|
|
|
|
.MUGA:hover > .muga {
|
|
opacity: 0;
|
|
}
|
|
|
|
h2 {
|
|
display: block;
|
|
font-size: 32px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 2em;
|
|
margin-top: 2em;
|
|
line-height: 2.0em;
|
|
font-size: 16px;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
transition-duration: 200ms;
|
|
}
|
|
|
|
a:hover {
|
|
background-color: black;
|
|
color: white;
|
|
transition-duration: 200ms;
|
|
}
|
|
|
|
a.button:hover {
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
a.tag {
|
|
color: inherit;
|
|
}
|
|
|
|
a.tag:hover {
|
|
color: white;
|
|
}
|
|
|
|
a.image:hover {
|
|
background-color: unset;
|
|
}
|
|
|
|
.content img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
a.button button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button {
|
|
font-family: var(--display);
|
|
background-color: var(--bg0);
|
|
border: none;
|
|
outline: 1px solid var(--fg0);
|
|
border-radius: 4px;
|
|
transition-duration: 200ms;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: var(--fg0);
|
|
color: var(--bg0);
|
|
transition-duration: 200ms;
|
|
}
|
|
|
|
pre.example {
|
|
font-size: 20px;
|
|
background-color: var(--bg-dark);
|
|
padding: 4px;
|
|
}
|
|
|
|
.src > .highlight > div {
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
box-shadow: 2px 2px 16px #00000077;
|
|
}
|
|
|
|
.src > .highlight pre {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
code {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
|
|
#footer {
|
|
padding: 8px;
|
|
}
|
|
|
|
hr {
|
|
height: 1px;
|
|
border: 0;
|
|
background-color: var(--fg3);
|
|
}
|
|
|
|
.tiny {
|
|
display: inline;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.horizontal li {
|
|
float: left;
|
|
}
|
|
|
|
figure {
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
figure img {
|
|
display: block;
|
|
margin: auto;
|
|
}
|
|
|
|
figure video {
|
|
display: block;
|
|
margin: auto;
|
|
}
|
|
|
|
figure figcaption {
|
|
margin-top: 0.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
figure figcaption img {
|
|
display: unset;
|
|
}
|
|
|
|
img.emote {
|
|
vertical-align: middle;
|