diff options
Diffstat (limited to 'served/styles')
-rw-r--r-- | served/styles/common.css | 65 | ||||
-rw-r--r-- | served/styles/home.css | 147 | ||||
-rw-r--r-- | served/styles/post.css | 5 |
3 files changed, 217 insertions, 0 deletions
diff --git a/served/styles/common.css b/served/styles/common.css new file mode 100644 index 0000000..b9c959b --- /dev/null +++ b/served/styles/common.css @@ -0,0 +1,65 @@ +* { + box-sizing: border-box; +} + +:root { + --text: #222; + --text-dim: #444; + --background: #FFF; + --background-dim: #F8F0F0; + --color-a: rgb(11, 113, 126); + --color-a-dim: rgb(7, 80, 90); +} + +@media (prefers-color-scheme: dark) { + :root { + --text: #eee; + --text-dim: #bbb; + --background: #001; + --background-dim: #222; + --color-a: #3a8; + --color-a-dim: rgb(158, 228, 208); + } +} + +html, +body { + padding: 0; + margin: 0; +} + +body { + font-size: 1.1rem; + line-height: 1.4; + font-family: sans-serif; + padding: 2rem 5vw; + + color: var(--text); + background-color: var(--background); +} + +a { + color: var(--color-a); +} + +h1, +h2, +h3 { + font-family: serif; +} + +#nav-access { + /* shove it above the page and make sure it's always on top*/ + position: absolute; + top: -20rem; + left: 0; + width: 100%; + z-index: 1000000; + + text-align: center; + font-size: 2rem; + list-style: none; + padding: 0; + margin: 0; + overflow: hidden; +} \ No newline at end of file diff --git a/served/styles/home.css b/served/styles/home.css new file mode 100644 index 0000000..64c534b --- /dev/null +++ b/served/styles/home.css @@ -0,0 +1,147 @@ +body { + padding-top: 4rem; + padding-bottom: 4rem; +} + +main, +header { + max-width: 35rem; + margin: 0 auto; +} + +header { + display: flex; + justify-content: space-between; + flex-wrap: wrap; + row-gap: 1rem; +} + +header img { + width: 96px; + height: 96px; + margin-top: 1.5em; +} + +#contact a { + text-decoration: none; + color: var(--color-a); + border-bottom: none; +} + +#contact ul { + line-height: normal; + list-style: none; + padding: 0; + margin: 0; +} + +#contact h2 { + margin: 0; +} + +#greeting { + flex: 1 0 15rem; +} + +#greeting h1 { + margin-top: 0; +} + +.thing-list { + padding: 0.5rem 0; + margin: 0; + list-style-position: inside; +} + +ul.thing-list { + padding: 0; + list-style: none; +} + +section h2 { + margin: 0; +} + +ol, +ul.thing-list { + line-height: 1.5; +} + +#scrap { + max-width: 25rem; +} + +@media (min-width: 40rem) { + main { + padding: 1rem 0; + display: grid; + grid-template-columns: 1fr 1fr; + column-gap: 1rem; + row-gap: 0.5rem; + } + + #greeting { + grid-column: 1 / 3; + } + + #greeting p { + max-width: 25rem; + } + + #scrap { + width: 100%; + /* a padding on desktop so it falls below the multimedia heading and + looks like it's kind of part of that section even if maybe it's not */ + padding-top: 2.25rem; + position: relative; + padding-right: 1rem; + } + + #scrap h2 { + display: inline; + margin: 0 0.5rem 0 0; + } + + /* tried https://stackoverflow.com/a/68283780 but it didn't seem to want + to work for right and bottom at the same time */ + #scrap-halfborder { + position: absolute; + right: 0; + bottom: 0; + + z-index: -1; + width: 50%; + height: 50%; + border: 1px solid var(--text); + border-width: 0px 1px 1px 0px; + } + + #writing-halfborder, + #feed-halfborder { + position: absolute; + left: 0; + top: 0; + + z-index: -1; + width: 25%; + height: min(50%, 2rem); + border: 1px solid var(--text); + border-width: 1px 0 0 1px; + } + + #writing { + padding-left: 1rem; + padding-top: 1rem; + position: relative; + + grid-column: 1 / 3; + } + + #feed { + position: relative; + margin: 1rem 0 0 1rem; + padding: 1rem 0 0 1rem; + width: 15rem; + float: right; + } +} \ No newline at end of file diff --git a/served/styles/post.css b/served/styles/post.css new file mode 100644 index 0000000..5913840 --- /dev/null +++ b/served/styles/post.css @@ -0,0 +1,5 @@ +.sized { + --page-width: 34rem; + max-width: var(--page-width); + margin: 0 auto; +} \ No newline at end of file |