Skip to content

Commit bef0c3b

Browse files
committed
Fine-tune TagCluster spacing
1 parent 43d7a7f commit bef0c3b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/BlogPost.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const { Content } = await render(post);
3232
@use '../styles/_theme' as *;
3333

3434
header {
35-
margin-bottom: $space-md;
35+
margin-bottom: calc($space-md - $space-sm);
3636

3737
> * {
3838
@include space-between($space-sm);

src/components/TagCluster.astro

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,27 @@
1111
@use '../styles/_theme' as *;
1212

1313
ul {
14+
padding-block: $space-sm;
1415
padding-inline: $space-md;
1516

1617
overflow-x: scroll;
1718
text-wrap: nowrap;
18-
-ms-overflow-style: none; /* Internet Explorer 10+ */
19-
scrollbar-width: none; /* Firefox, Safari 18.2+, Chromium 121+ */
2019

20+
// Hide the scrollbar (if supported)
21+
-ms-overflow-style: none;
22+
scrollbar-width: none;
2123
::-webkit-scrollbar {
2224
display: none;
2325
}
2426

2527
li {
2628
display: inline-block;
29+
margin-block: 0;
2730
padding: $space-sm;
28-
margin-block-end: 0;
2931

3032
border: $border-thickness solid $color-subtle;
3133
border-radius: $border-radius;
32-
box-shadow: 0 $border-thickness $color-subtle;
34+
box-shadow: 0 $shadow-offset $color-subtle;
3335
}
3436
}
3537
</style>

0 commit comments

Comments
 (0)