Skip to content

Commit c551fd6

Browse files
committed
downloads: get rid of tab bar, show all downloads at once
also add anchor links so certain platforms can be referred to directly imo, this javascript-based tab layout has never really worked well (especially if trying to link someone to e.g. the containers)
1 parent e8825d2 commit c551fd6

File tree

8 files changed

+6
-86
lines changed

8 files changed

+6
-86
lines changed

_includes/download_arm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="split-section">
22
<div>
3-
<h3 id="{{ page.name }}">{{ page.name }}</h3>
3+
<h3 id="{{ page.name | slugify }}"><a href="#{{ page.name | slugify }}">{{ page.name }}</a></h3>
44
{{ include.content | markdownify }}
55
</div>
66
<div>

_includes/download_arm_platforms.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="split-section">
22
<div>
3-
<h3 id="{{ page.name }}">{{ page.name }}</h3>
3+
<h3 id="{{ page.name | slugify }}"><a href="#{{ page.name | slugify }}">{{ page.name }}</a></h3>
44
{{ include.content | markdownify }}
55
</div>
66
<div>

_includes/download_containers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="split-section">
22
<div>
3-
<h3 id="{{ page.name }}">{{ page.name }}</h3>
3+
<h3 id="{{ page.name | slugify }}"><a href="#{{ page.name | slugify }}">{{ page.name }}</a></h3>
44
{{ include.content | markdownify }}
55
</div>
66
<div>

_includes/download_pc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="split-section">
22
<div>
3-
<h3 id="{{ page.name }}">{{ page.name }}</h3>
3+
<h3 id="{{ page.name | slugify }}"><a href="#{{ page.name | slugify }}">{{ page.name }}</a></h3>
44
{{ include.content | markdownify }}
55
<div class="alert alert-warning" role="alert">
66
To install the packages for the desktop environment, DON'T choose "install

_layouts/default.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<link rel="alternate" type="application/atom+xml" title="Void Linux News feed" href="/atom.xml" />
2929
<script src="/assets/js/jquery.min.js"></script>
3030
<script src="/assets/js/bootstrap.min.js"></script>
31-
<script src="/assets/js/tabbar.js"></script>
3231
</head>
3332
<body role="document">
3433
<nav class="navbar navbar-default navbar-inverse navbar-sticky" role="navigation">

_layouts/download.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,11 @@
55
<div class="container">
66
{{ content }}
77

8-
<ul class="tab-bar" id="tab-bar">
9-
{% for platform in site.platforms %}
10-
<li>
11-
<a href="#{{ platform.name }}">{{ platform.name }}</a>
12-
</li>
13-
{% endfor %}
14-
</ul>
15-
16-
<div id="tab-content">
8+
<div>
179
{% for platform in site.platforms %}
1810
<div>
1911
{{ platform.content }}
20-
<noscript>
21-
<hr />
22-
</noscript>
12+
{% unless forloop.last %}<hr>{% endunless %}
2313
</div>
2414
{% endfor %}
2515
</div>

assets/css/misc.css

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -185,37 +185,6 @@ h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
185185
border-color: black;
186186
}
187187

188-
.tab-bar {
189-
list-style: none;
190-
display: flex;
191-
padding: 0;
192-
margin: 0;
193-
border-bottom: 1px solid #ddd;
194-
}
195-
.tab-bar li {
196-
padding: 1em 2em;
197-
cursor: pointer;
198-
border-bottom: 2px solid white;
199-
transition: border-color 0.4s;
200-
}
201-
.tab-bar li:hover {
202-
border-bottom: 2px solid #ddd;
203-
}
204-
.tab-bar li.active {
205-
font-weight: bold;
206-
border-bottom: 2px solid #478061;
207-
}
208-
@media (max-width: 500px) {
209-
.tab-bar li {
210-
padding: 1em;
211-
}
212-
}
213-
.tab-bar li a {
214-
color: inherit;
215-
}
216-
.tab-bar li a:focus {
217-
text-decoration: none;
218-
}
219188

220189
.split-section {
221190
display: flex;
@@ -287,15 +256,6 @@ h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
287256
hr {
288257
border-top: 1px solid #888;
289258
}
290-
.inline-download-links, .tab-bar {
291-
border-bottom: 1px solid #888;
292-
}
293-
.tab-bar li {
294-
border-bottom: 2px solid #aaa;
295-
}
296-
.tab-bar li:hover {
297-
border-bottom: 2px solid #62b086;
298-
}
299259
code {
300260
background-color: inherit;
301261
color: white;

assets/js/tabbar.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)