<% cache "base_inline_styles_#{@story_show.to_s}_#{@article_index.to_s}_#{@home_page.to_s}_#{@article_show.to_s}_#{view_class.to_s}_#{@notifications_index}_#{core_pages?.to_s}_#{@tags_index}_#{ApplicationConfig["DEPLOYMENT_SIGNATURE"].to_s}x_xs__", :expires_in => 6.hours do %>
  <% if @story_show %>
    <style>
      <% Rails.application.config.assets.compile = true %>
      <%= Rails.application.assets['scaffolds.css'].to_s.html_safe %>
      <%= Rails.application.assets['top-bar.css'].to_s.html_safe %>
      <% if @article_show %>
        <%= Rails.application.assets['article-show.css'].to_s.html_safe %>
        <%= Rails.application.assets['comments.css'].to_s.html_safe %>
        <%= Rails.application.assets['more-articles.css'].to_s.html_safe %>
        <%= Rails.application.assets["syntax.css"].to_s.html_safe %>
        <%= Rails.application.assets["ltags/LiquidTags.scss"].to_s.html_safe %>
        <%= Rails.application.assets["sticky-nav.css"].to_s.html_safe %>
      <% else %>
        <%= Rails.application.assets['article-show.css'].to_s.html_safe %>
        <%= Rails.application.assets['podcast-episodes-show.css'].to_s.html_safe %>
        <%= Rails.application.assets['comments.css'].to_s.html_safe %>
      <% end %>
      <%= Rails.application.assets['footer.css'].to_s.html_safe %>
    </style>
  <% elsif @article_index %>
    <style>
      <% Rails.application.config.assets.compile = true %>
      <%= Rails.application.assets['scaffolds.css'].to_s.html_safe %>
      <%= Rails.application.assets['articles.css'].to_s.html_safe %>
      <%= Rails.application.assets['top-bar.css'].to_s.html_safe %>
      <% unless @home_page %>
        <%= Rails.application.assets['user-profile-header.css'].to_s.html_safe %>
        <%= Rails.application.assets['sidebar-data.scss'].to_s.html_safe %>
        <%= Rails.application.assets['index-comments.css'].to_s.html_safe %>
        <%= Rails.application.assets['footer.css'].to_s.html_safe %>
      <% end %>
      <% if @tag_model %>
        <%= Rails.application.assets['preact/sidebar-widget.css'].to_s.html_safe %>
      <% end %>
    </style>
  <% elsif @notifications_index || @reading_list_items_index %>
    <style>
      <% Rails.application.config.assets.compile = true %>
      <%= Rails.application.assets['scaffolds.css'].to_s.html_safe %>
      <%= Rails.application.assets['articles.css'].to_s.html_safe %>
      <%= Rails.application.assets['comments.css'].to_s.html_safe %>
      <%= Rails.application.assets['notifications.css'].to_s.html_safe %>
      <%= Rails.application.assets['top-bar.css'].to_s.html_safe %>
      <%= Rails.application.assets['user-profile-header.css'].to_s.html_safe %>
      <%= Rails.application.assets['footer.css'].to_s.html_safe %>
      <%= Rails.application.assets["ltags/LiquidTags.scss"].to_s.html_safe %>
    </style>
  <% elsif view_class.start_with? "comments"%>
    <style>
      <%= Rails.application.assets['scaffolds.css'].to_s.html_safe %>
      <%= Rails.application.assets['top-bar.css'].to_s.html_safe %>
      <%= Rails.application.assets['comments.css'].to_s.html_safe %>
      <%= Rails.application.assets['footer.css'].to_s.html_safe %>
      <%= Rails.application.assets["ltags/LiquidTags.scss"].to_s.html_safe %>
      <%= Rails.application.assets["syntax.css"].to_s.html_safe %>
    </style>
  <% elsif view_class.include? "registrations"%>
    <style>
      <%= Rails.application.assets['top-bar.css'].to_s.html_safe %>
      <%= Rails.application.assets['scaffolds.css'].to_s.html_safe %>
      <%= Rails.application.assets['article_form.css'].to_s.html_safe %>
      <%= Rails.application.assets['footer.css'].to_s.html_safe %>
    </style>
  <% elsif view_class.include? "users-index"%>
    <style>
      <%= Rails.application.assets['scaffolds.css'].to_s.html_safe %>
      <%= Rails.application.assets['top-bar.css'].to_s.html_safe %>
      <%= Rails.application.assets['leaderboard.css'].to_s.html_safe %>
      <%= Rails.application.assets['footer.css'].to_s.html_safe %>
    </style>
  <% elsif core_pages? %>
    <%= stylesheet_link_tag 'minimal', media: 'all' %>
  <% else %>
    <%= stylesheet_link_tag 'application', media: 'all' %>
  <% end %>
<% end %>
