Created
November 14, 2023 13:52
-
-
Save Hoekstraa/311778955324c1f5c34fe5ebeeca5902 to your computer and use it in GitHub Desktop.
Minimal CSS theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Massively extended version of | |
https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41 | |
*/ | |
:root { | |
--background: #1a1a1a; | |
--foreground: #dadada; | |
--dim: #9a9a9a; | |
font-family: sans-serif; | |
font-size: 1.5em; | |
line-height: 1.75; | |
margin: auto; | |
max-width: 70ch; | |
padding: 3em 1em; | |
background-color: var(--background); | |
color: var(--foreground); | |
} | |
img { | |
width: 100%; | |
} | |
/* Optional 100 more bytes */ | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
margin: 3em 0 1em; | |
} | |
p, | |
ul, | |
ol { | |
margin-bottom: 2em; | |
} | |
/* https://css-tricks.com/styling-links-with-real-underlines/ */ | |
a { | |
color: var(--foreground); | |
text-decoration-color: var(--foreground); | |
text-decoration-thickness: .125ch; | |
text-underline-offset:3px; | |
} | |
a:visited { | |
text-decoration-color: var(--dim); | |
color: var(--dim); | |
text-decoration-thickness: .100ch; | |
text-underline-offset: 2px; | |
} | |
a:hover { | |
text-decoration-thickness: .100ch; | |
text-underline-offset:2px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment