starlight-theme-bejamas 0.1.16 → 0.1.17
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# starlight-theme-bejamas
|
|
2
2
|
|
|
3
|
+
## 0.1.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#80](https://github.com/bejamas/ui/pull/80) [`c3f2b3a`](https://github.com/bejamas/ui/commit/c3f2b3a2f94f8c60657e33bab49320a5d5258e11) Thanks [@thomkrupa](https://github.com/thomkrupa)! - fix shared splash layout bg
|
|
8
|
+
|
|
9
|
+
- [#82](https://github.com/bejamas/ui/pull/82) [`043d0fa`](https://github.com/bejamas/ui/commit/043d0faa76a34f25620f7ad8bc30d8aa9be8e3be) Thanks [@thomkrupa](https://github.com/thomkrupa)! - fix sidebar margin
|
|
10
|
+
|
|
3
11
|
## 0.1.16
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -123,6 +123,11 @@ const shouldRenderNav = options.nav && options.nav.length > 0;
|
|
|
123
123
|
:global(:root[data-has-sidebar]) {
|
|
124
124
|
--__sidebar-pad: calc(2 * var(--sl-nav-pad-x));
|
|
125
125
|
}
|
|
126
|
+
:global(.page-mobile-sidebar-only) .header {
|
|
127
|
+
--__sidebar-pad: 0rem;
|
|
128
|
+
display: flex;
|
|
129
|
+
grid-template-columns: none;
|
|
130
|
+
}
|
|
126
131
|
:global(:root:not([data-has-toc])) {
|
|
127
132
|
--__toc-width: 0rem;
|
|
128
133
|
}
|
|
@@ -10,7 +10,13 @@ const shouldRenderSidebarNav = hasSidebar || template === "splash";
|
|
|
10
10
|
const isSplashTemplate = template === "splash";
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
class:list={[
|
|
15
|
+
"page sl-flex",
|
|
16
|
+
shouldRenderSidebarNav && "page-has-sidebar-nav",
|
|
17
|
+
isSplashTemplate && "page-mobile-sidebar-only",
|
|
18
|
+
]}
|
|
19
|
+
>
|
|
14
20
|
<header class="header">
|
|
15
21
|
<slot name="header" />
|
|
16
22
|
<div class="fade"></div>
|
|
@@ -99,7 +105,7 @@ const isSplashTemplate = template === "splash";
|
|
|
99
105
|
)
|
|
100
106
|
}
|
|
101
107
|
|
|
102
|
-
<div class="main-frame">
|
|
108
|
+
<div class:list={["main-frame", isSplashTemplate && "main-frame-splash"]}>
|
|
103
109
|
{
|
|
104
110
|
template === "splash" ? (
|
|
105
111
|
<slot />
|
|
@@ -213,6 +219,11 @@ const isSplashTemplate = template === "splash";
|
|
|
213
219
|
content: "";
|
|
214
220
|
padding-bottom: 1px;
|
|
215
221
|
}
|
|
222
|
+
|
|
223
|
+
.sidebar-pane {
|
|
224
|
+
padding-top: 0;
|
|
225
|
+
margin-top: margin-top: calc(var(--spacing) * 18);
|
|
226
|
+
}
|
|
216
227
|
}
|
|
217
228
|
|
|
218
229
|
.main-frame {
|
|
@@ -220,6 +231,18 @@ const isSplashTemplate = template === "splash";
|
|
|
220
231
|
/* padding-inline-start: var(--sl-content-inline-start); */
|
|
221
232
|
}
|
|
222
233
|
|
|
234
|
+
.main-frame-splash {
|
|
235
|
+
position: relative;
|
|
236
|
+
isolation: isolate;
|
|
237
|
+
--sl-splash-frame-top: calc(var(--spacing) * 8);
|
|
238
|
+
--sl-splash-frame-inline: 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.main-frame-splash > * {
|
|
242
|
+
position: relative;
|
|
243
|
+
z-index: 1;
|
|
244
|
+
}
|
|
245
|
+
|
|
223
246
|
.main-frame-inner {
|
|
224
247
|
position: relative;
|
|
225
248
|
background-color: var(--sl-main-frame-inner-background);
|
|
@@ -238,6 +261,27 @@ const isSplashTemplate = template === "splash";
|
|
|
238
261
|
}
|
|
239
262
|
}
|
|
240
263
|
|
|
264
|
+
@media (min-width: 48rem) {
|
|
265
|
+
.main-frame-splash::before {
|
|
266
|
+
content: "";
|
|
267
|
+
position: absolute;
|
|
268
|
+
inset-inline: var(--sl-splash-frame-inline);
|
|
269
|
+
inset-block-start: var(--sl-splash-frame-top);
|
|
270
|
+
inset-block-end: 0;
|
|
271
|
+
border: 1px solid var(--sl-main-frame-inner-border);
|
|
272
|
+
border-bottom: 0;
|
|
273
|
+
border-radius: calc(var(--radius) + 12px) calc(var(--radius) + 12px) 0 0;
|
|
274
|
+
background-color: var(--sl-main-frame-inner-background);
|
|
275
|
+
pointer-events: none;
|
|
276
|
+
z-index: 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* Pages with their own local splash frame keep full control. */
|
|
280
|
+
:global(.main-frame-splash:has(.page-bg))::before {
|
|
281
|
+
content: none;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
241
285
|
/* .main-frame-inner::before,
|
|
242
286
|
.main-frame-inner::after {
|
|
243
287
|
content: "";
|
|
@@ -261,6 +305,11 @@ const isSplashTemplate = template === "splash";
|
|
|
261
305
|
} */
|
|
262
306
|
|
|
263
307
|
@media (min-width: 64rem) {
|
|
308
|
+
.page-mobile-sidebar-only {
|
|
309
|
+
--sl-sidebar-width: 0;
|
|
310
|
+
--sl-content-inline-start: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
264
313
|
:global([data-has-sidebar]) .header,
|
|
265
314
|
.page-has-sidebar-nav .header {
|
|
266
315
|
padding-inline-end: var(--sl-nav-pad-x);
|
package/src/styles/theme.css
CHANGED
|
@@ -32,8 +32,16 @@
|
|
|
32
32
|
var(--sl-main-frame-inner-background) 50%
|
|
33
33
|
);
|
|
34
34
|
z-index: -1;
|
|
35
|
+
left: calc(var(--spacing) * 6);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:root[data-has-sidebar]::after {
|
|
35
39
|
left: var(--sl-sidebar-width);
|
|
36
40
|
}
|
|
41
|
+
|
|
42
|
+
:root[data-has-sidebar]:has(.page-mobile-sidebar-only)::after {
|
|
43
|
+
left: calc(var(--spacing) * 6);
|
|
44
|
+
}
|
|
37
45
|
}
|
|
38
46
|
|
|
39
47
|
.page {
|