Commit ce4076da authored by Tim Zallmann's avatar Tim Zallmann

Added Support for Signin + Dark for startupcss

Updated Startup.css for 3 different scenarios

Supporting now Dark + Signin in StartupCSS
parent 2134f964
This diff is collapsed.
This diff is collapsed.
......@@ -236,14 +236,14 @@ module ApplicationHelper
end
def use_startup_css?
Feature.enabled?(:startup_css) && !Rails.env.test?
(Feature.enabled?(:startup_css) || params[:startup_css] == 'true' || cookies['startup_css'] == 'true') && !Rails.env.test?
end
def stylesheet_link_tag_defer(path)
if use_startup_css?
stylesheet_link_tag(path, media: "print")
stylesheet_link_tag(path, media: "print", crossorigin: ActionController::Base.asset_host ? 'anonymous' : nil )
else
stylesheet_link_tag(path, media: "all")
stylesheet_link_tag(path, media: "all" )
end
end
......
- return unless use_startup_css?
- startup_filename = current_path?("sessions#new") ? 'signin' : user_application_theme == 'gl-dark' ? 'dark' : 'general'
%style{ type: "text/css" }
= Rails.application.assets_manifest.find_sources('startup/startup-general.css').first.to_s.html_safe
= Rails.application.assets_manifest.find_sources("startup/startup-#{startup_filename}.css").first.to_s.html_safe
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment