You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When designing a flarum theme, any Less/CSS code you write needs to override any default styles present in core, that means you constantly have to over-specify elements, using !important also becomes necessary at times. An optimal solution would be to be able to tell the software: here is a (for example) DiscussionListItem.less file that overrides the default, the software would then not load the default and instead load the custom one.
There might be something that allows us to hook into the import process of Less files, an import_callback option, we'd have to pass that to the Less_Parser object instantiation here.
This should be a method within a Theme extender.
The text was updated successfully, but these errors were encountered:
When designing a flarum theme, any Less/CSS code you write needs to override any default styles present in core, that means you constantly have to over-specify elements, using
!important
also becomes necessary at times. An optimal solution would be to be able to tell the software: here is a (for example) DiscussionListItem.less file that overrides the default, the software would then not load the default and instead load the custom one.There might be something that allows us to hook into the import process of Less files, an
import_callback
option, we'd have to pass that to theLess_Parser
object instantiation here.This should be a method within a
Theme
extender.The text was updated successfully, but these errors were encountered: