From 4aa6f99b04ae6f401f05d1bd2d7677afd16f40db Mon Sep 17 00:00:00 2001 From: Thomas Willems Date: Tue, 30 Jan 2024 21:28:46 +0100 Subject: [PATCH] rename is-disabled to inactive --- src/tailwind.config.js | 2 +- src/www/css/app.css | 2 +- src/www/index.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tailwind.config.js b/src/tailwind.config.js index b190ed39..fb508c57 100644 --- a/src/tailwind.config.js +++ b/src/tailwind.config.js @@ -8,7 +8,7 @@ module.exports = { plugins: [ function addDisabledClass({ addUtilities }) { const newUtilities = { - '.is-disabled': { + '.inactive': { opacity: '0.25', cursor: 'default', }, diff --git a/src/www/css/app.css b/src/www/css/app.css index 46db95a8..163d2fb9 100644 --- a/src/www/css/app.css +++ b/src/www/css/app.css @@ -1350,7 +1350,7 @@ video { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); } -.is-disabled { +.inactive { opacity: 0.25; cursor: default; } diff --git a/src/www/index.html b/src/www/index.html index 3a6643ea..da7edf25 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -218,7 +218,7 @@ class="align-middle bg-gray-100 dark:bg-neutral-600 dark:text-neutral-300 p-2 rounded transition" :class="{ 'hover:bg-red-800 dark:hover:bg-red-800 hover:text-white dark:hover:text-white': client.downloadableConfig, - 'is-disabled': !client.downloadableConfig + 'inactive': !client.downloadableConfig }" :title="!client.downloadableConfig ? $t('noPrivKey') : $t('showQR')" @click="qrcode = `./api/wireguard/client/${client.id}/qrcode.svg`"> @@ -236,7 +236,7 @@ class="align-middle inline-block bg-gray-100 dark:bg-neutral-600 dark:text-neutral-300 p-2 rounded transition" :class="{ 'hover:bg-red-800 dark:hover:bg-red-800 hover:text-white dark:hover:text-white': client.downloadableConfig, - 'is-disabled': !client.downloadableConfig + 'inactive': !client.downloadableConfig }" :title="!client.downloadableConfig ? $t('noPrivKey') : $t('downloadConfig')" @click="if(!client.downloadableConfig) { $event.preventDefault(); }">