Skip to content

Commit 3def090

Browse files
committed
Align XerahS download layout
1 parent 1766799 commit 3def090

2 files changed

Lines changed: 62 additions & 21 deletions

File tree

css/main.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,41 @@ body {
300300
width: 200px;
301301
}
302302

303+
.xerahs-download-platform {
304+
display: flex;
305+
flex-direction: column;
306+
align-items: center;
307+
}
308+
309+
.xerahs-download-title {
310+
display: inline-flex;
311+
align-items: center;
312+
justify-content: center;
313+
gap: 8px;
314+
min-height: 32px;
315+
line-height: 1.2;
316+
margin-bottom: $container-padding-half / 2;
317+
318+
i {
319+
width: 20px;
320+
line-height: 1;
321+
text-align: center;
322+
}
323+
}
324+
325+
.xerahs-download-buttons {
326+
width: 100%;
327+
display: flex;
328+
flex-direction: column;
329+
align-items: stretch;
330+
gap: $container-padding-half / 2;
331+
min-height: 96px;
332+
333+
.btn {
334+
margin: 0px;
335+
}
336+
}
337+
303338
#download-panel {
304339
div {
305340
background-color: $background-alt;

xerahs/index.html

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,35 @@ <h1>XerahS</h1>
99
<p>Screen capture, file sharing and productivity tool</p>
1010
<p class="lead">XerahS is <strong>ShareX reimagined</strong> with modern UI technologies, built from the ground up for cross-platform performance.</p>
1111
<div class="row mt-4">
12-
<div class="col-sm-4 text-center">
13-
<h4><i class="fa-brands fa-windows"></i> Windows</h4>
14-
<a class="btn btn-default btn-block xerahs-download-win-x64 mb-2" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
15-
x64
16-
</a>
17-
<a class="btn btn-default btn-block xerahs-download-win-arm64" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
18-
Arm64
19-
</a>
12+
<div class="col-sm-4 text-center xerahs-download-platform">
13+
<h4 class="xerahs-download-title"><i class="fa-brands fa-windows"></i> Windows</h4>
14+
<div class="xerahs-download-buttons">
15+
<a class="btn btn-default btn-block xerahs-download-win-x64 mb-2" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
16+
x64
17+
</a>
18+
<a class="btn btn-default btn-block xerahs-download-win-arm64" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
19+
Arm64
20+
</a>
21+
</div>
2022
</div>
21-
<div class="col-sm-4 text-center">
22-
<h4><i class="fa-brands fa-apple"></i> macOS</h4>
23-
<a class="btn btn-default btn-block xerahs-download-mac-x64 mb-2" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
24-
x64
25-
</a>
26-
<a class="btn btn-default btn-block xerahs-download-mac-arm64" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
27-
Arm64
28-
</a>
23+
<div class="col-sm-4 text-center xerahs-download-platform">
24+
<h4 class="xerahs-download-title"><i class="fa-brands fa-apple"></i> macOS</h4>
25+
<div class="xerahs-download-buttons">
26+
<a class="btn btn-default btn-block xerahs-download-mac-x64 mb-2" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
27+
x64
28+
</a>
29+
<a class="btn btn-default btn-block xerahs-download-mac-arm64" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
30+
Arm64
31+
</a>
32+
</div>
2933
</div>
30-
<div class="col-sm-4 text-center">
31-
<h4><i class="fa-brands fa-linux"></i> Linux</h4>
32-
<a class="btn btn-default btn-block xerahs-download-linux" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
33-
x64
34-
</a>
34+
<div class="col-sm-4 text-center xerahs-download-platform">
35+
<h4 class="xerahs-download-title"><i class="fa-brands fa-linux"></i> Linux</h4>
36+
<div class="xerahs-download-buttons">
37+
<a class="btn btn-default btn-block xerahs-download-linux" role="button" href="https://github.com/ShareX/XerahS/releases/latest">
38+
x64
39+
</a>
40+
</div>
3541
</div>
3642
</div>
3743
<div class="mt-4">

0 commit comments

Comments
 (0)