0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/app/views/common/_discourse_preload_stylesheet.html.erb
David Taylor d2dc8d4f22
DEV: Drop empty core mobile/desktop stylesheets (#41988)
b1399d6a6f removed the last mobile/desktop-specific CSS from Discourse.
Everything is now handled by media queries in common scss.

This commit drops the mobile/desktop stylesheet infrastructure for core.
It remains in place for themes & plugins.

Much of the diff is updating specs to avoid mobile/desktop as fixtures,
and to remove argument defaults which no longer make sense.
2026-07-23 20:30:13 +01:00

31 lines
999 B
Text
Vendored

<%= discourse_preload_color_scheme_stylesheets %>
<%- if rtl? %>
<%= discourse_stylesheet_preload_tag(:common_rtl) %>
<%- else %>
<%= discourse_stylesheet_preload_tag(:common) %>
<%- end %>
<%- if staff? %>
<%- if rtl? %>
<%= discourse_stylesheet_preload_tag(:admin_rtl) %>
<%- else %>
<%= discourse_stylesheet_preload_tag(:admin) %>
<%- end %>
<%- end %>
<%- if admin? %>
<%- if rtl? %>
<%= discourse_stylesheet_preload_tag(:wizard_rtl) %>
<%- else %>
<%= discourse_stylesheet_preload_tag(:wizard) %>
<%- end %>
<%- end %>
<%- Discourse.find_plugin_css_assets(include_official: allow_plugins?, include_unofficial: allow_third_party_plugins?, mobile_view: mobile_device?, desktop_view: !mobile_device?, include_admin: staff?, request: request, rtl: rtl?).each do |file| %>
<%= discourse_stylesheet_preload_tag(file) %>
<%- end %>
<%- if theme_id.present? %>
<%= discourse_stylesheet_preload_tag(mobile_device? ? :mobile_theme : :desktop_theme) %>
<%- end %>