Skip to content

Commit 62398d6

Browse files
committed
bold present
1 parent d0358e1 commit 62398d6

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

assets/index.css

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -305,36 +305,40 @@ p img {
305305
.scroll-to-top {
306306
--h: var(--theme);
307307
bottom: 1rem;
308-
height: 3rem;
308+
height: 2.5rem;
309309
left: 1rem;
310310
position: fixed;
311-
width: 3rem;
311+
width: 2.5rem;
312312
z-index: 1;
313313
}
314314

315+
.scroll-to-top svg {
316+
background-color: var(--dark);
317+
}
318+
319+
.scroll-to-top svg:hover {
320+
background-color: var(--key);
321+
}
322+
315323
article {
316324
background-color: var(--dark);
317325
border-radius: .5rem;
318-
padding: .125rem 1.5rem;
326+
color: var(--text);
319327
margin: 1rem 0;
328+
padding: .125rem 1.5rem;
320329
}
321330

322331
article:hover {
323332
background-color: var(--key);
324333
}
325334

326-
article header {
327-
color: var(--text);
328-
}
329-
330-
article div,
331335
article footer {
332336
color: var(--sub);
333337
margin: 1rem 0;
334338
}
335339

336-
.author {
337-
color: var(--theme);
340+
.present {
341+
color: var(--text);
338342
}
339343

340344
/** https://github.com/highlightjs/highlight.js/blob/main/src/styles/atom-one-dark.css */

components/Clickable.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ export default ({ title, description, date, url }) => (
88
<p>{description}</p>
99
</div>
1010
<footer>
11-
<span class="author">apacheli</span>
12-
<span> - {date}</span>
11+
<span>{date.endsWith("present") ? <strong class="present">{date}</strong> : date}</span>
1312
</footer>
1413
</article>
1514
</a>

0 commit comments

Comments
 (0)