mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-29 18:14:09 +00:00
Load custom CSS rules after standard ones
Fixes #933 Due to glitch-soc's theming system, JS and CSS files are imported in a slightly different order, and custom CSS rules were loaded *before* everything else. They will now be loaded *after* everything else, which is a bit different from upstream but should work better overall.
This commit is contained in:
parent
27e8354914
commit
2db0506226
|
@ -28,14 +28,14 @@
|
||||||
= javascript_pack_tag "locales/#{@theme[:flavour]}/en", integrity: true, crossorigin: 'anonymous'
|
= javascript_pack_tag "locales/#{@theme[:flavour]}/en", integrity: true, crossorigin: 'anonymous'
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
|
|
||||||
- if Setting.custom_css.present?
|
|
||||||
= stylesheet_link_tag custom_css_path, media: 'all'
|
|
||||||
|
|
||||||
= yield :header_tags
|
= yield :header_tags
|
||||||
|
|
||||||
-# These must come after :header_tags to ensure our initial state has been defined.
|
-# These must come after :header_tags to ensure our initial state has been defined.
|
||||||
= render partial: 'layouts/theme', object: @core
|
= render partial: 'layouts/theme', object: @core
|
||||||
= render partial: 'layouts/theme', object: @theme
|
= render partial: 'layouts/theme', object: @theme
|
||||||
|
|
||||||
|
- if Setting.custom_css.present?
|
||||||
|
= stylesheet_link_tag custom_css_path, media: 'all'
|
||||||
|
|
||||||
%body{ class: body_classes }
|
%body{ class: body_classes }
|
||||||
= content_for?(:content) ? yield(:content) : yield
|
= content_for?(:content) ? yield(:content) : yield
|
||||||
|
|
Loading…
Reference in a new issue