diff options
author | silverwind <me@silverwind.io> | 2024-03-24 19:23:38 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-30 07:17:29 +0100 |
commit | 5016bc5d5c8df7f9ac6d59545d2aa8751ef7e370 (patch) | |
tree | dc67b453501fe246c85388a6aa728e14f64ee474 /tailwind.config.js | |
parent | Forbid jQuery `is` and fix issues (#30016) (diff) | |
download | forgejo-5016bc5d5c8df7f9ac6d59545d2aa8751ef7e370.tar.xz forgejo-5016bc5d5c8df7f9ac6d59545d2aa8751ef7e370.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>
(cherry picked from commit ec3d467f15a683b305ac165c3eba6683628dcb25)
Conflicts:
templates/install.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/issue/view_title.tmpl
resolved by prefering Forgejo version and applying the
commands to all files
Diffstat (limited to 'tailwind.config.js')
-rw-r--r-- | tailwind.config.js | 2 |
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_.]', ], |