aboutsummaryrefslogtreecommitdiffstats
path: root/tailwind.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-24 19:23:38 +0100
committerGitHub <noreply@github.com>2024-03-24 18:23:38 +0000
commitec3d467f15a683b305ac165c3eba6683628dcb25 (patch)
treeefcac44b28525ab5a131893e5eeab1771a5ae901 /tailwind.config.js
parent0a2f973de9b681a472c96bdfcd945978e88458d8 (diff)
downloadgitea-ec3d467f15a683b305ac165c3eba6683628dcb25.tar.gz
gitea-ec3d467f15a683b305ac165c3eba6683628dcb25.zip
Migrate `gt-hidden` to `tw-hidden` (#30046)
We have to define this one in helpers.css because tailwind only generates a single class but certain things rely on this being double-class. Command ran: ```sh perl -p -i -e 's#gt-hidden#tw-hidden#g' web_src/js/**/* templates/**/* models/**/* web_src/css/**/* --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'tailwind.config.js')
-rw-r--r--tailwind.config.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tailwind.config.js b/tailwind.config.js
index 0754ab3631..5bce37e023 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -41,6 +41,8 @@ export default {
// classes that don't work without CSS variables from "@tailwind base" which we don't use
'transform', 'shadow', 'ring', 'blur', 'grayscale', 'invert', '!invert', 'filter', '!filter',
'backdrop-filter',
+ // we use double-class tw-hidden defined in web_src/css/helpers.css for increased specificity
+ 'hidden',
// unneeded classes
'[-a-zA-Z:0-9_.]',
],