Skip to content

Commit a3f0f15

Browse files
committed
fix: Improve card title hover effects and commit format
* Fix hover effect for project and OSS card titles with better color contrast * Add background color change on hover for better legibility * Correct commit message format to avoid line breaks between bullet points
1 parent f089c69 commit a3f0f15

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

content/posts/implementing_buffered_queue_in_rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Finally, we receive return values of type [JoinHandle](https://doc.rust-lang.o
312312

313313
Running `cargo run` will output the following:
314314

315-
```plain
315+
```
316316
initializing consumer thread...
317317
initializing producer thread...
318318
pushed element

static/custom.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:root {
44
/* Increase base font size from 13.5px to 15px (more moderate increase) */
55
--font-size-base: 15px;
6+
--primary-color: #0066cc; /* Define a primary color if not already defined */
67
}
78

89
/* Increase social icon size from 16px to 18px (more proportional) */
@@ -91,11 +92,16 @@ nav .left-nav .socials .social img {
9192
.card-title a {
9293
text-decoration: none;
9394
color: var(--text-0);
95+
background-color: transparent;
96+
padding: 2px 4px;
97+
border-radius: 2px;
98+
transition: all 0.2s ease;
9499
}
95100

96101
.card-title a:hover {
97-
text-decoration: underline;
98-
color: var(--primary-color);
102+
text-decoration: none;
103+
color: white;
104+
background-color: var(--primary-color);
99105
}
100106

101107
.card-description {

0 commit comments

Comments
 (0)