From 06470d2db61d27853df2a28e5a881a595a472eb9 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 19 Jun 2025 16:19:34 -0500 Subject: [PATCH] uglify and other cleanup --- justfile | 1 - package.json | 37 ------------------------------------- static/css/main.css | 17 ----------------- 3 files changed, 55 deletions(-) delete mode 100644 package.json diff --git a/justfile b/justfile index 67c992d..5a39c36 100644 --- a/justfile +++ b/justfile @@ -12,6 +12,5 @@ api: cargo build clean: cargo clean - rm -rf bld/ test: RUST_LOG=debug cargo test --benches --tests --all-features -- --nocapture diff --git a/package.json b/package.json deleted file mode 100644 index 7ad6b56..0000000 --- a/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "zola-tailwind", - "version": "0.1.0", - "description": "A theme for Zola SSG built with tailwind css", - "scripts": { - "uglify": "uglifyjs ./src/js/main.js --compress --mangle -o ./static/js/main.js && uglifyjs ./src/js/page.js --compress --mangle -o ./static/js/page.js && uglifyjs ./src/js/search.js --compress --mangle -o ./static/js/search.js && uglifyjs ./src/js/lang.js --compress --mangle -o ./static/js/lang.js", - "watch": "NODE_ENV=development postcss ./src/css/main.css -o ./static/css/main.css -w --verbose", - "dev": "npm run uglify && NODE_ENV=development postcss ./src/css/main.css -o ./static/css/main.css --verbose", - "prod": "npm run uglify && NODE_ENV=production postcss ./src/css/main.css -o ./static/css/main.css --verbose" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/tchartron/zola-tailwind.git" - }, - "keywords": [ - "zola", - "ssg", - "theme", - "tailwindcss", - "tailwind", - "tchartron" - ], - "author": "Thomas Chartron", - "license": "MIT", - "bugs": { - "url": "https://github.com/tchartron/zola-tailwind/issues" - }, - "homepage": "https://github.com/tchartron/zola-tailwind#readme", - "devDependencies": { - "autoprefixer": "^10.4.20", - "cssnano": "^7.0.6", - "postcss": "^8.4.47", - "postcss-cli": "^11.0.0", - "tailwindcss": "^3.4.13", - "uglify-js": "^3.19.3" - } -} diff --git a/static/css/main.css b/static/css/main.css index e9cd8f0..d674cf8 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -1233,13 +1233,6 @@ } } } - .hover\:bg-gray-900 { - &:hover { - @media (hover: hover) { - background-color: var(--color-gray-900); - } - } - } .hover\:bg-indigo-400 { &:hover { @media (hover: hover) { @@ -1333,11 +1326,6 @@ background-color: var(--color-blue-900); } } - .focus\:bg-gray-900 { - &:focus { - background-color: var(--color-gray-900); - } - } .focus\:ring { &:focus { --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); @@ -1360,11 +1348,6 @@ --tw-ring-color: var(--color-blue-700); } } - .focus\:ring-gray-700 { - &:focus { - --tw-ring-color: var(--color-gray-700); - } - } .focus\:ring-white { &:focus { --tw-ring-color: var(--color-white);