File tree 4 files changed +26
-0
lines changed
4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
54
54
<link rel=\" stylesheet\" type=\" text/css\" href=\" {root_path}light{suffix}.css\" \
55
55
id=\" themeStyle\" >\
56
56
<script src=\" {root_path}storage{suffix}.js\" ></script>\
57
+ <noscript><link rel=\" stylesheet\" href=\" {root_path}noscript{suffix}.css\" ></noscript>\
57
58
{css_extension}\
58
59
{favicon}\
59
60
{in_header}\
Original file line number Diff line number Diff line change @@ -772,6 +772,9 @@ fn write_shared(
772
772
write_minify ( cx. dst . join ( & format ! ( "settings{}.css" , cx. shared. resource_suffix) ) ,
773
773
static_files:: SETTINGS_CSS ,
774
774
options. enable_minification ) ?;
775
+ write_minify ( cx. dst . join ( & format ! ( "noscript{}.css" , cx. shared. resource_suffix) ) ,
776
+ static_files:: NOSCRIPT_CSS ,
777
+ options. enable_minification ) ?;
775
778
776
779
// To avoid "light.css" to be overwritten, we'll first run over the received themes and only
777
780
// then we'll run over the "official" styles.
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright 2018 The Rust Project Developers. See the COPYRIGHT
3
+ * file at the top-level directory of this distribution and at
4
+ * http://rust-lang.org/COPYRIGHT.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7
+ * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8
+ * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9
+ * option. This file may not be copied, modified, or distributed
10
+ * except according to those terms.
11
+ */
12
+
13
+ # main > h2 + div , # main > h2 + h3 , # main > h3 + div {
14
+ display : block;
15
+ }
16
+
17
+ .loading-content {
18
+ display : none;
19
+ }
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ pub static RUSTDOC_CSS: &'static str = include_str!("static/rustdoc.css");
23
23
/// The file contents of `settings.css`, responsible for the items on the settings page.
24
24
pub static SETTINGS_CSS : & ' static str = include_str ! ( "static/settings.css" ) ;
25
25
26
+ /// The file contents of the `noscript.css` file, used in case JS isn't supported or is disabled.
27
+ pub static NOSCRIPT_CSS : & ' static str = include_str ! ( "static/noscript.css" ) ;
28
+
26
29
/// The file contents of `normalize.css`, included to even out standard elements between browser
27
30
/// implementations.
28
31
pub static NORMALIZE_CSS : & ' static str = include_str ! ( "static/normalize.css" ) ;
You can’t perform that action at this time.
0 commit comments