From f02c924e20f057a05a88940f899f2c8e903e97c5 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Mon, 24 Aug 2026 13:04:13 -0500 Subject: small changes: reorganize css, etc --- article.css | 83 ++++++++++++++++++++ article.js | 11 ++- index.html | 5 +- prose.css | 236 -------------------------------------------------------- reversible.html | 4 +- writing.html | 7 +- 6 files changed, 99 insertions(+), 247 deletions(-) create mode 100644 article.css delete mode 100644 prose.css diff --git a/article.css b/article.css new file mode 100644 index 0000000..6fe0a37 --- /dev/null +++ b/article.css @@ -0,0 +1,83 @@ +@import url('https://static.williamsfam.us.com/prose.css'); + +*, *::before, *::after { + box-sizing: border-box; +} + +html, body { + background-color: #121212; + margin: 0 auto; + padding: 0; + min-height: 100vh; +} + +body { + padding-top: 2rem; + padding-left: 2rem; + padding-right: 2rem; +} + +article { + width: 100%; + max-width: 68ch; + margin: 0 auto; + position: relative; + z-index: 1; +} + +header { + display: flex; + flex-direction: column; + gap: var(--sx); + + .header-top { + display: flex; + align-items: flex-start; + gap: var(--sx); + } + + .header-logo-link { + width: 5.5rem; + height: 5.5rem; + flex-shrink: 0; + background-color: #e6e6e6; + mask-image: url("https://static.williamsfam.us.com/Logo.svg"); + mask-size: contain; + mask-repeat: no-repeat; + mask-position: center; + } + + .header-logo-link:hover { + background-color: #49f; + } + + .header-info { + min-width: 0; + + h1 { + line-height: 1; + margin: 0; + } + } + + time { + line-height: var(--lh); + margin: 0; + } + + hr { + margin: 0; + width: 100%; + } +} + +@media (max-width: 1000px) { + body { + display: block; + padding: 1rem 1rem 3rem; + } + + .content { + padding: 0; + } +} diff --git a/article.js b/article.js index 2a495c4..8b0ceba 100644 --- a/article.js +++ b/article.js @@ -20,7 +20,7 @@ function addMetadata() { // css const proseCss = document.createElement("link"); proseCss.rel = "stylesheet"; - proseCss.href = "prose.css"; + proseCss.href = "article.css"; document.head.appendChild(proseCss); } @@ -84,7 +84,10 @@ function addTOC() { } document.addEventListener("DOMContentLoaded", () => { - addMetadata() - addHeader() - addTOC() + addMetadata(); + addHeader(); + addTOC(); + + const article = document.querySelector('article'); + article.classList.add('markdown-body'); }) diff --git a/index.html b/index.html index b3836ad..c14b56e 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ Collin Williams + -
+

My Writing