Skip to content

Commit 4ef6ea2

Browse files
committed
Reduce drift to the right and try to emphasise the project name
1 parent dace049 commit 4ef6ea2

File tree

4 files changed

+35
-26
lines changed

4 files changed

+35
-26
lines changed

docs/assets/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ <h2 class="caption">Projects:</h2>
111111

112112
<ul class="list" role="navigation">
113113
<li class="serenity-project item">
114-
<h3 id="project-serenity">Serenity</h3>
114+
<h3 class="caption" id="project-serenity">Serenity</h3>
115115

116-
<p>
116+
<p class="text -indent">
117117
The main project, providing support for
118118
Discord's Gateway and REST APIs.
119119
</p>
@@ -154,9 +154,9 @@ <h4 class="caption">Documentation links:</h4>
154154
</li>
155155

156156
<li class="serenity-project item">
157-
<h3 id="project-songbird">Songbird</h3>
157+
<h3 class="caption" id="project-songbird">Songbird</h3>
158158

159-
<p class="text">
159+
<p class="text -indent">
160160
Songbird provides support for the voice portion
161161
of Discord's API.
162162
</p>
@@ -197,13 +197,13 @@ <h4 class="caption">Documentation links:</h4>
197197
</li>
198198

199199
<li class="serenity-project item">
200-
<h3 id="project-poise">Poise</h3>
200+
<h3 class="caption" id="project-poise">Poise</h3>
201201

202-
<p class="text">
202+
<p class="text -indent">
203203
Poise is a command framework for Serenity.
204204
</p>
205205

206-
<p class="text">
206+
<p class="text -indent">
207207
It has support for prefix-based commands (e.g.
208208
<code>!ping</code>), as well as Discord's
209209
application commands, which natively integrate

src/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ <h2 class="caption">Projects:</h2>
112112

113113
<ul class="list" role="navigation">
114114
<li class="serenity-project item">
115-
<h3 id="project-serenity">Serenity</h3>
115+
<h3 class="caption" id="project-serenity">Serenity</h3>
116116

117-
<p>
117+
<p class="text -indent">
118118
The main project, providing support for
119119
Discord's Gateway and REST APIs.
120120
</p>
@@ -155,9 +155,9 @@ <h4 class="caption">Documentation links:</h4>
155155
</li>
156156

157157
<li class="serenity-project item">
158-
<h3 id="project-songbird">Songbird</h3>
158+
<h3 class="caption" id="project-songbird">Songbird</h3>
159159

160-
<p class="text">
160+
<p class="text -indent">
161161
Songbird provides support for the voice portion
162162
of Discord's API.
163163
</p>
@@ -198,13 +198,13 @@ <h4 class="caption">Documentation links:</h4>
198198
</li>
199199

200200
<li class="serenity-project item">
201-
<h3 id="project-poise">Poise</h3>
201+
<h3 class="caption" id="project-poise">Poise</h3>
202202

203-
<p class="text">
203+
<p class="text -indent">
204204
Poise is a command framework for Serenity.
205205
</p>
206206

207-
<p class="text">
207+
<p class="text -indent">
208208
It has support for prefix-based commands (e.g.
209209
<code>!ping</code>), as well as Discord's
210210
application commands, which natively integrate

src/index/style.scss

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
@use "../base/dimensions";
22

3+
:root,
4+
:root[data-theme="light"] {
5+
--border-colour: hsl(0, 0%, 0%);
6+
}
7+
8+
:root[data-theme="dark"] {
9+
--border-colour: hsl(0, 0%, 100%);
10+
}
11+
312
body {
413
min-block-size: 100vh;
514
}
@@ -64,6 +73,10 @@ footer {
6473

6574
> .projects > .list {
6675
margin-block-start: 0;
76+
77+
padding-inline-start: 1em;
78+
79+
list-style: none;
6780
}
6881

6982
> .widget {
@@ -79,21 +92,17 @@ footer {
7992
}
8093

8194
.serenity-project {
95+
> .caption {
96+
margin-inline-start: -0.5em;
97+
98+
border-block-end: 1px solid var(--border-colour);
99+
}
100+
82101
> .text {
83102
max-inline-size: 70ch;
84103
}
85104
}
86105

87-
:root,
88-
:root[data-theme="light"] {
89-
--footer-border-colour: hsl(0, 0%, 0%);
90-
}
91-
92-
:root,
93-
:root[data-theme="dark"] {
94-
--footer-border-colour: hsl(0, 0%, 100%);
95-
}
96-
97106
.footer-content {
98-
border-block-start: 1px solid var(--footer-border-colour);
107+
border-block-start: 1px solid var(--border-colour);
99108
}

0 commit comments

Comments
 (0)