Skip to content

Commit 11d2cd9

Browse files
Merge pull request #196 from SwiftFiddle/styling
Styling
2 parents 29754e2 + e709b0f commit 11d2cd9

File tree

4 files changed

+35
-37
lines changed

4 files changed

+35
-37
lines changed

Public/css/common.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ body {
3232
}
3333

3434
.nav-item button {
35-
width: 168px;
35+
width: 160px;
3636
}
3737

3838
.tab-content {

Public/css/popover.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
.popover-content .title {
19-
margin: 0 8px 0 8px;
19+
margin: 0 10px 0 10px;
2020
padding-top: 8px;
2121
font-weight: bolder;
2222
font-size: larger;
@@ -31,22 +31,21 @@
3131
.popover-content dl {
3232
margin-top: 0;
3333
margin-bottom: 0;
34-
padding: 8px;
34+
padding: 10px;
3535
max-height: 60vh;
3636
font-family: Menlo, Consolas, "DejaVu Sans Mono", "Ubuntu Mono", monospace;
3737
overflow: scroll;
3838
}
3939

4040
.popover-content dt {
41-
padding: 0 8px;
42-
background-color: #f5f5f5;
41+
padding: 0;
4342
font-family: Menlo, Consolas, "DejaVu Sans Mono", "Ubuntu Mono", monospace;
4443
}
4544

4645
.popover-content dd {
4746
margin-bottom: 2px;
4847
margin-left: 0;
49-
padding: 0 8px;
48+
padding: 0 0 0 10px;
5049
font-family: Menlo, Consolas, "DejaVu Sans Mono", "Ubuntu Mono", monospace;
5150
white-space: pre-line;
5251
}

Public/index.html

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@
3030
<header class="invisible">
3131
<div class="row row-cols-2 g-0">
3232
<div class="col">
33-
<a class="text-decoration-none mx-1" href="/">
34-
<span class="fa-brands fa-swift fa-2x text-primary d-inline-block align-middle p-1 swift-logo"></span><span
35-
class="h4 text-dark d-inline-block align-middle m-0">Swift AST Explorer</span>
36-
</a>
33+
<div class="d-inline-block mx-1">
34+
<a class="text-decoration-none" href="/">
35+
<span
36+
class="fa-brands fa-swift fa-2x text-primary d-inline-block align-middle p-1 swift-logo"></span><span
37+
class="h4 text-dark d-inline-block align-middle m-0">Swift AST Explorer</span>
38+
</a>
39+
</div>
3740
<button id="run-button" type="button" class="btn btn-primary btn-sm rounded-pill px-3 mx-1 disabled"
3841
aria-label="Update">
3942
<span id="run-button-icon" class="fa-solid fa-play fa-fw"></span>
@@ -58,9 +61,9 @@
5861
<span class="fa-solid fa-align-left"></span>
5962
</button>
6063
<span data-bs-toggle="modal" data-bs-target="#help-modal">
61-
<button id="help-button" type="button"
62-
class="btn btn-outline-primary btn-sm rounded-circle button-circle mx-1" data-bs-toggle="tooltip"
63-
data-bs-placement="bottom" data-bs-container="#help-button" title="Help" aria-label="Help">
64+
<button id="help-button" type="button" class="btn btn-outline-primary btn-sm rounded-circle button-circle"
65+
data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-container="#help-button" title="Help"
66+
aria-label="Help">
6467
<span class="fa-solid fa-question"></span>
6568
</button>
6669
</span>
@@ -69,10 +72,9 @@
6972
<nav>
7073
<ul class="nav nav-tabs" role="tablist">
7174
<li class="nav-item lined" role="presentation">
72-
<button type="button" class="nav-link px-4 active" data-bs-toggle="tab"
73-
data-bs-target="#structure-tab-pane" role="tab" aria-controls="structure-tab-pane"
74-
aria-selected="true"><span class="fa-regular fa-folder-tree"></span><span
75-
class="px-3">Structure</span>
75+
<button type="button" class="nav-link active" data-bs-toggle="tab" data-bs-target="#structure-tab-pane"
76+
role="tab" aria-controls="structure-tab-pane" aria-selected="true"><span
77+
class="fa-regular fa-folder-tree"></span><span class="px-3">Structure</span>
7678
</button>
7779
</li>
7880
<li class="nav-item lined" role="presentation">
@@ -117,34 +119,33 @@
117119
<footer class="invisible">
118120
<div class="row row-cols-1 g-0">
119121
<div class="col p-1 text-center">
120-
<span class="mx-2">
122+
<div class="d-inline-block mx-2">
121123
<a class="text-reset text-decoration-none small" href="https://status.swift-ast-explorer.com/"
122124
target="_blank" rel="nofollow noopener noreferrer"><span
123-
class="fa-light fa-monitor-heart-rate"></span><span class="mx-1">System
125+
class="fa-light fa-monitor-heart-rate"></span><span class="mx-2">System
124126
Status</span></a>
125-
</span>
126-
127-
<span class="mx-2">
127+
</div>
128+
<div class="d-inline-block mx-2">
128129
<a class="text-reset text-decoration-none small"
129130
href="https://github.com/swiftfiddle/swift-ast-explorer/issues/new" target="_blank"
130131
rel="nofollow noopener noreferrer"><span class="fa-regular fa-comment-alt-smile"></span><span
131-
class="mx-1">Feedback</span></a>
132-
</span>
133-
<span class="mx-2">
132+
class="mx-2">Feedback</span></a>
133+
</div>
134+
<div class="d-inline-block mx-2">
134135
<a class="text-reset text-decoration-none small" href="https://github.com/swiftfiddle/swift-ast-explorer"
135136
target="_blank" rel="nofollow noopener noreferrer"><span class="fa-brands fa-github"></span><span
136-
class="mx-1">Source Code</span></a>
137-
</span>
138-
<span class="mx-2">
137+
class="mx-2">Source Code</span></a>
138+
</div>
139+
<div class="d-inline-block mx-2">
139140
<a class="text-reset text-decoration-none small" href="https://hachyderm.io/@kishikawakatsumi"
140141
target="_blank" rel="nofollow noopener noreferrer"><span class="fa-regular fa-at"></span><span
141-
class="mx-1">Creator</span></a>
142-
</span>
143-
<span class="mx-2">
142+
class="mx-2">Creator</span></a>
143+
</div>
144+
<div class="d-inline-block mx-2">
144145
<a class="text-reset text-decoration-none small" href="https://github.com/sponsors/kishikawakatsumi"
145146
target="_blank" rel="nofollow noopener noreferrer">
146-
<span class="fa-regular fa-heart"></span></span><span class="mx-1">Donate</span></a>
147-
</span>
147+
<span class="fa-solid fa-heart" style="color: #bf3989;"></span></span><span class="mx-2">Donate</span></a>
148+
</div>
148149
</div>
149150
</div>
150151
</footer>

Public/js/icon.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
faCodeBranch,
1111
faCaretRight,
1212
faCaretDown,
13+
faHeart,
1314
} from "@fortawesome/pro-solid-svg-icons";
1415
import {
1516
faCheck,
@@ -19,8 +20,6 @@ import {
1920
faFileImport,
2021
faCommentAltSmile,
2122
faAt,
22-
faDonate,
23-
faHeart,
2423
} from "@fortawesome/pro-regular-svg-icons";
2524
import {
2625
faFileCode,
@@ -39,6 +38,7 @@ library.add(
3938
faCodeBranch,
4039
faCaretRight,
4140
faCaretDown,
41+
faHeart,
4242

4343
faCheck,
4444
faFolderTree,
@@ -47,8 +47,6 @@ library.add(
4747
faFileImport,
4848
faCommentAltSmile,
4949
faAt,
50-
faDonate,
51-
faHeart,
5250

5351
faFileCode,
5452
faMonitorHeartRate,

0 commit comments

Comments
 (0)