sandvich.xyz/static/css/main.css

252 lines
4.8 KiB
CSS
Raw Normal View History

2022-10-30 19:47:39 -07:00
/*@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');
2022-09-12 19:20:07 -07:00
:root {
2022-10-30 19:47:39 -07:00
/*
2022-09-12 19:20:07 -07:00
--bg0: #282C34;
--bg-dark: #21252b;
--bg1: #31363f;
--bg2: #373d48;
--bg3: #434a56;
--fg0: #abb2bf;
--fg1: #99a2b2;
--fg2: #6e7a91;
--fg3: #4f5664;
2022-10-30 19:47:39 -07:00
*/
2022-09-12 19:20:07 -07:00
--red: #e06c75;
--yellow: #e5c07b;
--green: #98c379;
--blue: #61afef;
--cyan: #56b6c2;
--purple: #c678dd;
--accent: #61afef;
2023-07-04 01:35:55 -07:00
--bg0: #ffffff;
2022-10-30 19:47:39 -07:00
--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;
*/
2022-09-12 19:20:07 -07:00
--sans-serif: "Source Sans 3", "Arial", sans-serif;
--monospace: "JetBrains Mono", "Courier", monospace;
2022-10-30 19:47:39 -07:00
--serif: "Merriweather", serif;
--display: "Bree Serif", var(--serif);
2022-09-12 19:20:07 -07:00
}
body {
color: var(--fg0);
background-color: var(--bg0);
2022-10-30 19:47:39 -07:00
/*font-family: var(--sans-serif);*/
font-family: var(--serif);
2022-09-12 19:20:07 -07:00
margin: 0;
}
2022-10-30 19:47:39 -07:00
*::selection, *::selection {
color: white;
background-color: black;
}
2022-09-12 19:20:07 -07:00
.content {
max-width: 768px;
margin: auto;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 500;
margin-bottom: 2em;
margin-top: 2em;
2022-10-30 19:47:39 -07:00
font-family: var(--display);
2022-09-12 19:20:07 -07:00
}
h1 {
2022-10-30 19:47:39 -07:00
font-size: 24px;
margin-bottom: 0;
background-color: var(--bg0);
/*background: linear-gradient(120deg, var(--green) 60%, var(--cyan) 60%);*/
color: var(--accent);
2022-09-12 19:20:07 -07:00
display: inline-block;
2022-10-30 19:47:39 -07:00
/*
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%;
2022-09-12 19:20:07 -07:00
}
@keyframes rainbow {
0% {
2022-10-30 19:47:39 -07:00
color: var(--red);
2022-09-12 19:20:07 -07:00
}
20% {
2022-10-30 19:47:39 -07:00
color: var(--yellow);
2022-09-12 19:20:07 -07:00
}
40% {
2022-10-30 19:47:39 -07:00
color: var(--green);
2022-09-12 19:20:07 -07:00
}
60% {
2022-10-30 19:47:39 -07:00
color: var(--blue);
2022-09-12 19:20:07 -07:00
}
80% {
2022-10-30 19:47:39 -07:00
color: var(--purple);
2022-09-12 19:20:07 -07:00
}
100% {
2022-10-30 19:47:39 -07:00
color: var(--red);
2022-09-12 19:20:07 -07:00
}
}
2022-10-30 19:47:39 -07:00
@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 {
2022-09-12 19:20:07 -07:00
background: none;
2022-10-30 19:47:39 -07:00
animation: shake 0.15s infinite, rainbow 1s infinite;
}
.MUGA > .hidden {
position: absolute;
display: none;
}
.MUGA:hover > .hidden {
display: inline;
}
.MUGA:hover > .muga {
opacity: 0;
2022-09-12 19:20:07 -07:00
}
h2 {
display: block;
font-size: 32px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 24px;
}
p {
margin-bottom: 2em;
margin-top: 2em;
2022-10-30 19:47:39 -07:00
line-height: 2.0em;
font-size: 16px;
2022-09-12 19:20:07 -07:00
}
a {
2022-09-18 19:55:02 -07:00
color: var(--accent);
2022-09-12 19:20:07 -07:00
transition-duration: 200ms;
}
a:hover {
2022-10-30 19:47:39 -07:00
background-color: black;
2022-09-12 19:20:07 -07:00
color: white;
transition-duration: 200ms;
}
2022-10-30 19:47:39 -07:00
a.button:hover {
background-color: unset;
}
2022-09-12 19:20:07 -07:00
a.tag {
color: inherit;
}
a.tag:hover {
color: white;
}
.content img {
max-width: 100%;
}
2022-10-30 19:47:39 -07:00
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;
}
2022-09-12 19:20:07 -07:00
pre.example {
font-size: 20px;
background-color: var(--bg-dark);
padding: 4px;
}
2022-10-30 19:47:39 -07:00
.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;
}
2022-09-12 19:20:07 -07:00
#footer {
padding: 8px;
}
2022-10-30 19:47:39 -07:00
hr {
height: 1px;
border: 0;
2022-09-12 19:20:07 -07:00
background-color: var(--fg3);
}
2022-10-30 19:47:39 -07:00
.tiny {
display: inline;
2022-09-12 19:20:07 -07:00
font-size: 16px;
2022-10-30 19:47:39 -07:00
}
.horizontal li {
float: left;
2022-09-12 19:20:07 -07:00
}