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:
Javi Martín
2024-04-12 15:26:25 +02:00
parent ce1ee861f1
commit 63eacf4579
5 changed files with 9 additions and 8 deletions

View File

@@ -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

View File

@@ -0,0 +1,5 @@
.admin {
.tabs-content > .tabs-panel {
display: block;
}
}

View File

@@ -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>

View File

@@ -1,7 +0,0 @@
<noscript>
<style type="text/css">
.admin .tabs-content > .tabs-panel {
display: block;
}
</style>
</noscript>

View File

@@ -2,7 +2,6 @@
<html <%= common_html_attributes %>>
<head>
<%= render "layouts/common_head", default_title: "Admin" %>
<%= render "layouts/no_script" %>
<%= content_for :head %>
</head>