Skip to content

Commit 33dfe99

Browse files
committed
Auto merge of #2101 - kzys:noscript, r=jtgeibel
Tweak <noscript> text and placement After having FastBoot, JavaScript would not be "required" but still necessary for full functionality of crates.io.
2 parents a363a17 + 2ef458e commit 33dfe99

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

app/index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@
2323
<link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Cargo">
2424
</head>
2525
<body>
26-
{{content-for 'body'}}
2726
<noscript>
28-
<div id="main">
29-
<div class='noscript'>
30-
This site requires JavaScript to be enabled.
31-
</div>
32-
</div>
27+
<div id='noscript'>
28+
For full functionality of this site it is necessary to enable JavaScript.
29+
</div>
3330
</noscript>
31+
32+
{{content-for 'body'}}
3433

3534
<script src="{{rootURL}}assets/vendor.js"></script>
3635
<script src="{{rootURL}}assets/cargo.js"></script>

app/styles/app.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ body > div {
4040
}
4141
}
4242

43+
#noscript {
44+
color: white;
45+
padding: 10px 0;
46+
}
47+
4348
#main {
4449
display: flex;
4550
flex-direction: column;

0 commit comments

Comments
 (0)