Skip to content

Commit 1894cd5

Browse files
committed
chore: improve fidget display
1 parent 1537c2e commit 1894cd5

File tree

5 files changed

+47
-3
lines changed

5 files changed

+47
-3
lines changed

.changeset/slow-readers-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"r.obin.ch": patch
3+
---
4+
5+
Improve fidget display

src/components/Brand.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
box-sizing: content-box;
1010
white-space: nowrap;
1111
line-height: 1.2;
12+
user-select: none;;
1213
}
1314

1415
span:last-of-type {

src/components/Details.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ const { defaultOpen = false, title } = Astro.props;
4949

5050
.content {
5151
padding: 0 2ch;
52+
line-height: normal;
53+
54+
*:last-child {
55+
margin-bottom: 0;
56+
}
5257
}
5358
</style>
5459

src/components/fidget/FidgetCheckboxes.astro

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
const AMOUNT = 252;
2+
const AMOUNT = 260;
33
const SUPABASE_URL = "https://fulwzvmwtfuykfwqesni.supabase.co";
44
const SUPABASE_KEY =
55
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ1bHd6dm13dGZ1eWtmd3Flc25pIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjU3MjU3NTgsImV4cCI6MjA0MTMwMTc1OH0.QiG12IlH8YmTEeI0BKQ-p87-S8JaXt2oyeLlXxBloyI";
@@ -83,8 +83,18 @@ const SUPABASE_KEY =
8383

8484
.wrapper {
8585
display: grid;
86-
width: 36rem;
87-
grid-template-columns: repeat(auto-fill, 2rem);
86+
width: 30rem;
87+
grid-template-columns: repeat(auto-fill, 1.5rem);
88+
89+
border: 1px solid var(--color-primary-240);
90+
background-color: var(--color-white-95);
91+
border-radius: var(--border-radius);
92+
padding: 0.8rem;
93+
}
94+
95+
input[type="checkbox"] {
96+
width: 1rem;
97+
height: 1rem;
8898
}
8999
</style>
90100

src/layouts/DefaultLayout.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ body > header {
202202
display: none;
203203
}
204204

205+
nav {
206+
user-select: none;
207+
}
208+
205209
main {
206210
flex-grow: 1;
207211
padding-top: 2rem;
@@ -335,6 +339,25 @@ kbd:hover {
335339
top: 1px;
336340
}
337341

342+
dt {
343+
font-style: italic;
344+
}
345+
346+
dd {
347+
margin-left: 1ch;
348+
margin-bottom: 1rem;
349+
padding-left: 1ch;
350+
border-left: 1px solid var(--color-primary-240);
351+
352+
& > * {
353+
margin-bottom: var(--gap-tiny);
354+
}
355+
}
356+
357+
dd:last-child {
358+
margin-bottom: 0;
359+
}
360+
338361
main li {
339362
list-style: ">";
340363
padding-inline-start: 1ch;

0 commit comments

Comments
 (0)