Skip to content

A platform for community discussion. Free, open, simple.

1.1 KB
Raw Blame
<%= discourse_color_scheme_stylesheets %>

<%= discourse_stylesheet_link_tag(:common, supports_rtl: true) %>

<%- 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 %>

<%= preview_font_style_tag %>