Skip to content

Commit 2f1a682

Browse files
committed
theme/index.hbs: Display message if JavaScript unavailable.
1 parent 69d8c30 commit 2f1a682

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/theme/css/general.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ blockquote {
4545
border-right: none;
4646
}
4747

48+
li.js-unavailable {
49+
background-color: #f6cf68;
50+
border-radius: 10px;
51+
margin-left: 1em;
52+
padding-left: 1em;
53+
padding-right: 1em;
54+
}
55+
4856
table {
4957
border-collapse: collapse;
5058
}
@@ -346,6 +354,14 @@ body {
346354
blockquote code {
347355
color: #62b086;
348356
}
357+
li.js-unavailable {
358+
background-color: #f6cf68;
359+
color: #000000;
360+
border-radius: 10px;
361+
margin-left: 1em;
362+
padding-left: 1em;
363+
padding-right: 1em;
364+
}
349365
table td {
350366
border: 1px #2c2c2c solid;
351367
}

src/theme/index.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
</button>
4949
</li>
5050
{{/if}}
51+
<noscript>
52+
<li class="js-unavailable">Search functionality requires JavaScript</li>
53+
</noscript>
5154
</ul>
5255
<ul id="nav-right">
5356
<li><a href="https://www.voidlinux.org">Home</a></li>

0 commit comments

Comments
 (0)