@refrakt-md/skeleton 0.24.4 → 0.24.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/skeleton",
|
|
3
3
|
"description": "The structural cascade layer + layer-order contract every refrakt theme builds on — ships `@layer skeleton` and the `@layer skeleton, skin;` order declaration, plus the token-name contract",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"styles"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@refrakt-md/types": "0.24.
|
|
32
|
+
"@refrakt-md/types": "0.24.6"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc"
|
package/styles/layouts/blog.css
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* hide, the posts flex, the card block, the meta/tags flex rows, the sticky sidebar
|
|
4
4
|
* + list reset, and the responsive grid/sidebar reflow. Header height var, colours,
|
|
5
5
|
* borders, type, padding, and gaps are skin. */
|
|
6
|
-
|
|
6
|
+
/* Height pinned to --rf-header-height so the docked mobile nav panel
|
|
7
|
+
(top: var(--rf-header-height)) lines up with the header bottom. */
|
|
8
|
+
.rf-blog-header { position: sticky; top: 0; z-index: 100; height: var(--rf-header-height, 3.5rem); }
|
|
7
9
|
.rf-blog-header__inner { display: flex; align-items: center; }
|
|
8
10
|
.rf-blog-header__inner .rf-search-trigger { margin-left: auto; }
|
|
9
11
|
.rf-blog-header__inner p ~ p { order: 1; }
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* the named-track content grid + width-variant placement, the container context,
|
|
3
3
|
* and the footer flex + width cap. Colours, borders, type, padding, and the section
|
|
4
4
|
* rhythm/inset margins are skin (Lumina's layouts/default.css). */
|
|
5
|
-
|
|
5
|
+
/* Height pinned to --rf-header-height so the docked mobile nav panel
|
|
6
|
+
(top: var(--rf-header-height)) lines up exactly with the header bottom
|
|
7
|
+
regardless of brand/logo size. */
|
|
8
|
+
.rf-header { position: sticky; top: 0; z-index: 100; height: var(--rf-header-height, 3.5rem); }
|
|
6
9
|
.rf-header__inner { display: flex; align-items: center; }
|
|
7
10
|
.rf-header__inner .rf-search-trigger { margin-left: auto; order: 1; }
|
|
8
11
|
.rf-header__inner > rf-nav { order: 3; }
|
package/styles/layouts/docs.css
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
* container + width-variant grid, the has-toc flex + sticky TOC, the scroll-padding
|
|
4
4
|
* offset, the mobile toolbar flex + breadcrumb ellipsis, and the responsive hides.
|
|
5
5
|
* Colours, borders, type, padding, scrollbar chrome, and content padding are skin. */
|
|
6
|
-
|
|
6
|
+
/* Height is pinned to --rf-header-height (not content-driven) so the sticky
|
|
7
|
+
toolbar and the docked mobile nav panel can offset against a known value —
|
|
8
|
+
otherwise a header that renders shorter than the assumed height leaves a
|
|
9
|
+
gap the page content scrolls through, and a taller one overlaps. */
|
|
10
|
+
.rf-docs-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--rf-header-height, 3.5rem); }
|
|
7
11
|
.rf-docs-header__inner { display: flex; align-items: center; }
|
|
8
12
|
.rf-docs-header__inner .rf-search-trigger { margin-left: auto; order: 1; }
|
|
9
13
|
.rf-docs-header__inner > rf-nav { order: 3; }
|
|
@@ -76,7 +80,8 @@ html:has(.rf-docs-header) { scroll-padding-top: 5rem; }
|
|
|
76
80
|
@media (max-width: 768px) {
|
|
77
81
|
.rf-docs-header { position: sticky; top: 0; }
|
|
78
82
|
.rf-docs-header__inner p ~ p { display: none; }
|
|
79
|
-
.rf-docs-toolbar { display: flex; position: sticky; top:
|
|
80
|
-
|
|
83
|
+
.rf-docs-toolbar { display: flex; position: sticky; top: var(--rf-header-height, 3.5rem); z-index: 100; }
|
|
84
|
+
/* header height + ~2.75rem toolbar */
|
|
85
|
+
.rf-mobile-panel--nav { top: calc(var(--rf-header-height, 3.5rem) + 2.75rem); }
|
|
81
86
|
.rf-docs-sidebar { display: none; }
|
|
82
87
|
}
|