mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
This reverts commit 9f4d1b5f61.
This merge unintentionally included a number of unrelated changes.
Reverting while we investigate what happened.
33 lines
1.3 KiB
Text
Vendored
33 lines
1.3 KiB
Text
Vendored
<%= discourse_color_scheme_stylesheets %>
|
|
|
|
<%= discourse_stylesheet_link_tag(:common, supports_rtl: true) %>
|
|
|
|
<%= discourse_stylesheet_link_tag(:mobile, supports_rtl: true, media: "(width < 40rem)") %>
|
|
<%= discourse_stylesheet_link_tag(:desktop, supports_rtl: true, media: "(width >= 40rem)") %>
|
|
|
|
<%- if staff? %>
|
|
<%= discourse_stylesheet_link_tag(:admin, supports_rtl: true) %>
|
|
<%- end %>
|
|
|
|
<%- if admin? %>
|
|
<%= discourse_stylesheet_link_tag(:wizard, supports_rtl: true) %>
|
|
<%- end %>
|
|
|
|
<%- Discourse.find_plugin_css_assets(include_official: allow_plugins?, include_unofficial: allow_third_party_plugins?, mobile_view: true, desktop_view: true, include_admin: staff?, request: request, rtl: false).each do |file| %>
|
|
<%=
|
|
media = if file.end_with?("_mobile")
|
|
"(width < 40rem)"
|
|
elsif file.end_with?("_desktop")
|
|
"(width >= 40rem)"
|
|
else
|
|
nil
|
|
end
|
|
discourse_stylesheet_link_tag(file, media: media, supports_rtl: true)
|
|
%>
|
|
<%- end %>
|
|
|
|
<%- if theme_id.present? %>
|
|
<%= discourse_stylesheet_link_tag(:common_theme, supports_rtl: true) %>
|
|
<%= discourse_stylesheet_link_tag(:mobile_theme, media: "(width < 40rem)", supports_rtl: true) %>
|
|
<%= discourse_stylesheet_link_tag(:desktop_theme, media: "(width >= 40rem)", supports_rtl: true) %>
|
|
<%- end %>
|