diff options
author | silverwind <me@silverwind.io> | 2024-02-27 04:04:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 03:04:46 +0000 |
commit | e55926ebfe88d6ee079842967dc7dccc2a9cdbf2 (patch) | |
tree | 74c5824d380a46c3417d81b0b967d2ffb69884a8 /tailwind.config.js | |
parent | eb2fc1818b00b7ca6f8c21bb490a8e8be1e62f9a (diff) | |
download | gitea-e55926ebfe88d6ee079842967dc7dccc2a9cdbf2.tar.gz gitea-e55926ebfe88d6ee079842967dc7dccc2a9cdbf2.zip |
Apply tailwindcss rules with `!important` (#29437)
As per discussion in https://github.com/go-gitea/gitea/pull/29423, I
think this is the right way that does not burden developers having to
think about CSS precedence which should be irrelevant with an atomic CSS
framework.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'tailwind.config.js')
-rw-r--r-- | tailwind.config.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tailwind.config.js b/tailwind.config.js index 8c474c33a8..7f36822001 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -6,6 +6,7 @@ const isProduction = env.NODE_ENV !== 'development'; export default { prefix: 'tw-', + important: true, // the frameworks are mixed together, so tailwind needs to override other framework's styles content: [ isProduction && '!./templates/devtest/**/*', isProduction && '!./web_src/js/standalone/devtest.js', |