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 stat_graphs.js
|
||||||
//= link dashboard_graphs.js
|
//= link dashboard_graphs.js
|
||||||
//= link dashboard_poster.css
|
//= link dashboard_poster.css
|
||||||
|
//= link noscript.css
|
||||||
//= link print.css
|
//= link print.css
|
||||||
//= link pdf_fonts.css
|
//= link pdf_fonts.css
|
||||||
//= link_tree ../../../vendor/assets/images
|
//= 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" %>
|
<%= javascript_include_tag "application", "data-turbolinks-track" => "reload" %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<%= favicon_link_tag image_path_for("favicon.ico") %>
|
<%= 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 %>>
|
<html <%= common_html_attributes %>>
|
||||||
<head>
|
<head>
|
||||||
<%= render "layouts/common_head", default_title: "Admin" %>
|
<%= render "layouts/common_head", default_title: "Admin" %>
|
||||||
<%= render "layouts/no_script" %>
|
|
||||||
<%= content_for :head %>
|
<%= content_for :head %>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user