Skip to content

Commit

Permalink
Remove outdated CSS
Browse files Browse the repository at this point in the history
We no longer support IE6 and IE7 to the extent where specific stylesheets are
necessary and the IE8 stylesheet was doing nothing helpful. Removing these
improves the compile time and makes the dev environment more useable.
  • Loading branch information
maxgds committed Aug 21, 2019
1 parent 8363266 commit 42de4fb
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 27 deletions.
7 changes: 0 additions & 7 deletions app/assets/stylesheets/application-ie6.scss

This file was deleted.

6 changes: 0 additions & 6 deletions app/assets/stylesheets/application-ie7.scss

This file was deleted.

6 changes: 0 additions & 6 deletions app/assets/stylesheets/application-ie8.scss

This file was deleted.

5 changes: 1 addition & 4 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
<%= @content_item.page_title %> - GOV.UK
<% end %>
</title>
<!--[if gt IE 8]><!--><%= stylesheet_link_tag "application", integrity: true, crossorigin: 'anonymous' %><!--<![endif]-->
<!--[if IE 6]><%= stylesheet_link_tag "application-ie6" %><script>var ieVersion = 6;</script><![endif]-->
<!--[if IE 7]><%= stylesheet_link_tag "application-ie7" %><script>var ieVersion = 7;</script><![endif]-->
<!--[if IE 8]><%= stylesheet_link_tag "application-ie8" %><script>var ieVersion = 8;</script><![endif]-->
<%= stylesheet_link_tag "application", integrity: true, crossorigin: 'anonymous' %>
<% if Rails.env.test? && params[:medium] == 'print' %>
<%= stylesheet_link_tag "print.css", :media => "screen", integrity: true, crossorigin: 'anonymous' %>
<% else %>
Expand Down
4 changes: 0 additions & 4 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
Rails.application.config.assets.precompile += %w(
application-ie6.css
application-ie6.css
application-ie7.css
application-ie8.css
print.css
webchat.js
)

0 comments on commit 42de4fb

Please sign in to comment.