From d4c87b8abea48089cf766f6ed7aea8fb790ff756 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 15 Apr 2024 12:37:32 -0700 Subject: [PATCH] feat: style layers, imports and nesting --- package.json | 2 +- src/_includes/base.liquid | 8 +- src/_includes/now.liquid | 7 - src/_includes/partials/addon-links.liquid | 4 - src/_includes/partials/badge-grid.liquid | 4 - src/_includes/partials/banners/github.liquid | 4 - src/_includes/partials/banners/npm.liquid | 4 - .../partials/banners/old-post.liquid | 4 - src/_includes/partials/link-peek.liquid | 4 - src/_includes/partials/mastodon-post.liquid | 4 - .../partials/nav/theme-toggle.liquid | 4 - src/_includes/partials/now/media-grid.liquid | 7 - src/_includes/partials/now/status.liquid | 2 +- src/_includes/partials/now/track-chart.liquid | 9 +- .../partials/now/tracks-recent.liquid | 8 +- src/_includes/partials/paginator.liquid | 4 - src/_includes/partials/popular-posts.liquid | 2 +- src/_includes/partials/post-graph.liquid | 4 - src/_includes/partials/recent-links.liquid | 2 +- src/_includes/partials/share-button.liquid | 4 - src/_includes/post.liquid | 5 - src/assets/styles/base/index.css | 565 +++++++++++++++++ src/assets/styles/components/addon-links.css | 36 +- src/assets/styles/components/badge-grid.css | 24 +- src/assets/styles/components/banners.css | 54 +- src/assets/styles/components/buttons.css | 86 +-- src/assets/styles/components/forms.css | 8 +- src/assets/styles/components/link-peek.css | 68 +- .../styles/components/mastodon-post.css | 22 +- src/assets/styles/components/media-grid.css | 3 +- src/assets/styles/components/paginator.css | 34 +- src/assets/styles/components/share-button.css | 23 +- src/assets/styles/components/theme-toggle.css | 60 +- src/assets/styles/components/track-chart.css | 36 +- .../{partials => defaults}/animations.css | 0 .../styles/{partials => defaults}/fonts.css | 0 .../styles/{partials => defaults}/vars.css | 0 src/assets/styles/index.css | 597 ++---------------- src/assets/styles/pages/404.css | 10 +- src/assets/styles/pages/about.css | 36 +- src/assets/styles/pages/blogroll.css | 12 +- src/assets/styles/pages/contact.css | 30 +- src/assets/styles/pages/links.css | 3 +- src/assets/styles/pages/now.css | 33 +- src/assets/styles/pages/post.css | 6 +- src/assets/styles/pages/webrings.css | 10 +- src/assets/styles/reset.css | 46 ++ src/links.html | 4 - src/pages/404.html | 4 - src/pages/about.md | 4 - src/pages/contact-success.html | 2 +- src/pages/contact.md | 6 - src/pages/search.html | 4 - src/pages/webrings.md | 4 - src/posts/2023/2023-in-review.html | 2 +- ...ptimizing-for-performance-with-eleventy.md | 13 +- .../2024/automatic-mastodon-post-embeds.md | 4 - .../building-a-theme-toggle-web-component.md | 4 - 58 files changed, 968 insertions(+), 981 deletions(-) create mode 100644 src/assets/styles/base/index.css rename src/assets/styles/{partials => defaults}/animations.css (100%) rename src/assets/styles/{partials => defaults}/fonts.css (100%) rename src/assets/styles/{partials => defaults}/vars.css (100%) create mode 100644 src/assets/styles/reset.css diff --git a/package.json b/package.json index 4e4d1ec9..f18bc636 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "10.3.4", + "version": "11.0.0", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index b32390e6..c8b48502 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -16,13 +16,7 @@ {{ pageTitle }} - {% capture css %} - {% render "../assets/styles/partials/fonts.css" %} - {% render "../assets/styles/partials/vars.css" %} - {% render "../assets/styles/partials/animations.css" %} - {% render "../assets/styles/index.css" %} - {% endcapture %} - + diff --git a/src/_includes/now.liquid b/src/_includes/now.liquid index 21298d97..c0f1f738 100644 --- a/src/_includes/now.liquid +++ b/src/_includes/now.liquid @@ -1,13 +1,6 @@ --- layout: default --- -{% capture css %} - {% render "../assets/styles/pages/now.css" %} - {% render "../assets/styles/components/media-grid.css" %} - {% render "../assets/styles/components/progress-bar.css" %} - {% render "../assets/styles/components/buttons.css" %} -{% endcapture %} - {% capture js %} {% render "../assets/scripts/media-toggles.js" %} {% endcapture %} diff --git a/src/_includes/partials/addon-links.liquid b/src/_includes/partials/addon-links.liquid index 466804dd..26e30f45 100644 --- a/src/_includes/partials/addon-links.liquid +++ b/src/_includes/partials/addon-links.liquid @@ -1,7 +1,3 @@ -{% capture css %} - {% render "../../assets/styles/components/addon-links.css" %} -{% endcapture %} -