starlight-theme-bejamas 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/overrides/Footer.astro +19 -10
- package/src/overrides/Pagination.astro +5 -3
- package/src/styles/theme.css +88 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# starlight-theme-bejamas
|
|
2
2
|
|
|
3
|
+
## 0.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#25](https://github.com/bejamas/ui/pull/25) [`001ddca`](https://github.com/bejamas/ui/commit/001ddcae75e510cd5f2afca4e24af6412bf84ed9) Thanks [@thomkrupa](https://github.com/thomkrupa)! - improve source preview
|
|
8
|
+
|
|
9
|
+
## 0.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#19](https://github.com/bejamas/ui/pull/19) [`bd4c3a0`](https://github.com/bejamas/ui/commit/bd4c3a0b596718a25aefaf7b30d185d30693618a) Thanks [@thomkrupa](https://github.com/thomkrupa)! - improve page footer ui
|
|
14
|
+
|
|
3
15
|
## 0.1.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -6,19 +6,20 @@ import config from "virtual:starlight/user-config";
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<footer class="sl-flex footer-wide">
|
|
9
|
-
<div class="meta
|
|
10
|
-
<EditLink />
|
|
11
|
-
<LastUpdated />
|
|
12
|
-
</div>
|
|
9
|
+
<div class="meta"><EditLink /><LastUpdated /></div>
|
|
13
10
|
<Pagination />
|
|
14
11
|
<div class="fade"></div>
|
|
15
12
|
</footer>
|
|
16
13
|
|
|
17
14
|
{
|
|
18
15
|
config.credits && (
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
<div class="kudos sl-flex footer-wide">
|
|
17
|
+
<p>
|
|
18
|
+
Built at <a href="https://bejamas.com?utm_source=ui">Bejamas</a>. The
|
|
19
|
+
source code is available on{" "}
|
|
20
|
+
<a href="https://github.com/bejamas/ui">GitHub</a>.
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
22
23
|
)
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -62,6 +63,10 @@ import config from "virtual:starlight/user-config";
|
|
|
62
63
|
margin-top: 3rem;
|
|
63
64
|
font-size: var(--sl-text-sm);
|
|
64
65
|
color: var(--sl-color-gray-3);
|
|
66
|
+
display: flex;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.meta:empty {
|
|
65
70
|
display: none;
|
|
66
71
|
}
|
|
67
72
|
|
|
@@ -74,15 +79,19 @@ import config from "virtual:starlight/user-config";
|
|
|
74
79
|
gap: 0.5em;
|
|
75
80
|
margin-block: 0;
|
|
76
81
|
font-size: var(--sl-text-xs);
|
|
77
|
-
text-decoration: none;
|
|
78
82
|
color: var(--muted-foreground);
|
|
79
83
|
justify-content: center;
|
|
80
84
|
padding-top: calc(var(--spacing) * 12);
|
|
81
|
-
padding-bottom:
|
|
85
|
+
padding-bottom: 0;
|
|
82
86
|
background-color: var(--background);
|
|
83
87
|
justify-content: center;
|
|
84
88
|
}
|
|
85
|
-
.kudos
|
|
89
|
+
.kudos a {
|
|
90
|
+
color: var(--muted-foreground);
|
|
91
|
+
text-decoration: underline;
|
|
92
|
+
text-underline-offset: 0.1875rem;
|
|
93
|
+
}
|
|
94
|
+
.kudos a:hover {
|
|
86
95
|
color: var(--foreground);
|
|
87
96
|
}
|
|
88
97
|
|
|
@@ -7,7 +7,7 @@ const { prev, next } = pagination;
|
|
|
7
7
|
const isRtl = dir === "rtl";
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
<div class="
|
|
10
|
+
<div class="print:hidden z-10 pagination-links" dir={dir}>
|
|
11
11
|
{
|
|
12
12
|
prev && (
|
|
13
13
|
<Button as="a" href={prev.href} rel="prev" variant="outline">
|
|
@@ -29,15 +29,17 @@ const isRtl = dir === "rtl";
|
|
|
29
29
|
<style>
|
|
30
30
|
@layer starlight.core {
|
|
31
31
|
.pagination-links {
|
|
32
|
-
display:
|
|
33
|
-
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: flex-end;
|
|
34
34
|
gap: 1rem;
|
|
35
|
+
margin-top: calc(var(--spacing) * 5);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
[rel="next"] {
|
|
38
39
|
justify-content: end;
|
|
39
40
|
text-align: end;
|
|
40
41
|
flex-direction: row-reverse;
|
|
42
|
+
margin-left: auto;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
svg {
|
package/src/styles/theme.css
CHANGED
|
@@ -413,16 +413,102 @@
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
.sl-bejamas-component-preview {
|
|
416
|
-
min-height:
|
|
416
|
+
min-height: calc(var(--spacing) * 72);
|
|
417
417
|
padding: 1rem;
|
|
418
418
|
border: 1px solid var(--border);
|
|
419
|
-
border-radius: 0
|
|
419
|
+
border-radius: var(--radius-md) var(--radius-md) 0 0;
|
|
420
420
|
display: flex;
|
|
421
421
|
justify-content: center;
|
|
422
422
|
align-items: center;
|
|
423
423
|
background-color: var(--background);
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
+
.sl-bejamas-component-preview + .expressive-code {
|
|
427
|
+
margin-top: 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.sl-bejamas-component-preview + .expressive-code pre {
|
|
431
|
+
border-radius: 0;
|
|
432
|
+
border: 0;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.sl-bejamas-component-preview + .expressive-code {
|
|
436
|
+
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
|
437
|
+
border: 1px solid var(--border);
|
|
438
|
+
border-top: 0;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.expressive-code {
|
|
442
|
+
border-radius: var(--radius-lg);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.ec-collapse__toggle {
|
|
446
|
+
font-family: var(--font-sans);
|
|
447
|
+
background-color: var(--background);
|
|
448
|
+
color: var(--muted-foreground);
|
|
449
|
+
border: 1px solid var(--border);
|
|
450
|
+
border-radius: var(--radius-lg);
|
|
451
|
+
padding: calc(var(--spacing) * 2) calc(var(--spacing) * 3);
|
|
452
|
+
font-size: var(--text-sm);
|
|
453
|
+
cursor: pointer;
|
|
454
|
+
font-weight: 500;
|
|
455
|
+
transition: all 0.15s ease-out;
|
|
456
|
+
bottom: 50%;
|
|
457
|
+
transform: translateY(50%) translateX(-50%);
|
|
458
|
+
height: calc(var(--spacing) * 8.5);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.expressive-code .ec-collapse.ec-collapse--collapsed .ec-collapse__content {
|
|
462
|
+
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.ec-collapse__gradient {
|
|
466
|
+
height: 100%;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.ec-collapse.ec-collapse--collapsed::after {
|
|
470
|
+
content: "";
|
|
471
|
+
--blur: 4px;
|
|
472
|
+
--stop: 50%;
|
|
473
|
+
--height: 100%;
|
|
474
|
+
position: absolute;
|
|
475
|
+
pointer-events: none;
|
|
476
|
+
width: 100%;
|
|
477
|
+
height: var(--height);
|
|
478
|
+
user-select: none;
|
|
479
|
+
-webkit-user-select: none;
|
|
480
|
+
left: 0;
|
|
481
|
+
-webkit-backdrop-filter: blur(var(--blur));
|
|
482
|
+
backdrop-filter: blur(var(--blur));
|
|
483
|
+
background: linear-gradient(to bottom, transparent, var(--background));
|
|
484
|
+
mask-image: linear-gradient(
|
|
485
|
+
to top,
|
|
486
|
+
var(--background) var(--stop),
|
|
487
|
+
transparent
|
|
488
|
+
);
|
|
489
|
+
bottom: 0;
|
|
490
|
+
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.ec-collapse.ec-collapse--expanded .ec-collapse__toggle {
|
|
494
|
+
display: none;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.ec-collapse.ec-collapse--expanded {
|
|
498
|
+
max-height: calc(var(--spacing) * 72);
|
|
499
|
+
overflow: auto;
|
|
500
|
+
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.ec-collapse__toggle:hover {
|
|
504
|
+
background-color: var(--muted);
|
|
505
|
+
color: var(--foreground);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.ec-collapse__icon {
|
|
509
|
+
display: none;
|
|
510
|
+
}
|
|
511
|
+
|
|
426
512
|
.sl-markdown-content ul:not(:where(.not-content *)) {
|
|
427
513
|
list-style: disc;
|
|
428
514
|
padding-left: 1rem;
|