mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 22:29:26 +01:00
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>
This commit is contained in:
parent
eb2fc1818b
commit
e55926ebfe
@ -6,6 +6,7 @@ const isProduction = env.NODE_ENV !== 'development';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
prefix: 'tw-',
|
prefix: 'tw-',
|
||||||
|
important: true, // the frameworks are mixed together, so tailwind needs to override other framework's styles
|
||||||
content: [
|
content: [
|
||||||
isProduction && '!./templates/devtest/**/*',
|
isProduction && '!./templates/devtest/**/*',
|
||||||
isProduction && '!./web_src/js/standalone/devtest.js',
|
isProduction && '!./web_src/js/standalone/devtest.js',
|
||||||
|
Loading…
Reference in New Issue
Block a user