Skip to content

Commit 2ef458e

Browse files
committed
Reword the noscript message
After having FastBoot, JavaScript would not be "required" but still necessary for full functionality of crates.io
1 parent 37bf4a6 commit 2ef458e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

app/index.html

+5-6
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

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ body > div {
4141
}
4242
}
4343

44+
#noscript {
45+
color: white;
46+
padding: 10px 0;
47+
}
48+
4449
#main {
4550
@include display-flex;
4651
@include flex-direction(column);

0 commit comments

Comments
 (0)