From 2df3e6cb42fd7e58ac4873b1ee2708f7b9499b61 Mon Sep 17 00:00:00 2001 From: "Philip H." <47042125+pheiduck@users.noreply.github.com> Date: Fri, 19 Jan 2024 05:15:12 +0000 Subject: [PATCH] update: app.css to match latest tailwindcss version --- .github/workflows/npm-update-bot.yml | 1 + src/package.json | 2 +- src/www/css/app.css | 455 ++++++++++++++------------- 3 files changed, 244 insertions(+), 214 deletions(-) diff --git a/.github/workflows/npm-update-bot.yml b/.github/workflows/npm-update-bot.yml index 8c37768..03af94b 100644 --- a/.github/workflows/npm-update-bot.yml +++ b/.github/workflows/npm-update-bot.yml @@ -34,6 +34,7 @@ jobs: cd src ncu -u npm update + npm run buildcss git config --global user.name 'NPM Update Bot' git config --global user.email 'npmupbot@users.noreply.github.com' git add . diff --git a/src/package.json b/src/package.json index a62e769..92e7a39 100644 --- a/src/package.json +++ b/src/package.json @@ -8,7 +8,7 @@ "serve": "DEBUG=Server,WireGuard nodemon server.js", "serve-with-password": "PASSWORD=wg npm run serve", "lint": "eslint .", - "buildcss": "npx tailwindcss -i ./www/src/css/app.css -o ./www/css/app.css --watch" + "buildcss": "npx tailwindcss -i ./www/src/css/app.css -o ./www/css/app.css" }, "author": "Emile Nijssen", "license": "GPL", diff --git a/src/www/css/app.css b/src/www/css/app.css index e9fe0c7..830674c 100644 --- a/src/www/css/app.css +++ b/src/www/css/app.css @@ -1,5 +1,5 @@ /* -! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com +! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com */ /* @@ -32,9 +32,11 @@ 4. Use the user's configured `sans` font-family by default. 5. Use the user's configured `sans` font-feature-settings by default. 6. Use the user's configured `sans` font-variation-settings by default. +7. Disable tap highlights on iOS */ -html { +html, +:host { line-height: 1.5; /* 1 */ -webkit-text-size-adjust: 100%; @@ -44,12 +46,14 @@ html { -o-tab-size: 4; tab-size: 4; /* 3 */ - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */ font-feature-settings: normal; /* 5 */ font-variation-settings: normal; /* 6 */ + -webkit-tap-highlight-color: transparent; + /* 7 */ } /* @@ -121,8 +125,10 @@ strong { } /* -1. Use the user's configured `mono` font family by default. -2. Correct the odd `em` font sizing in all browsers. +1. Use the user's configured `mono` font-family by default. +2. Use the user's configured `mono` font-feature-settings by default. +3. Use the user's configured `mono` font-variation-settings by default. +4. Correct the odd `em` font sizing in all browsers. */ code, @@ -131,8 +137,12 @@ samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */ - font-size: 1em; + font-feature-settings: normal; /* 2 */ + font-variation-settings: normal; + /* 3 */ + font-size: 1em; + /* 4 */ } /* @@ -191,6 +201,10 @@ select, textarea { font-family: inherit; /* 1 */ + font-feature-settings: inherit; + /* 1 */ + font-variation-settings: inherit; + /* 1 */ font-size: 100%; /* 1 */ font-weight: inherit; @@ -341,6 +355,14 @@ menu { padding: 0; } +/* +Reset default styling for dialogs. +*/ + +dialog { + padding: 0; +} + /* Prevent resizing textareas horizontally by default. */ @@ -746,6 +768,10 @@ video { height: 3rem; } +.h-14 { + height: 3.5rem; +} + .h-2 { height: 0.5rem; } @@ -758,12 +784,12 @@ video { height: 0.75rem; } -.h-4 { - height: 1rem; +.h-32 { + height: 8rem; } -.h-5 { - height: 1.25rem; +.h-4 { + height: 1rem; } .h-6 { @@ -1027,10 +1053,6 @@ video { padding: 0.5rem; } -.p-2\.5 { - padding: 0.625rem; -} - .p-3 { padding: 0.75rem; } @@ -1067,11 +1089,6 @@ video { padding-right: 1.25rem; } -.py-1 { - padding-top: 0.25rem; - padding-bottom: 0.25rem; -} - .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; @@ -1398,200 +1415,6 @@ video { opacity: 1; } -:is(.dark .dark\:border-green-600) { - --tw-border-opacity: 1; - border-color: rgb(22 163 74 / var(--tw-border-opacity)); -} - -:is(.dark .dark\:border-neutral-500) { - --tw-border-opacity: 1; - border-color: rgb(115 115 115 / var(--tw-border-opacity)); -} - -:is(.dark .dark\:border-neutral-600) { - --tw-border-opacity: 1; - border-color: rgb(82 82 82 / var(--tw-border-opacity)); -} - -:is(.dark .dark\:bg-black) { - --tw-bg-opacity: 1; - background-color: rgb(0 0 0 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-green-100) { - --tw-bg-opacity: 1; - background-color: rgb(220 252 231 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-green-600) { - --tw-bg-opacity: 1; - background-color: rgb(22 163 74 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-neutral-200) { - --tw-bg-opacity: 1; - background-color: rgb(229 229 229 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-neutral-400) { - --tw-bg-opacity: 1; - background-color: rgb(163 163 163 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-neutral-500) { - --tw-bg-opacity: 1; - background-color: rgb(115 115 115 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-neutral-600) { - --tw-bg-opacity: 1; - background-color: rgb(82 82 82 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-neutral-700) { - --tw-bg-opacity: 1; - background-color: rgb(64 64 64 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-neutral-800) { - --tw-bg-opacity: 1; - background-color: rgb(38 38 38 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:bg-red-100) { - --tw-bg-opacity: 1; - background-color: rgb(254 226 226 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:text-green-600) { - --tw-text-opacity: 1; - color: rgb(22 163 74 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-neutral-200) { - --tw-text-opacity: 1; - color: rgb(229 229 229 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-neutral-300) { - --tw-text-opacity: 1; - color: rgb(212 212 212 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-neutral-400) { - --tw-text-opacity: 1; - color: rgb(163 163 163 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-neutral-50) { - --tw-text-opacity: 1; - color: rgb(250 250 250 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-neutral-500) { - --tw-text-opacity: 1; - color: rgb(115 115 115 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-neutral-600) { - --tw-text-opacity: 1; - color: rgb(82 82 82 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-red-300) { - --tw-text-opacity: 1; - color: rgb(252 165 165 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:text-red-600) { - --tw-text-opacity: 1; - color: rgb(220 38 38 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:opacity-50) { - opacity: 0.5; -} - -:is(.dark .dark\:placeholder\:text-neutral-400)::-moz-placeholder { - --tw-text-opacity: 1; - color: rgb(163 163 163 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:placeholder\:text-neutral-400)::placeholder { - --tw-text-opacity: 1; - color: rgb(163 163 163 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:placeholder\:text-neutral-500)::-moz-placeholder { - --tw-text-opacity: 1; - color: rgb(115 115 115 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:placeholder\:text-neutral-500)::placeholder { - --tw-text-opacity: 1; - color: rgb(115 115 115 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:hover\:border-green-600:hover) { - --tw-border-opacity: 1; - border-color: rgb(22 163 74 / var(--tw-border-opacity)); -} - -:is(.dark .dark\:hover\:border-neutral-600:hover) { - --tw-border-opacity: 1; - border-color: rgb(82 82 82 / var(--tw-border-opacity)); -} - -:is(.dark .dark\:hover\:bg-green-600:hover) { - --tw-bg-opacity: 1; - background-color: rgb(22 163 74 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:hover\:bg-neutral-500:hover) { - --tw-bg-opacity: 1; - background-color: rgb(115 115 115 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:hover\:bg-neutral-600:hover) { - --tw-bg-opacity: 1; - background-color: rgb(82 82 82 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:hover\:bg-red-200:hover) { - --tw-bg-opacity: 1; - background-color: rgb(254 202 202 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:hover\:bg-red-800:hover) { - --tw-bg-opacity: 1; - background-color: rgb(153 27 27 / var(--tw-bg-opacity)); -} - -:is(.dark .dark\:hover\:text-green-100:hover) { - --tw-text-opacity: 1; - color: rgb(220 252 231 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:hover\:text-neutral-700:hover) { - --tw-text-opacity: 1; - color: rgb(64 64 64 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:hover\:text-white:hover) { - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -:is(.dark .dark\:focus\:border-neutral-500:focus) { - --tw-border-opacity: 1; - border-color: rgb(115 115 115 / var(--tw-border-opacity)); -} - -:is(.dark .focus\:dark\:border-neutral-500):focus { - --tw-border-opacity: 1; - border-color: rgb(115 115 115 / var(--tw-border-opacity)); -} - @media (min-width: 640px) { .sm\:mx-0 { margin-left: 0px; @@ -1716,3 +1539,209 @@ video { padding-bottom: 0px; } } + +@media (prefers-color-scheme: dark) { + .dark\:border-neutral-500 { + --tw-border-opacity: 1; + border-color: rgb(115 115 115 / var(--tw-border-opacity)); + } + + .dark\:border-neutral-600 { + --tw-border-opacity: 1; + border-color: rgb(82 82 82 / var(--tw-border-opacity)); + } + + .dark\:border-neutral-800 { + --tw-border-opacity: 1; + border-color: rgb(38 38 38 / var(--tw-border-opacity)); + } + + .dark\:border-red-600 { + --tw-border-opacity: 1; + border-color: rgb(220 38 38 / var(--tw-border-opacity)); + } + + .dark\:bg-black { + --tw-bg-opacity: 1; + background-color: rgb(0 0 0 / var(--tw-bg-opacity)); + } + + .dark\:bg-neutral-400 { + --tw-bg-opacity: 1; + background-color: rgb(163 163 163 / var(--tw-bg-opacity)); + } + + .dark\:bg-neutral-500 { + --tw-bg-opacity: 1; + background-color: rgb(115 115 115 / var(--tw-bg-opacity)); + } + + .dark\:bg-neutral-600 { + --tw-bg-opacity: 1; + background-color: rgb(82 82 82 / var(--tw-bg-opacity)); + } + + .dark\:bg-neutral-700 { + --tw-bg-opacity: 1; + background-color: rgb(64 64 64 / var(--tw-bg-opacity)); + } + + .dark\:bg-neutral-800 { + --tw-bg-opacity: 1; + background-color: rgb(38 38 38 / var(--tw-bg-opacity)); + } + + .dark\:bg-red-100 { + --tw-bg-opacity: 1; + background-color: rgb(254 226 226 / var(--tw-bg-opacity)); + } + + .dark\:bg-red-600 { + --tw-bg-opacity: 1; + background-color: rgb(220 38 38 / var(--tw-bg-opacity)); + } + + .dark\:bg-red-800 { + --tw-bg-opacity: 1; + background-color: rgb(153 27 27 / var(--tw-bg-opacity)); + } + + .dark\:text-gray-500 { + --tw-text-opacity: 1; + color: rgb(107 114 128 / var(--tw-text-opacity)); + } + + .dark\:text-neutral-200 { + --tw-text-opacity: 1; + color: rgb(229 229 229 / var(--tw-text-opacity)); + } + + .dark\:text-neutral-300 { + --tw-text-opacity: 1; + color: rgb(212 212 212 / var(--tw-text-opacity)); + } + + .dark\:text-neutral-400 { + --tw-text-opacity: 1; + color: rgb(163 163 163 / var(--tw-text-opacity)); + } + + .dark\:text-neutral-50 { + --tw-text-opacity: 1; + color: rgb(250 250 250 / var(--tw-text-opacity)); + } + + .dark\:text-neutral-500 { + --tw-text-opacity: 1; + color: rgb(115 115 115 / var(--tw-text-opacity)); + } + + .dark\:text-neutral-600 { + --tw-text-opacity: 1; + color: rgb(82 82 82 / var(--tw-text-opacity)); + } + + .dark\:text-red-300 { + --tw-text-opacity: 1; + color: rgb(252 165 165 / var(--tw-text-opacity)); + } + + .dark\:text-red-600 { + --tw-text-opacity: 1; + color: rgb(220 38 38 / var(--tw-text-opacity)); + } + + .dark\:text-white { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); + } + + .dark\:opacity-50 { + opacity: 0.5; + } + + .dark\:placeholder\:text-neutral-400::-moz-placeholder { + --tw-text-opacity: 1; + color: rgb(163 163 163 / var(--tw-text-opacity)); + } + + .dark\:placeholder\:text-neutral-400::placeholder { + --tw-text-opacity: 1; + color: rgb(163 163 163 / var(--tw-text-opacity)); + } + + .dark\:placeholder\:text-neutral-500::-moz-placeholder { + --tw-text-opacity: 1; + color: rgb(115 115 115 / var(--tw-text-opacity)); + } + + .dark\:placeholder\:text-neutral-500::placeholder { + --tw-text-opacity: 1; + color: rgb(115 115 115 / var(--tw-text-opacity)); + } + + .dark\:hover\:border-neutral-600:hover { + --tw-border-opacity: 1; + border-color: rgb(82 82 82 / var(--tw-border-opacity)); + } + + .dark\:hover\:border-red-600:hover { + --tw-border-opacity: 1; + border-color: rgb(220 38 38 / var(--tw-border-opacity)); + } + + .dark\:hover\:bg-neutral-500:hover { + --tw-bg-opacity: 1; + background-color: rgb(115 115 115 / var(--tw-bg-opacity)); + } + + .dark\:hover\:bg-neutral-600:hover { + --tw-bg-opacity: 1; + background-color: rgb(82 82 82 / var(--tw-bg-opacity)); + } + + .dark\:hover\:bg-red-600:hover { + --tw-bg-opacity: 1; + background-color: rgb(220 38 38 / var(--tw-bg-opacity)); + } + + .dark\:hover\:bg-red-700:hover { + --tw-bg-opacity: 1; + background-color: rgb(185 28 28 / var(--tw-bg-opacity)); + } + + .dark\:hover\:bg-red-800:hover { + --tw-bg-opacity: 1; + background-color: rgb(153 27 27 / var(--tw-bg-opacity)); + } + + .dark\:hover\:text-neutral-700:hover { + --tw-text-opacity: 1; + color: rgb(64 64 64 / var(--tw-text-opacity)); + } + + .dark\:hover\:text-red-100:hover { + --tw-text-opacity: 1; + color: rgb(254 226 226 / var(--tw-text-opacity)); + } + + .dark\:hover\:text-white:hover { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); + } + + .dark\:focus\:border-neutral-500:focus { + --tw-border-opacity: 1; + border-color: rgb(115 115 115 / var(--tw-border-opacity)); + } + + .dark\:focus\:border-red-800:focus { + --tw-border-opacity: 1; + border-color: rgb(153 27 27 / var(--tw-border-opacity)); + } + + .focus\:dark\:border-neutral-500:focus { + --tw-border-opacity: 1; + border-color: rgb(115 115 115 / var(--tw-border-opacity)); + } +}