From 356e6a196eb69c6c93902995fb574fdc61c1d866 Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Wed, 27 Mar 2024 22:28:47 -0500 Subject: [PATCH] animate in, motion-safe only --- _includes/base-header.html | 2 +- _includes/category.njk | 4 ++-- _includes/pinned.njk | 6 +++--- package-lock.json | 19 ++++++++++++++++++- package.json | 3 ++- tailwind.config.js | 1 + 6 files changed, 27 insertions(+), 8 deletions(-) diff --git a/_includes/base-header.html b/_includes/base-header.html index e4ed562..a570397 100644 --- a/_includes/base-header.html +++ b/_includes/base-header.html @@ -42,7 +42,7 @@ {%- for navItem in navigation -%} {{navItem.title}} diff --git a/_includes/category.njk b/_includes/category.njk index 325622f..146062b 100644 --- a/_includes/category.njk +++ b/_includes/category.njk @@ -13,8 +13,8 @@
{%- for content in collections[ page.fileSlug ] | reverse -%} -
- +
+

{{ content.data.title }}

diff --git a/_includes/pinned.njk b/_includes/pinned.njk index f2ec949..03b858e 100644 --- a/_includes/pinned.njk +++ b/_includes/pinned.njk @@ -13,13 +13,13 @@
{%- for content in collections.pinned | reverse -%} -
+
- +

{{ content.data.title }} diff --git a/package-lock.json b/package-lock.json index d97ed74..a0ed779 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,8 @@ "npm": "^10.5.0", "postcss": "^8.3.11", "postcss-cli": "^9.0.1", - "tailwindcss": "^3.4.1" + "tailwindcss": "^3.4.1", + "tailwindcss-animated": "^1.0.1" } }, "node_modules/@11ty/dependency-tree": { @@ -9956,6 +9957,15 @@ "node": ">=14.0.0" } }, + "node_modules/tailwindcss-animated": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tailwindcss-animated/-/tailwindcss-animated-1.0.1.tgz", + "integrity": "sha512-u5wusj89ZwP8I+s8WZlaAd7aZTWBN/XEG6QgMKpkIKmAf3xP1A6WYf7oYIKmGaB10UAQaSqWopi/i1ozzZEs8Q==", + "dev": true, + "peerDependencies": { + "tailwindcss": ">=3.1.0" + } + }, "node_modules/tailwindcss/node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -17188,6 +17198,13 @@ } } }, + "tailwindcss-animated": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tailwindcss-animated/-/tailwindcss-animated-1.0.1.tgz", + "integrity": "sha512-u5wusj89ZwP8I+s8WZlaAd7aZTWBN/XEG6QgMKpkIKmAf3xP1A6WYf7oYIKmGaB10UAQaSqWopi/i1ozzZEs8Q==", + "dev": true, + "requires": {} + }, "terser": { "version": "5.29.2", "resolved": "https://registry.npmjs.org/terser/-/terser-5.29.2.tgz", diff --git a/package.json b/package.json index f7ab8dd..0c38f2a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "npm": "^10.5.0", "postcss": "^8.3.11", "postcss-cli": "^9.0.1", - "tailwindcss": "^3.4.1" + "tailwindcss": "^3.4.1", + "tailwindcss-animated": "^1.0.1" }, "dependencies": { "@toycode/markdown-it-class": "^1.2.4" diff --git a/tailwind.config.js b/tailwind.config.js index 86770e5..bf685bb 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -13,5 +13,6 @@ module.exports = { }, plugins: [ require("@catppuccin/tailwindcss"), + require("tailwindcss-animated"), ], }