-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8a7f69
commit da9560c
Showing
2 changed files
with
61 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,76 @@ | ||
|
||
:root { | ||
--my-monospace-code: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; | ||
--my-bg-color: #fff; | ||
--my-link-color: navy; | ||
--my-header-link-color: black; | ||
} | ||
|
||
body { | ||
font-family: monospace; | ||
font-size: 16px; | ||
background-color: white; | ||
color: #111; | ||
width: 80%; | ||
min-width: 400px; | ||
min-height: 200px; | ||
max-width: 50em; | ||
padding: 1em; | ||
margin: 5% 10%; | ||
border: thin solid gray; | ||
font-family: var(--my-monospace-code); | ||
|
||
/* fluid sizing: https://frontaid.io/blog/fluid-typography-2d-css-locks-clamp/ */ | ||
font-size: clamp(1em, 0.909em + 0.45vmin, 1.25em); | ||
|
||
background-color: var(--my-bg-color); | ||
color: #111; | ||
|
||
/* should be about 50-70 characters wide */ | ||
max-width: 70ch; | ||
|
||
/* larger spacing on larger screens, very small spacing on tiny screens */ | ||
padding: calc(1vmin + .5rem); | ||
|
||
/* shorthand for margin-left/margin-right */ | ||
margin-inline: auto; | ||
|
||
/* border: thin solid gray; | ||
border-radius: 5px; | ||
display: block; | ||
display: block; */ | ||
} | ||
|
||
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { | ||
color: inherit !important | ||
nav ul { | ||
display: flex; | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
nav ul a { | ||
padding: 0.5em 1em; | ||
display: block; | ||
|
||
a:link { | ||
color: blue; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover, | ||
a:visited { | ||
color: blue; | ||
text-decoration: underline; | ||
} | ||
|
||
header{ | ||
text-align: center; | ||
header a:link { | ||
color: var(--my-header-link-color); | ||
text-decoration: none; | ||
} | ||
|
||
nav > ul > li, | ||
#menu li { | ||
/* set inline */ | ||
display: inline-block; | ||
header a:hover, | ||
header a:visited { | ||
color: var(--my-header-link-color); | ||
text-decoration: underline; | ||
text-decoration-thickness: 0.1em; | ||
} | ||
|
||
#post-list { | ||
margin-bottom: 1em; | ||
margin-top: 1em; | ||
|
||
|
||
main a:link { | ||
color: var(--my-link-color); | ||
text-decoration: none; | ||
} | ||
|
||
pre { | ||
margin: 2em 1em 2em 4em; | ||
main a:hover, | ||
main a:visited { | ||
color: var(--my-link-color); | ||
text-decoration: underline; | ||
text-decoration-thickness: 0.1em; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
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