Move noscript styles to their own stylesheet
This way we can use SCSS syntax here, like we do everywhere else.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
//= link stat_graphs.js
|
||||
//= link dashboard_graphs.js
|
||||
//= link dashboard_poster.css
|
||||
//= link noscript.css
|
||||
//= link print.css
|
||||
//= link pdf_fonts.css
|
||||
//= link_tree ../../../vendor/assets/images
|
||||
|
||||
5
app/assets/stylesheets/noscript.scss
Normal file
5
app/assets/stylesheets/noscript.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
.admin {
|
||||
.tabs-content > .tabs-panel {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
@@ -11,3 +11,6 @@
|
||||
<%= javascript_include_tag "application", "data-turbolinks-track" => "reload" %>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= favicon_link_tag image_path_for("favicon.ico") %>
|
||||
<noscript>
|
||||
<%= stylesheet_link_tag "noscript" %>
|
||||
</noscript>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<noscript>
|
||||
<style type="text/css">
|
||||
.admin .tabs-content > .tabs-panel {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
@@ -2,7 +2,6 @@
|
||||
<html <%= common_html_attributes %>>
|
||||
<head>
|
||||
<%= render "layouts/common_head", default_title: "Admin" %>
|
||||
<%= render "layouts/no_script" %>
|
||||
<%= content_for :head %>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user