dogeystamp
73bab7d375
saw some essay about why it's a bad idea so ¯\_(ツ)_/¯ for posterity: https://ericwbailey.website/published/dont-use-custom-css-scrollbars/
161 lines
2.7 KiB
CSS
161 lines
2.7 KiB
CSS
/*
|
|
MIT License
|
|
|
|
Copyright (c) 2023 Bradley Taunt
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
|
|
|
|
|
|
I stole a decent amount of code from the stylesheet of https://barf.bt.ht/
|
|
so here's the license
|
|
*/
|
|
|
|
body {
|
|
font-family: JetBrainsMono, sans-serif;
|
|
width: 85vmin;
|
|
margin: auto;
|
|
background: #101010;
|
|
color: #ffffff;
|
|
font-size: 110%;
|
|
}
|
|
|
|
.header {
|
|
margin-top: 5%;
|
|
}
|
|
|
|
.header b {
|
|
font-size: 175%;
|
|
margin-right: 2%;
|
|
}
|
|
|
|
.header a {
|
|
margin-right: 1%;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
hr {
|
|
background-color: grey;
|
|
border: 0;
|
|
height: 1px;
|
|
margin: 2rem 0;
|
|
}
|
|
nav {
|
|
margin: 2rem 0 0;
|
|
}
|
|
article {
|
|
hyphens: auto;
|
|
}
|
|
article p {
|
|
margin: 1rem;
|
|
line-height: 2.25;
|
|
}
|
|
h1,h2,h3,h4 {
|
|
margin: 2rem 0 0;
|
|
}
|
|
h2 {
|
|
margin-left: 0.25rem;
|
|
}
|
|
h3 {
|
|
margin-left: 0.6rem;
|
|
}
|
|
h4 {
|
|
margin-left: 0.75rem;
|
|
}
|
|
h1 {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
span.created {
|
|
display: block;
|
|
margin: 4px 15px;
|
|
}
|
|
img {
|
|
border: 1px solid lightgrey;
|
|
height: auto;
|
|
max-width: 100%;
|
|
width: auto;
|
|
}
|
|
|
|
.logo {
|
|
border: none;
|
|
max-width: 5vh;
|
|
position: relative;
|
|
top: 1.5vh;
|
|
}
|
|
|
|
blockquote {
|
|
border: 1px solid;
|
|
border-left: 6px solid;
|
|
margin: 2rem 0;
|
|
padding: 10px;
|
|
}
|
|
blockquote p {
|
|
margin: 0;
|
|
}
|
|
figure {
|
|
margin: 2rem 0;
|
|
}
|
|
figcaption {
|
|
color: slategrey;
|
|
}
|
|
code {
|
|
border: 1px solid;
|
|
padding: 0.1rem 0.3rem;
|
|
tab-size: 4;
|
|
}
|
|
pre {
|
|
border: 1px solid;
|
|
}
|
|
pre code {
|
|
border: 0;
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 0.3rem 0.6rem;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
margin: 2rem 0;
|
|
text-align: left;
|
|
width: 100%;
|
|
}
|
|
tr {
|
|
border-bottom: 1px solid lightgrey;
|
|
}
|
|
tr:nth-of-type(odd) td {
|
|
background-color: #151515;
|
|
}
|
|
th,td {
|
|
padding: 6px;
|
|
}
|
|
footer {
|
|
border-top: 1px dashed grey;
|
|
margin: 2rem 0;
|
|
padding: 1rem 15px;
|
|
}
|
|
a {
|
|
display: inline;
|
|
color: #aaaaaa;
|
|
}
|
|
p, pre, table, blockquote {
|
|
margin-left: 1rem;
|
|
}
|