Skip to content

Commit 9fd43ea

Browse files
committed
style: update sidebar subbook styles
1 parent 3f2f44b commit 9fd43ea

File tree

2 files changed

+16
-42
lines changed

2 files changed

+16
-42
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@interledger/docs-design-system",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"type": "module",
55
"description": "Shared styles and components used across all Interledger Starlight documentation sites",
66
"exports": {
@@ -20,6 +20,6 @@
2020
"url": "https://github.com/interledger/docs-design-system"
2121
},
2222
"dependencies": {
23-
"mermaid": "^10.9.0"
23+
"mermaid": "^10.9.1"
2424
}
2525
}

src/styles/ilf-docs.css

Lines changed: 14 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@
9595
padding: var(--space-2xs) var(--sl-sidebar-item-padding-inline);
9696
}
9797

98+
.sidebar-content .top-level ul summary span {
99+
font-size: var(--sl-text-sm);
100+
}
101+
98102
.sidebar-content [data-icon="external"]::after {
99103
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path stroke="hsl(221,8%,56%)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M11 1h6m0 0v6m0-6L7 11"/></svg>');
100104
height: 0.75em;
@@ -367,17 +371,11 @@ thead tr:first-of-type th:last-of-type {
367371
border-start-end-radius: var(--border-radius);
368372
}
369373

370-
.sl-markdown-content
371-
thead
372-
+ tbody
373-
tr:nth-child(2n):not(:where(.not-content *)) {
374+
.sl-markdown-content thead + tbody tr:nth-child(2n):not(:where(.not-content *)) {
374375
background-color: var(--sl-color-gray-7, var(--sl-color-gray-6));
375376
}
376377

377-
.sl-markdown-content
378-
thead
379-
+ tbody
380-
tr:nth-child(2n + 1):not(:where(.not-content *)) {
378+
.sl-markdown-content thead + tbody tr:nth-child(2n + 1):not(:where(.not-content *)) {
381379
background-color: initial;
382380
}
383381

@@ -394,47 +392,23 @@ thead tr:first-of-type th:last-of-type {
394392
padding: var(--space-2xs) var(--space-xs);
395393
}
396394

397-
.sl-markdown-content
398-
tbody
399-
tr:first-of-type:not(:where(.not-content *))
400-
th:first-child,
401-
.sl-markdown-content
402-
tbody
403-
tr:first-of-type:not(:where(.not-content *))
404-
td:first-child {
395+
.sl-markdown-content tbody tr:first-of-type:not(:where(.not-content *)) th:first-child,
396+
.sl-markdown-content tbody tr:first-of-type:not(:where(.not-content *)) td:first-child {
405397
border-start-start-radius: var(--border-radius);
406398
}
407399

408-
.sl-markdown-content
409-
tbody
410-
tr:first-of-type:not(:where(.not-content *))
411-
th:last-child,
412-
.sl-markdown-content
413-
tbody
414-
tr:first-of-type:not(:where(.not-content *))
415-
td:last-child {
400+
.sl-markdown-content tbody tr:first-of-type:not(:where(.not-content *)) th:last-child,
401+
.sl-markdown-content tbody tr:first-of-type:not(:where(.not-content *)) td:last-child {
416402
border-start-end-radius: var(--border-radius);
417403
}
418404

419-
.sl-markdown-content
420-
tbody
421-
tr:last-of-type:not(:where(.not-content *))
422-
th:first-child,
423-
.sl-markdown-content
424-
tbody
425-
tr:last-of-type:not(:where(.not-content *))
426-
td:first-child {
405+
.sl-markdown-content tbody tr:last-of-type:not(:where(.not-content *)) th:first-child,
406+
.sl-markdown-content tbody tr:last-of-type:not(:where(.not-content *)) td:first-child {
427407
border-end-start-radius: var(--border-radius);
428408
}
429409

430-
.sl-markdown-content
431-
tbody
432-
tr:last-of-type:not(:where(.not-content *))
433-
th:last-child,
434-
.sl-markdown-content
435-
tbody
436-
tr:last-of-type:not(:where(.not-content *))
437-
td:last-child {
410+
.sl-markdown-content tbody tr:last-of-type:not(:where(.not-content *)) th:last-child,
411+
.sl-markdown-content tbody tr:last-of-type:not(:where(.not-content *)) td:last-child {
438412
border-end-end-radius: var(--border-radius);
439413
}
440414

0 commit comments

Comments
 (0)