@chassis-ui/docs 0.4.0-0 → 0.5.0-0
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/README.md +1 -1
- package/package.json +2 -2
- package/src/components/DocsSidebar.astro +1 -1
- package/src/components/FeatureCard.astro +7 -7
- package/src/components/NavLink.astro +1 -1
- package/src/components/ThemeToggler.astro +2 -2
- package/src/components/shortcodes/AddedIn.astro +1 -1
- package/src/components/shortcodes/CSSOnly.astro +1 -1
- package/src/components/shortcodes/Code.astro +3 -3
- package/src/components/shortcodes/DeprecatedIn.astro +1 -1
- package/src/components/shortcodes/Example.astro +2 -2
- package/src/components/shortcodes/InFigma.astro +1 -1
- package/src/components/shortcodes/ResizableExample.astro +2 -2
- package/src/layouts/DocsLayout.astro +15 -15
- package/src/layouts/SingleLayout.astro +3 -3
- package/src/layouts/footer/Footer.astro +10 -10
- package/src/layouts/head/Social.astro +1 -1
- package/src/layouts/header/Navigation.astro +22 -22
- package/src/layouts/header/SearchDialog.astro +5 -5
- package/src/layouts/header/Skippy.astro +3 -3
- package/src/scss/_content.scss +3 -3
- package/src/scss/_footer.scss +1 -1
- package/src/scss/_layout.scss +4 -4
- package/src/scss/_navbar.scss +6 -6
- package/src/scss/_placeholder-img.scss +1 -1
- package/src/scss/_search.scss +38 -38
- package/src/scss/_sidebar.scss +14 -14
- package/src/scss/_snippets.scss +15 -15
- package/src/scss/_toc.scss +9 -9
- package/src/scss/_vars.scss +1 -1
- package/src/scss/main.scss +4 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Shared Astro layouts, components, and utilities for Chassis documentation sites.
|
|
4
4
|
|
|
5
|
-
[](https://opensource.org/licenses/MIT) [](https://opensource.org/licenses/MIT) [](https://www.npmjs.com/package/@chassis-ui/docs) [](https://www.npmjs.com/package/@chassis-ui/docs)
|
|
6
6
|
|
|
7
7
|
## Overview
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chassis-ui/docs",
|
|
3
3
|
"description": "Shared Astro components and layouts for Chassis documentation sites.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0-0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@astrojs/markdown-remark": "^7.0.0",
|
|
48
|
-
"@chassis-ui/css": "
|
|
48
|
+
"@chassis-ui/css": "^0.5.0-0",
|
|
49
49
|
"@pagefind/component-ui": "^1.0.0",
|
|
50
50
|
"@shikijs/transformers": "^4.3.1",
|
|
51
51
|
"astro": "^7.0.0",
|
|
@@ -118,7 +118,7 @@ const sidebar = getData('sidebar')
|
|
|
118
118
|
|
|
119
119
|
return (
|
|
120
120
|
<>
|
|
121
|
-
<li class="cxd-links-span-all mt-
|
|
121
|
+
<li class="cxd-links-span-all mt-2xs mb-md mx-lg border-top" />
|
|
122
122
|
<a
|
|
123
123
|
href={`${getConfig().docsPath}/${groupSlug}/`}
|
|
124
124
|
class:list={['cxd-links-link cxd-links-span-all', { active }]}
|
|
@@ -27,8 +27,8 @@ const hasContent = Astro.slots.has('default')
|
|
|
27
27
|
|
|
28
28
|
// Build class strings
|
|
29
29
|
const cardClasses = [
|
|
30
|
-
'feature-item bg-even d-flex flex-column rounded-
|
|
31
|
-
'p-
|
|
30
|
+
'feature-item bg-even d-flex flex-column rounded-lg',
|
|
31
|
+
'p-md lg:p-xl gap-md md:gap-xl',
|
|
32
32
|
horizontal ? '' : 'h-100',
|
|
33
33
|
classes
|
|
34
34
|
]
|
|
@@ -37,8 +37,8 @@ const cardClasses = [
|
|
|
37
37
|
|
|
38
38
|
const headerClasses = [
|
|
39
39
|
'feature-header d-flex',
|
|
40
|
-
'gap-
|
|
41
|
-
horizontal ? 'flex-column
|
|
40
|
+
'gap-md md:gap-xl',
|
|
41
|
+
horizontal ? 'flex-column md:flex-row' : 'flex-column'
|
|
42
42
|
].join(' ')
|
|
43
43
|
---
|
|
44
44
|
|
|
@@ -47,15 +47,15 @@ const headerClasses = [
|
|
|
47
47
|
{
|
|
48
48
|
icon && (
|
|
49
49
|
<div class="feature-thumb">
|
|
50
|
-
<Icon name={icon} class="feature-icon icon-
|
|
50
|
+
<Icon name={icon} class="feature-icon icon-3xl md:icon-4xl" sprite="" />
|
|
51
51
|
</div>
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
54
|
<div>
|
|
55
|
-
<h3 class="feature-title font-
|
|
55
|
+
<h3 class="feature-title font-lg md:font-xl mb-3xs md:mb-2xs">
|
|
56
56
|
<slot name="title" />
|
|
57
57
|
</h3>
|
|
58
|
-
<p class="feature-body
|
|
58
|
+
<p class="feature-body md:font-lg mb-0">
|
|
59
59
|
<slot name="body" />
|
|
60
60
|
</p>
|
|
61
61
|
</div>
|
|
@@ -21,7 +21,7 @@ interface Props {
|
|
|
21
21
|
const { active, class: className, ...props } = Astro.props
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
<li class="nav-item col-6
|
|
24
|
+
<li class="nav-item col-6 lg:col-auto">
|
|
25
25
|
<a
|
|
26
26
|
aria-current={active ? true : undefined}
|
|
27
27
|
class:list={['nav-link', className, { active }]}
|
|
@@ -17,7 +17,7 @@ const { layout } = Astro.props
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
<button
|
|
20
|
-
class="nav-link caret px-0
|
|
20
|
+
class="nav-link caret px-0 lg:px-xs"
|
|
21
21
|
id="cxd-theme"
|
|
22
22
|
type="button"
|
|
23
23
|
aria-expanded="false"
|
|
@@ -27,7 +27,7 @@ const { layout } = Astro.props
|
|
|
27
27
|
>
|
|
28
28
|
<Icon name="circle-half-solid" class="theme-icon-active" />
|
|
29
29
|
<span
|
|
30
|
-
class=`${layout === 'examples' ? 'visually-hidden' : '
|
|
30
|
+
class=`${layout === 'examples' ? 'visually-hidden' : 'lg:d-none ms-xs'}`
|
|
31
31
|
id="cxd-theme-text">Toggle theme</span
|
|
32
32
|
>
|
|
33
33
|
</button>
|
|
@@ -16,7 +16,7 @@ const { tooltip = 'This feature is only available in CSS and not in Figma compon
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
<span
|
|
19
|
-
class="badge
|
|
19
|
+
class="badge lg info smooth mb-md rounded-md"
|
|
20
20
|
data-cx-toggle="tooltip"
|
|
21
21
|
title={tooltip}>CSS Only</span
|
|
22
22
|
>
|
|
@@ -181,7 +181,7 @@ if (codeToDisplay && detectedLang) {
|
|
|
181
181
|
) : (
|
|
182
182
|
<small class="font-code fg-subtle text-uppercase">{displayLang}</small>
|
|
183
183
|
)}
|
|
184
|
-
<div class="d-flex ms-auto gap-
|
|
184
|
+
<div class="d-flex ms-auto gap-2xs">
|
|
185
185
|
{hasPreview && (
|
|
186
186
|
<>
|
|
187
187
|
<button
|
|
@@ -193,7 +193,7 @@ if (codeToDisplay && detectedLang) {
|
|
|
193
193
|
>
|
|
194
194
|
<Icon name="swatchbook-solid" />
|
|
195
195
|
</button>
|
|
196
|
-
<span class="vr mx-
|
|
196
|
+
<span class="vr mx-2xs" />
|
|
197
197
|
<button
|
|
198
198
|
type="button"
|
|
199
199
|
class="button-edit"
|
|
@@ -248,7 +248,7 @@ if (codeToDisplay && detectedLang) {
|
|
|
248
248
|
) : (
|
|
249
249
|
<small class="font-code fg-subtle text-uppercase">{displayLang}</small>
|
|
250
250
|
)}
|
|
251
|
-
<div class="d-flex ms-auto gap-
|
|
251
|
+
<div class="d-flex ms-auto gap-2xs">
|
|
252
252
|
<button
|
|
253
253
|
type="button"
|
|
254
254
|
class="button-clipboard"
|
|
@@ -84,11 +84,11 @@ let sourceMarkup = customMarkup
|
|
|
84
84
|
|
|
85
85
|
const simplifiedMarkup = sourceMarkup
|
|
86
86
|
.replace(
|
|
87
|
-
/<svg.*class="cxd-placeholder-image(?:-
|
|
87
|
+
/<svg.*class="cxd-placeholder-image(?:-lg)?(?: *?cxd-placeholder-image-lg)? ?(.*?)".*?<\/svg>/g,
|
|
88
88
|
(_match, classes) => `<img src="..."${classes ? ` class="${classes}"` : ''} alt="...">`
|
|
89
89
|
)
|
|
90
90
|
.replace(
|
|
91
|
-
/<img.*class="cxd-placeholder-image(?:-
|
|
91
|
+
/<img.*class="cxd-placeholder-image(?:-lg)?(?: *?cxd-placeholder-image-lg)? ?(.*?)".*?>/g,
|
|
92
92
|
(_match, classes) => `<img src="..."${classes ? ` class="${classes}"` : ''} alt="...">`
|
|
93
93
|
)
|
|
94
94
|
.replace(/(<svg class="icon\b[^"]*")\s+width="\d+"\s+height="\d+"/g, '$1')
|
|
@@ -86,11 +86,11 @@ let sourceMarkup = customMarkup
|
|
|
86
86
|
|
|
87
87
|
const simplifiedMarkup = sourceMarkup
|
|
88
88
|
.replace(
|
|
89
|
-
/<svg.*class="cxd-placeholder-img(?:-
|
|
89
|
+
/<svg.*class="cxd-placeholder-img(?:-lg)?(?: *?cxd-placeholder-img-lg)? ?(.*?)".*?<\/svg>/g,
|
|
90
90
|
(_match, classes) => `<img src="..."${classes ? ` class="${classes}"` : ''} alt="...">`
|
|
91
91
|
)
|
|
92
92
|
.replace(
|
|
93
|
-
/<img.*class="cxd-placeholder-img(?:-
|
|
93
|
+
/<img.*class="cxd-placeholder-img(?:-lg)?(?: *?cxd-placeholder-img-lg)? ?(.*?)".*?>/g,
|
|
94
94
|
(_match, classes) => `<img src="..."${classes ? ` class="${classes}"` : ''} alt="...">`
|
|
95
95
|
)
|
|
96
96
|
.replace(/(<svg class="icon\b[^"]*")\s+width="\d+"\s+height="\d+"/g, '$1')
|
|
@@ -46,7 +46,7 @@ if (frontmatter.toc) {
|
|
|
46
46
|
<div slot="main" class="container fluid cxd-gutter cxd-layout">
|
|
47
47
|
<aside class="cxd-sidebar">
|
|
48
48
|
<dialog
|
|
49
|
-
class="max-
|
|
49
|
+
class="max-lg:drawer drawer-start"
|
|
50
50
|
id="cxdSidebar"
|
|
51
51
|
aria-labelledby="cxdSidebarOffcanvasLabel"
|
|
52
52
|
>
|
|
@@ -59,8 +59,8 @@ if (frontmatter.toc) {
|
|
|
59
59
|
aria-label="Close"
|
|
60
60
|
data-cx-target="#cxdSidebar"></button>
|
|
61
61
|
</div>
|
|
62
|
-
<hr class="
|
|
63
|
-
<div class="drawer-body
|
|
62
|
+
<hr class="lg:d-none m-0" />
|
|
63
|
+
<div class="drawer-body lg:p-0">
|
|
64
64
|
<slot name="sidebar">
|
|
65
65
|
<DocsSidebar />
|
|
66
66
|
</slot>
|
|
@@ -72,22 +72,22 @@ if (frontmatter.toc) {
|
|
|
72
72
|
<div class="cxd-intro">
|
|
73
73
|
<slot name="intro">
|
|
74
74
|
<div
|
|
75
|
-
class="
|
|
75
|
+
class="md:d-flex md:flex-row-reverse justify-content-between align-items-start"
|
|
76
76
|
>
|
|
77
|
-
<div class="mb-
|
|
77
|
+
<div class="mb-md md:mb-0 d-flex text-nowrap">
|
|
78
78
|
{
|
|
79
79
|
// This is needed because we want to show the badge if show_badge isn't present or is set to false
|
|
80
80
|
frontmatter.added &&
|
|
81
81
|
((frontmatter.added.show_badge !== undefined &&
|
|
82
82
|
frontmatter.added.show_badge === true) ||
|
|
83
83
|
frontmatter.added.show_badge === undefined) && (
|
|
84
|
-
<span class="badge success smooth rounded-
|
|
84
|
+
<span class="badge success smooth rounded-md me-xs">
|
|
85
85
|
Added in v{frontmatter.added.version}
|
|
86
86
|
</span>
|
|
87
87
|
)
|
|
88
88
|
}
|
|
89
89
|
<a
|
|
90
|
-
class="button default
|
|
90
|
+
class="button default sm"
|
|
91
91
|
href={`${getConfig().repo}/blob/${id}.mdx`}
|
|
92
92
|
title="View and edit this file on GitHub"
|
|
93
93
|
target="_blank"
|
|
@@ -96,7 +96,7 @@ if (frontmatter.toc) {
|
|
|
96
96
|
View on GitHub
|
|
97
97
|
</a>
|
|
98
98
|
</div>
|
|
99
|
-
<h1 class="cxd-title mb-
|
|
99
|
+
<h1 class="cxd-title mb-sm" id="content">{frontmatter.title}</h1>
|
|
100
100
|
</div>
|
|
101
101
|
<div class="cxd-subtitle">
|
|
102
102
|
{
|
|
@@ -112,7 +112,7 @@ if (frontmatter.toc) {
|
|
|
112
112
|
frontmatter.toc && headings && (
|
|
113
113
|
<div class="cxd-toc">
|
|
114
114
|
<button
|
|
115
|
-
class="button default mb-
|
|
115
|
+
class="button default mb-lg text-decoration-none cxd-toc-toggle md:d-none"
|
|
116
116
|
type="button"
|
|
117
117
|
data-cx-toggle="collapse"
|
|
118
118
|
data-cx-target="#tocContents"
|
|
@@ -120,10 +120,10 @@ if (frontmatter.toc) {
|
|
|
120
120
|
aria-controls="tocContents"
|
|
121
121
|
>
|
|
122
122
|
On this page
|
|
123
|
-
<Icon name="chevron-sort-solid" class="icon-
|
|
123
|
+
<Icon name="chevron-sort-solid" class="icon-sm" />
|
|
124
124
|
</button>
|
|
125
|
-
<strong class="d-none
|
|
126
|
-
<hr class="d-none
|
|
125
|
+
<strong class="d-none md:d-block h6 my-xs">On this page</strong>
|
|
126
|
+
<hr class="d-none md:d-block my-xs" />
|
|
127
127
|
<div class="collapse cxd-toc-collapse" id="tocContents">
|
|
128
128
|
<nav id="TableOfContents" aria-label="Table of contents">
|
|
129
129
|
<slot name="toc">
|
|
@@ -138,16 +138,16 @@ if (frontmatter.toc) {
|
|
|
138
138
|
<div class="cxd-content">
|
|
139
139
|
{
|
|
140
140
|
frontmatter.sections && (
|
|
141
|
-
<div class="row g-
|
|
141
|
+
<div class="row g-xl">
|
|
142
142
|
{frontmatter.sections.map((section: DocSection) => (
|
|
143
|
-
<div class="
|
|
143
|
+
<div class="md:col-6">
|
|
144
144
|
<a
|
|
145
145
|
class="d-block text-decoration-none"
|
|
146
146
|
href={getChassisDocsPath(
|
|
147
147
|
`${parentDirectory ? parentDirectory + '/' : ''}${section.slug ? section.slug : getSlug(section.title)}/`
|
|
148
148
|
)}
|
|
149
149
|
>
|
|
150
|
-
<strong class="d-block h5 mb-
|
|
150
|
+
<strong class="d-block h5 mb-2xs">{section.title}</strong>
|
|
151
151
|
<span class="fg-subtle">{section.description}</span>
|
|
152
152
|
</a>
|
|
153
153
|
</div>
|
|
@@ -22,10 +22,10 @@ mainProps['class'] = 'min-vh-100'
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
24
|
<BaseLayout {...Astro.props} layout="single" overrides={{ main: mainProps }}>
|
|
25
|
-
<header class="py-
|
|
26
|
-
<div class="container
|
|
25
|
+
<header class="py-xl md:py-3xl border-bottom border-subtle">
|
|
26
|
+
<div class="container 2xl">
|
|
27
27
|
<div class="row">
|
|
28
|
-
<div class="col
|
|
28
|
+
<div class="col lg:col-10 2xl:col-8">
|
|
29
29
|
<h1 class="mt-0">{title}</h1>
|
|
30
30
|
<p class="font-lead">{description}</p>
|
|
31
31
|
<slot name="header-content" />
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
<footer class="cxd-footer py-
|
|
10
|
-
<div class="container
|
|
9
|
+
<footer class="cxd-footer py-6xl">
|
|
10
|
+
<div class="container 2xl fg-subtle">
|
|
11
11
|
<div class="row">
|
|
12
|
-
<div class="
|
|
12
|
+
<div class="md:col-10 lg:col-5 mb-md">
|
|
13
13
|
<a
|
|
14
|
-
class="d-inline-flex align-items-center mb-
|
|
14
|
+
class="d-inline-flex align-items-center mb-xs text-body-emphasis text-decoration-none"
|
|
15
15
|
href="/"
|
|
16
16
|
aria-label="Chassis"
|
|
17
17
|
>
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
and distribution of the software.
|
|
23
23
|
</p>
|
|
24
24
|
</div>
|
|
25
|
-
<div class="
|
|
26
|
-
<p class="h6 mb-
|
|
25
|
+
<div class="sm:col-4 lg:col-2 lg:offset-1 mb-md">
|
|
26
|
+
<p class="h6 mb-xs">Docs</p>
|
|
27
27
|
<ul class="nav">
|
|
28
28
|
<li><a href="/tokens">Design Tokens</a></li>
|
|
29
29
|
<li><a href="/assets">Asset Distributor</a></li>
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
<li><a href="/icons">Icon Generator</a></li>
|
|
33
33
|
</ul>
|
|
34
34
|
</div>
|
|
35
|
-
<div class="
|
|
36
|
-
<p class="h6 mb-
|
|
35
|
+
<div class="sm:col-4 lg:col-2 mb-md">
|
|
36
|
+
<p class="h6 mb-xs">Github</p>
|
|
37
37
|
<ul class="nav">
|
|
38
38
|
<li><a href="https://github.com/chassis-ui/tokens">Chassis Tokens</a></li>
|
|
39
39
|
<li><a href="https://github.com/chassis-ui/assets">Chassis Assets</a></li>
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
<li><a href="https://github.com/chassis-ui/icons">Chassis Icons</a></li>
|
|
43
43
|
</ul>
|
|
44
44
|
</div>
|
|
45
|
-
<div class="
|
|
46
|
-
<p class="h6 mb-
|
|
45
|
+
<div class="sm:col-4 lg:col-2 mb-md">
|
|
46
|
+
<p class="h6 mb-xs">Project</p>
|
|
47
47
|
<ul class="nav">
|
|
48
48
|
<li><a href="/about">About</a></li>
|
|
49
49
|
<li><a href="/blog">Blog</a></li>
|
|
@@ -31,7 +31,7 @@ const socialImageSize = isRemoteThumbnail
|
|
|
31
31
|
: await getStaticImageSize(path.join(getDocsPublicFsPath(), thumbnail))
|
|
32
32
|
---
|
|
33
33
|
|
|
34
|
-
<meta name="twitter:card" content="
|
|
34
|
+
<meta name="twitter:card" content="summary_lg_image" />
|
|
35
35
|
<meta name="twitter:site" content=`@${getConfig().x_username}` />
|
|
36
36
|
<meta name="twitter:creator" content=`@${getConfig().x_username}` />
|
|
37
37
|
<meta name="twitter:title" content={title} />
|
|
@@ -32,8 +32,8 @@ const isActive = (path: string) => {
|
|
|
32
32
|
}
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
<header class="navbar translucent
|
|
36
|
-
<nav class="container
|
|
35
|
+
<header class="navbar translucent lg:navbar-expand cxd-navbar sticky-top">
|
|
36
|
+
<nav class="container 2xl" aria-label="Site navigation">
|
|
37
37
|
{
|
|
38
38
|
layout === 'docs' && (
|
|
39
39
|
<div class="cxd-navbar-toggle">
|
|
@@ -45,15 +45,15 @@ const isActive = (path: string) => {
|
|
|
45
45
|
aria-controls="cxdSidebar"
|
|
46
46
|
aria-label="Toggle docs navigation"
|
|
47
47
|
>
|
|
48
|
-
<Icon name="bars-solid" class="icon-
|
|
49
|
-
<span class="d-none
|
|
48
|
+
<Icon name="bars-solid" class="icon-lg" />
|
|
49
|
+
<span class="d-none lg:d-inline fs-6 pe-2xs">Browse</span>
|
|
50
50
|
</button>
|
|
51
51
|
</div>
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
|
-
{layout !== 'docs' && <div class="
|
|
54
|
+
{layout !== 'docs' && <div class="lg:d-none" style="width: 4.25rem;" />}
|
|
55
55
|
|
|
56
|
-
<a class="navbar-brand m-0 py-
|
|
56
|
+
<a class="navbar-brand m-0 py-sm lg:me-md" href="/" aria-label="Chassis">
|
|
57
57
|
<img src="/static/images/site-logo.svg" alt="Chassis UI" width="123" height="32" />
|
|
58
58
|
</a>
|
|
59
59
|
|
|
@@ -73,7 +73,7 @@ const isActive = (path: string) => {
|
|
|
73
73
|
</div>
|
|
74
74
|
|
|
75
75
|
<dialog
|
|
76
|
-
class="max-
|
|
76
|
+
class="max-lg:drawer drawer-end flex-grow-1"
|
|
77
77
|
id="cxdNavbar"
|
|
78
78
|
aria-labelledby="cxdNavbarOffcanvasLabel"
|
|
79
79
|
>
|
|
@@ -87,46 +87,46 @@ const isActive = (path: string) => {
|
|
|
87
87
|
data-cx-target="#cxdNavbar"></button>
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
|
-
<hr class="
|
|
91
|
-
<div class="drawer-body
|
|
92
|
-
<ul class="navbar-nav flex-row flex-wrap cxd-navbar-nav mx-0
|
|
90
|
+
<hr class="lg:d-none m-0" />
|
|
91
|
+
<div class="drawer-body lg:p-0">
|
|
92
|
+
<ul class="navbar-nav flex-row flex-wrap cxd-navbar-nav mx-0 lg:mx-md">
|
|
93
93
|
<NavLink active={isActive('/tokens')} href="/tokens">Tokens</NavLink>
|
|
94
94
|
<NavLink active={isActive('/figma')} href="/figma">Figma</NavLink>
|
|
95
95
|
<NavLink active={isActive('/css')} href="/css">CSS</NavLink>
|
|
96
96
|
<NavLink active={isActive('/assets')} href="/assets">Assets</NavLink>
|
|
97
97
|
<NavLink active={isActive('/icons')} href="/icons">Icons</NavLink>
|
|
98
|
-
<li class="nav-item col-12
|
|
99
|
-
<div class="vr d-none
|
|
100
|
-
<hr class="
|
|
98
|
+
<li class="nav-item col-12 lg:col-auto lg:d-flex">
|
|
99
|
+
<div class="vr d-none lg:d-flex my-auto lg:mx-sm"></div>
|
|
100
|
+
<hr class="lg:d-none" />
|
|
101
101
|
</li>
|
|
102
102
|
<NavLink active={isActive('/blog')} href="/blog">Blog</NavLink>
|
|
103
103
|
<NavLink active={isActive('/examples')} href="/examples">Examples</NavLink>
|
|
104
104
|
</ul>
|
|
105
105
|
|
|
106
|
-
<hr class="
|
|
106
|
+
<hr class="lg:d-none m-0" />
|
|
107
107
|
|
|
108
|
-
<ul class="navbar-nav flex-row flex-wrap
|
|
108
|
+
<ul class="navbar-nav flex-row flex-wrap lg:ms-auto align-items-center">
|
|
109
109
|
<NavLink
|
|
110
|
-
class="px-0
|
|
110
|
+
class="px-0 lg:px-xs"
|
|
111
111
|
href={`https://figma.com/@${getConfig().figma_handle}`}
|
|
112
112
|
target="_blank"
|
|
113
113
|
rel="noopener"
|
|
114
114
|
>
|
|
115
115
|
<Icon name="figma-brand" title="Figma" />
|
|
116
|
-
<small class="
|
|
116
|
+
<small class="lg:d-none ms-xs">Figma Community</small>
|
|
117
117
|
</NavLink>
|
|
118
118
|
<NavLink
|
|
119
|
-
class="px-0
|
|
119
|
+
class="px-0 lg:px-xs"
|
|
120
120
|
href={`https://github.com/${getConfig().github_org}`}
|
|
121
121
|
target="_blank"
|
|
122
122
|
rel="noopener"
|
|
123
123
|
>
|
|
124
124
|
<Icon name="github-brand" title="GitHub" />
|
|
125
|
-
<small class="
|
|
125
|
+
<small class="lg:d-none ms-xs">GitHub</small>
|
|
126
126
|
</NavLink>
|
|
127
|
-
<li class="nav-item col-12
|
|
128
|
-
<div class="vr d-none
|
|
129
|
-
<hr class="
|
|
127
|
+
<li class="nav-item col-12 lg:col-auto">
|
|
128
|
+
<div class="vr d-none lg:d-flex h-100 lg:mx-2xs"></div>
|
|
129
|
+
<hr class="lg:d-none" />
|
|
130
130
|
</li>
|
|
131
131
|
|
|
132
132
|
<li class="nav-item">
|
|
@@ -20,7 +20,7 @@ const { id = 'cxdSearchDialog', placeholder = 'Search docs…' } = Astro.props
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
22
|
<dialog
|
|
23
|
-
class="modal dialog
|
|
23
|
+
class="modal dialog lg cxd-search-dialog scrollable"
|
|
24
24
|
id={id}
|
|
25
25
|
aria-labelledby={`${id}-label`}
|
|
26
26
|
>
|
|
@@ -63,14 +63,14 @@ const { id = 'cxdSearchDialog', placeholder = 'Search docs…' } = Astro.props
|
|
|
63
63
|
<div class="modal-footer cxd-search-footer">
|
|
64
64
|
<ul class="list horizontal cxd-search-shortcuts-list">
|
|
65
65
|
<li class="list-item">
|
|
66
|
-
<kbd class="cxd-search-shortcut-key font-
|
|
66
|
+
<kbd class="cxd-search-shortcut-key font-2xs">⮐</kbd>
|
|
67
67
|
<span class="cxd-search-shortcut-label">to select</span>
|
|
68
68
|
</li><li class="list-item">
|
|
69
|
-
<kbd class="cxd-search-shortcut-key font-
|
|
70
|
-
<kbd class="cxd-search-shortcut-key font-
|
|
69
|
+
<kbd class="cxd-search-shortcut-key font-sm">↑</kbd>
|
|
70
|
+
<kbd class="cxd-search-shortcut-key font-sm">↓</kbd>
|
|
71
71
|
<span class="cxd-search-shortcut-label">to navigate</span>
|
|
72
72
|
</li><li class="list-item">
|
|
73
|
-
<kbd class="cxd-search-shortcut-key font-
|
|
73
|
+
<kbd class="cxd-search-shortcut-key font-xs">ESC</kbd>
|
|
74
74
|
<span class="cxd-search-shortcut-label">to close</span>
|
|
75
75
|
</li>
|
|
76
76
|
</ul>
|
|
@@ -16,11 +16,11 @@ const { layout } = Astro.props
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
<div class="skippy visually-hidden-focusable overflow-hidden">
|
|
19
|
-
<div class="container
|
|
20
|
-
<a class="d-inline-flex p-
|
|
19
|
+
<div class="container xl">
|
|
20
|
+
<a class="d-inline-flex p-xs m-xs" href="#content">Skip to main content</a>
|
|
21
21
|
{
|
|
22
22
|
layout === 'docs' && (
|
|
23
|
-
<a class="d-none d-
|
|
23
|
+
<a class="d-none d-md-inline-flex p-xs m-xs" href="#cxd-docs-nav">
|
|
24
24
|
Skip to docs navigation
|
|
25
25
|
</a>
|
|
26
26
|
)
|
package/src/scss/_content.scss
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
> ol > li {
|
|
38
38
|
&:has(:where(h3, h4):first-child)::marker {
|
|
39
|
-
@include font-size(var(--cx-font-size-
|
|
39
|
+
@include font-size(var(--cx-font-size-xl));
|
|
40
40
|
font-weight: var(--cx-font-weight-strong);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
@include font();
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.border-
|
|
96
|
-
@include media-breakpoint-up(
|
|
95
|
+
.border-lg-start {
|
|
96
|
+
@include media-breakpoint-up(lg) {
|
|
97
97
|
border-inline-start: var(--cx-border-width) solid var(--cx-border-color);
|
|
98
98
|
}
|
|
99
99
|
}
|
package/src/scss/_footer.scss
CHANGED
package/src/scss/_layout.scss
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.cxd-layout {
|
|
10
|
-
@include media-breakpoint-up(
|
|
10
|
+
@include media-breakpoint-up(lg) {
|
|
11
11
|
display: grid;
|
|
12
12
|
grid-template-areas: "sidebar main";
|
|
13
13
|
grid-template-columns: 14rem auto;
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
grid-area: main;
|
|
33
33
|
order: 1;
|
|
34
34
|
|
|
35
|
-
@include media-breakpoint-down(
|
|
35
|
+
@include media-breakpoint-down(lg) {
|
|
36
36
|
margin-inline: auto;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
@include media-breakpoint-up(
|
|
39
|
+
@include media-breakpoint-up(md) {
|
|
40
40
|
display: grid;
|
|
41
41
|
grid-template-areas:
|
|
42
42
|
"intro"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
gap: inherit;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
@include media-breakpoint-up(
|
|
49
|
+
@include media-breakpoint-up(lg) {
|
|
50
50
|
grid-template-areas:
|
|
51
51
|
"intro toc"
|
|
52
52
|
"content toc";
|
package/src/scss/_navbar.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@layer custom {
|
|
4
4
|
.cxd-navbar {
|
|
5
5
|
padding: 0;
|
|
6
|
-
border-block-end: var(--cx-border-width-
|
|
6
|
+
border-block-end: var(--cx-border-width-md) solid var(--cx-border-subtle);
|
|
7
7
|
|
|
8
8
|
> .container {
|
|
9
9
|
position: relative;
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
.navbar-toggler,
|
|
13
13
|
.nav-link {
|
|
14
14
|
--cx-caret-color: var(--cx-fg-color);
|
|
15
|
-
@include font-size(var(--cx-font-size-
|
|
15
|
+
@include font-size(var(--cx-font-size-sm));
|
|
16
16
|
font-weight: var(--cx-font-weight-strong);
|
|
17
17
|
text-transform: uppercase;
|
|
18
18
|
.icon {
|
|
19
19
|
--cx-icon-color: var(--cx-fg-color);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
@include media-breakpoint-up(
|
|
23
|
-
padding: var(--cx-space-
|
|
22
|
+
@include media-breakpoint-up(lg) {
|
|
23
|
+
padding: var(--cx-space-lg) var(--cx-space-xs);
|
|
24
24
|
&.active {
|
|
25
|
-
padding-block-end: var(--cx-space-
|
|
26
|
-
border-block-end: var(--cx-border-width-
|
|
25
|
+
padding-block-end: var(--cx-space-md);
|
|
26
|
+
border-block-end: var(--cx-border-width-2xl) solid var(--cx-primary-cue-main);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
package/src/scss/_search.scss
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.cxd-search {
|
|
10
10
|
position: relative;
|
|
11
11
|
|
|
12
|
-
@include media-breakpoint-up(
|
|
12
|
+
@include media-breakpoint-up(lg) {
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 20%;
|
|
15
15
|
right: 11rem;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
.cxd-search-trigger {
|
|
33
33
|
// @extend %form-input;
|
|
34
|
-
--cx-padding-x: var(--cx-space-
|
|
34
|
+
--cx-padding-x: var(--cx-space-xs);
|
|
35
35
|
--cx-padding-y: .375rem;
|
|
36
36
|
--cx-icon-color: var(--cx-fg-color);
|
|
37
37
|
display: inline-flex;
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
// padding-inline-end: .5rem;
|
|
42
42
|
// padding: .25rem .5rem;
|
|
43
43
|
@include exclude-strokes(form-input);
|
|
44
|
-
@include font-size(var(--cx-font-size-
|
|
44
|
+
@include font-size(var(--cx-font-size-sm));
|
|
45
45
|
color: var(--cx-fg-subtle);
|
|
46
46
|
text-align: start;
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
background-color: transparent;
|
|
49
49
|
border: 0;
|
|
50
|
-
@include border-radius(var(--cx-border-radius-
|
|
50
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
51
51
|
@include transition(color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out);
|
|
52
52
|
|
|
53
53
|
&:focus-visible {
|
|
54
54
|
@include focus-ring(true);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@include media-breakpoint-up(
|
|
57
|
+
@include media-breakpoint-up(lg) {
|
|
58
58
|
--cx-border-color: var(--cx-border-subtle);
|
|
59
|
-
--cx-icon-size: var(--cx-icon-
|
|
59
|
+
--cx-icon-size: var(--cx-icon-sm);
|
|
60
60
|
--cx-icon-color: var(--cx-fg-subtle);
|
|
61
61
|
width: 100%;
|
|
62
62
|
background-color: var(--cx-bg-main);
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
.cxd-search-trigger-shortcut {
|
|
80
80
|
display: none;
|
|
81
81
|
|
|
82
|
-
@include media-breakpoint-up(
|
|
82
|
+
@include media-breakpoint-up(lg) {
|
|
83
83
|
display: inline-flex;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
min-width: 1.25rem;
|
|
104
104
|
padding: .125rem .375rem;
|
|
105
105
|
font-family: var(--cx-font-family-code);
|
|
106
|
-
@include font-size(var(--cx-font-size-
|
|
107
|
-
@include line-height(var(--cx-line-height-
|
|
106
|
+
@include font-size(var(--cx-font-size-sm));
|
|
107
|
+
@include line-height(var(--cx-line-height-sm));
|
|
108
108
|
color: var(--cx-fg-subtle);
|
|
109
109
|
background-color: var(--cx-bg-evident);
|
|
110
110
|
// border: var(--cx-border-width) solid var(--cx-border-color);
|
|
111
|
-
@include border-radius(var(--cx-border-radius-
|
|
111
|
+
@include border-radius(var(--cx-border-radius-sm));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// Search dialog shell
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
--cx-dialog-padding: .75rem;
|
|
122
122
|
--cx-dialog-header-padding: .75rem;
|
|
123
123
|
--cx-dialog-footer-padding: .5rem .75rem;
|
|
124
|
-
--cx-dialog-border-radius: var(--cx-border-radius-
|
|
124
|
+
--cx-dialog-border-radius: var(--cx-border-radius-lg);
|
|
125
125
|
|
|
126
126
|
align-self: flex-start;
|
|
127
127
|
width: 640px;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
overflow: hidden;
|
|
131
131
|
background-color: var(--cx-bg-even);
|
|
132
132
|
|
|
133
|
-
@include media-breakpoint-down(
|
|
133
|
+
@include media-breakpoint-down(sm) {
|
|
134
134
|
max-height: calc(100dvh - 4rem);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
flex-wrap: nowrap;
|
|
143
143
|
gap: .75rem;
|
|
144
144
|
align-items: center;
|
|
145
|
-
padding: var(--cx-space-
|
|
145
|
+
padding: var(--cx-space-md);
|
|
146
146
|
border-bottom: 0;
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
// --cx-padding-y: .375rem;
|
|
162
162
|
// --cx-padding-x: .5rem;
|
|
163
163
|
// width: auto;
|
|
164
|
-
// @include font-size(var(--cx-font-size-
|
|
164
|
+
// @include font-size(var(--cx-font-size-sm));
|
|
165
165
|
// }
|
|
166
166
|
// .cxd-search-input {
|
|
167
167
|
// flex: 1;
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
// Body / results
|
|
187
187
|
|
|
188
188
|
.cxd-search-body {
|
|
189
|
-
padding: 0 var(--cx-space-
|
|
189
|
+
padding: 0 var(--cx-space-md) var(--cx-space-md);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.cxd-search-results {
|
|
@@ -199,8 +199,8 @@
|
|
|
199
199
|
// --cx-list-border-width: 0;
|
|
200
200
|
// --cx-list-border-radius: 0;
|
|
201
201
|
|
|
202
|
-
gap: var(--cx-space-
|
|
203
|
-
padding-block-start: var(--cx-space-
|
|
202
|
+
gap: var(--cx-space-sm);
|
|
203
|
+
padding-block-start: var(--cx-space-xs);
|
|
204
204
|
list-style: none;
|
|
205
205
|
.list-item {
|
|
206
206
|
padding: 0;
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
.cxd-search-result {
|
|
212
212
|
display: flex;
|
|
213
213
|
flex-direction: column;
|
|
214
|
-
// gap: var(--cx-space-
|
|
214
|
+
// gap: var(--cx-space-xs);
|
|
215
215
|
gap: 0;
|
|
216
216
|
padding: 0;
|
|
217
217
|
}
|
|
@@ -227,18 +227,18 @@
|
|
|
227
227
|
|
|
228
228
|
// Single row template: top-level results, sub-results, and recent visits.
|
|
229
229
|
.cxd-search-item {
|
|
230
|
-
--cx-icon-size: var(--cx-icon-
|
|
230
|
+
--cx-icon-size: var(--cx-icon-md);
|
|
231
231
|
--cx-icon-color: var(--cx-fg-subtle);
|
|
232
232
|
position: relative;
|
|
233
233
|
display: grid;
|
|
234
234
|
grid-template-columns: auto 1fr;
|
|
235
235
|
column-gap: .5rem;
|
|
236
236
|
align-items: center;
|
|
237
|
-
padding: var(--cx-space-
|
|
237
|
+
padding: var(--cx-space-xs);
|
|
238
238
|
text-decoration: none;
|
|
239
239
|
background-color: var(--cx-bg-main);
|
|
240
240
|
@include border();
|
|
241
|
-
@include border-radius(var(--cx-border-radius-
|
|
241
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
242
242
|
|
|
243
243
|
mark {
|
|
244
244
|
background: none;
|
|
@@ -284,16 +284,16 @@
|
|
|
284
284
|
color: var(--cx-fg-subtle);
|
|
285
285
|
text-overflow: ellipsis;
|
|
286
286
|
white-space: nowrap;
|
|
287
|
-
@include font-size(var(--cx-font-size-
|
|
288
|
-
@include line-height(var(--cx-line-height-
|
|
287
|
+
@include font-size(var(--cx-font-size-sm));
|
|
288
|
+
@include line-height(var(--cx-line-height-sm));
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
.cxd-search-subitem {
|
|
292
|
-
--cx-icon-size: var(--cx-icon-
|
|
292
|
+
--cx-icon-size: var(--cx-icon-sm);
|
|
293
293
|
--cx-icon-color: var(--cx-fg-subtle);
|
|
294
294
|
align-items: center;
|
|
295
|
-
padding-inline-start: var(--cx-space-
|
|
296
|
-
// padding-inline-start: var(--cx-space-
|
|
295
|
+
padding-inline-start: var(--cx-space-4xl);
|
|
296
|
+
// padding-inline-start: var(--cx-space-md);
|
|
297
297
|
|
|
298
298
|
&::before {
|
|
299
299
|
position: absolute;
|
|
@@ -316,8 +316,8 @@
|
|
|
316
316
|
background-color: var(--cx-fg-subtle);
|
|
317
317
|
}
|
|
318
318
|
.cxd-search-item-title {
|
|
319
|
-
@include font-size(var(--cx-font-size-
|
|
320
|
-
@include line-height(var(--cx-line-height-
|
|
319
|
+
@include font-size(var(--cx-font-size-sm));
|
|
320
|
+
@include line-height(var(--cx-line-height-sm));
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
}
|
|
@@ -325,9 +325,9 @@
|
|
|
325
325
|
.cxd-search-subresults {
|
|
326
326
|
display: flex;
|
|
327
327
|
flex-direction: column;
|
|
328
|
-
// gap: var(--cx-space-
|
|
328
|
+
// gap: var(--cx-space-xs);
|
|
329
329
|
gap: 0;
|
|
330
|
-
// padding-inline-start: var(--cx-space-
|
|
330
|
+
// padding-inline-start: var(--cx-space-lg);
|
|
331
331
|
.cxd-search-subitem {
|
|
332
332
|
border-block-end-width: 0;
|
|
333
333
|
@include border-radius(0);
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
.cxd-search-recent-label {
|
|
356
|
-
@include font-size(var(--cx-font-size-
|
|
356
|
+
@include font-size(var(--cx-font-size-xs));
|
|
357
357
|
font-weight: 600;
|
|
358
358
|
color: var(--cx-fg-subtle);
|
|
359
359
|
text-transform: uppercase;
|
|
@@ -362,12 +362,12 @@
|
|
|
362
362
|
|
|
363
363
|
.cxd-search-recent-clear {
|
|
364
364
|
padding: .125rem .375rem;
|
|
365
|
-
@include font-size(var(--cx-font-size-
|
|
365
|
+
@include font-size(var(--cx-font-size-xs));
|
|
366
366
|
color: var(--cx-fg-subtle);
|
|
367
367
|
cursor: pointer;
|
|
368
368
|
background-color: transparent;
|
|
369
369
|
border: 0;
|
|
370
|
-
@include border-radius(var(--cx-border-radius-
|
|
370
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
371
371
|
@include transition(color .15s ease-in-out, background-color .15s ease-in-out);
|
|
372
372
|
|
|
373
373
|
&:hover {
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
.cxd-search-empty,
|
|
386
386
|
.cxd-search-error {
|
|
387
387
|
padding: 2rem 1rem;
|
|
388
|
-
@include font-size(var(--cx-font-size-
|
|
388
|
+
@include font-size(var(--cx-font-size-sm));
|
|
389
389
|
color: var(--cx-fg-subtle);
|
|
390
390
|
text-align: center;
|
|
391
391
|
}
|
|
@@ -397,12 +397,12 @@
|
|
|
397
397
|
.cxd-search-loading {
|
|
398
398
|
display: flex;
|
|
399
399
|
flex-direction: column;
|
|
400
|
-
gap: var(--cx-space-
|
|
400
|
+
gap: var(--cx-space-sm);
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
|
|
404
404
|
.cxd-search-footer {
|
|
405
|
-
padding-block: var(--cx-space-
|
|
405
|
+
padding-block: var(--cx-space-sm);
|
|
406
406
|
background-color: var(--cx-bg-evident);
|
|
407
407
|
}
|
|
408
408
|
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
|
|
429
429
|
.cxd-search-shortcut-label {
|
|
430
430
|
padding-inline-start: .25rem;
|
|
431
|
-
@include font-size(var(--cx-font-size-
|
|
432
|
-
@include line-height(var(--cx-line-height-
|
|
431
|
+
@include font-size(var(--cx-font-size-sm));
|
|
432
|
+
@include line-height(var(--cx-line-height-sm));
|
|
433
433
|
}
|
|
434
434
|
}
|
package/src/scss/_sidebar.scss
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--cx-bg-highlight: var(--cx-default-bg-highlight);
|
|
10
10
|
--cx-fg-highlight: var(--cx-fg-main);
|
|
11
11
|
|
|
12
|
-
@include media-breakpoint-up(
|
|
12
|
+
@include media-breakpoint-up(lg) {
|
|
13
13
|
position: sticky;
|
|
14
14
|
top: 4rem;
|
|
15
15
|
display: block;
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
border-inline-end: var(--cx-border-width) solid var(--cx-border-subtle);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
@include media-breakpoint-down(
|
|
26
|
-
.#{
|
|
25
|
+
@include media-breakpoint-down(lg) {
|
|
26
|
+
.#{lg-down\:}drawer {
|
|
27
27
|
border-right-color: var(--cx-border-color);
|
|
28
|
-
box-shadow: var(--cx-box-shadow-
|
|
28
|
+
box-shadow: var(--cx-box-shadow-lg);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
list-style: none;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
@include media-breakpoint-up(
|
|
54
|
+
@include media-breakpoint-up(lg) {
|
|
55
55
|
li:has(.active) {
|
|
56
56
|
// --cx-cue-main: var(--cx-secondary-contrast-color);
|
|
57
57
|
}
|
|
@@ -101,17 +101,17 @@
|
|
|
101
101
|
|
|
102
102
|
.cxd-links-heading {
|
|
103
103
|
--cx-icon-color: var(--cx-fg-main);
|
|
104
|
-
--cx-icon-size: var(--cx-icon-
|
|
104
|
+
--cx-icon-size: var(--cx-icon-xs);
|
|
105
105
|
display: flex;
|
|
106
|
-
gap: var(--cx-space-
|
|
106
|
+
gap: var(--cx-space-xs);
|
|
107
107
|
align-items: center;
|
|
108
108
|
color: var(--cx-fg-main);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.cxd-links-subgroup {
|
|
112
|
-
@include font-size(var(--cx-font-size-
|
|
113
|
-
@include line-height(var(--cx-line-height-
|
|
114
|
-
--cx-icon-size: var(--cx-icon-
|
|
112
|
+
@include font-size(var(--cx-font-size-xs));
|
|
113
|
+
@include line-height(var(--cx-line-height-sm));
|
|
114
|
+
--cx-icon-size: var(--cx-icon-xs);
|
|
115
115
|
padding-inline-start: 1.5rem;
|
|
116
116
|
margin-block: 1em .25em;
|
|
117
117
|
font-weight: var(--cx-font-weight-strong);
|
|
@@ -121,11 +121,11 @@
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
.cxd-links-nav {
|
|
124
|
-
@include media-breakpoint-down(
|
|
124
|
+
@include media-breakpoint-down(lg) {
|
|
125
125
|
@include font-size(.875rem);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
@include media-breakpoint-between(
|
|
128
|
+
@include media-breakpoint-between(xs, lg) {
|
|
129
129
|
column-count: 2;
|
|
130
130
|
column-gap: 1.5rem;
|
|
131
131
|
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
margin-inline-start: 0;
|
|
148
148
|
color: var(--cx-fg-color);
|
|
149
149
|
text-decoration: if(sass($link-decoration == none): null; else: none);
|
|
150
|
-
@include font-size(var(--cx-font-size-
|
|
151
|
-
@include border-radius(var(--cx-border-radius-
|
|
150
|
+
@include font-size(var(--cx-font-size-sm));
|
|
151
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
152
152
|
|
|
153
153
|
&:hover,
|
|
154
154
|
&:focus {
|
package/src/scss/_snippets.scss
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
border: solid var(--cx-border-subtle);
|
|
14
14
|
border-width: 1px 0;
|
|
15
15
|
|
|
16
|
-
@include media-breakpoint-up(
|
|
16
|
+
@include media-breakpoint-up(md) {
|
|
17
17
|
margin-inline: 0;
|
|
18
18
|
border-width: 1px;
|
|
19
|
-
@include border-radius(var(--cx-border-radius-
|
|
19
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
border-width: 1px 0;
|
|
32
32
|
// @include clearfix();
|
|
33
33
|
|
|
34
|
-
@include media-breakpoint-up(
|
|
34
|
+
@include media-breakpoint-up(md) {
|
|
35
35
|
--cxd-example-padding: 1.5rem;
|
|
36
36
|
margin-inline: 0;
|
|
37
37
|
border-width: 1px;
|
|
38
|
-
@include border-radius(var(--cx-border-radius-
|
|
38
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
39
39
|
&:has(~ .cxd-snippet-toolbar) {
|
|
40
40
|
@include border-bottom-radius(0);
|
|
41
41
|
}
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
position: relative;
|
|
70
70
|
background-color: var(--cxd-pre-bg, var(--cx-bg-even));
|
|
71
71
|
|
|
72
|
-
@include media-breakpoint-up(
|
|
73
|
-
@include border-radius(calc(var(--cx-border-radius-
|
|
72
|
+
@include media-breakpoint-up(md) {
|
|
73
|
+
@include border-radius(calc(var(--cx-border-radius-md) - 1px));
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.cxd-clipboard ~ & {
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
padding: var(--cxd-code-padding);
|
|
82
82
|
margin-block-end: 0;
|
|
83
83
|
overflow: overlay;
|
|
84
|
-
@include font-size(var(--cx-font-size-code-
|
|
85
|
-
line-height: var(--cx-line-height-code-
|
|
84
|
+
@include font-size(var(--cx-font-size-code-sm));
|
|
85
|
+
line-height: var(--cx-line-height-code-sm);
|
|
86
86
|
white-space: pre;
|
|
87
87
|
background-color: transparent;
|
|
88
88
|
border: 0;
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
|
|
101
101
|
.cxd-snippet-toolbar {
|
|
102
102
|
display: flex;
|
|
103
|
-
gap: var(--cx-space-
|
|
103
|
+
gap: var(--cx-space-xs);
|
|
104
104
|
align-items: center;
|
|
105
|
-
padding-block: var(--cx-space-
|
|
106
|
-
padding-inline: var(--cx-space-
|
|
105
|
+
padding-block: var(--cx-space-2xs);
|
|
106
|
+
padding-inline: var(--cx-space-sm) var(--cx-space-xs);
|
|
107
107
|
background-color: var(--cxd-pre-bg, var(--cx-bg-even));
|
|
108
108
|
border-block-end: var(--cx-border-width) var(--cx-border-style) var(--cx-border-subtle);
|
|
109
109
|
.cxd-example ~ & {
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
> a {
|
|
118
|
-
@include font-size(var(--cx-font-size-
|
|
118
|
+
@include font-size(var(--cx-font-size-sm));
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.cxd-file-ref {
|
|
123
123
|
.cxd-snippet-toolbar {
|
|
124
124
|
border-block-start: 0;
|
|
125
|
-
@include media-breakpoint-up(
|
|
126
|
-
@include border-top-radius(calc(var(--cx-border-radius-
|
|
125
|
+
@include media-breakpoint-up(md) {
|
|
126
|
+
@include border-top-radius(calc(var(--cx-border-radius-md) - 1px));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
.button-clipboard,
|
|
156
156
|
.button-edit {
|
|
157
157
|
--cx-icon-color: var(--cx-fg-subtle);
|
|
158
|
-
--cx-icon-size: var(--cx-icon-
|
|
158
|
+
--cx-icon-size: var(--cx-icon-sm);
|
|
159
159
|
display: block;
|
|
160
160
|
padding: .25em;
|
|
161
161
|
line-height: 1;
|
package/src/scss/_toc.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@layer custom {
|
|
5
5
|
|
|
6
6
|
.cxd-toc {
|
|
7
|
-
@include media-breakpoint-up(
|
|
7
|
+
@include media-breakpoint-up(lg) {
|
|
8
8
|
position: sticky;
|
|
9
9
|
top: 4rem;
|
|
10
10
|
right: 0;
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
// border-style: solid;
|
|
21
21
|
border-inline-start: var(--cx-border-width) var(--cx-border-style) var(--cx-border-subtle);
|
|
22
22
|
}
|
|
23
|
-
@include media-breakpoint-between(
|
|
23
|
+
@include media-breakpoint-between(md, lg) {
|
|
24
24
|
padding: .5rem 1rem;
|
|
25
25
|
margin-block-end: 1rem;
|
|
26
26
|
background-color: var(--cx-bg-even);
|
|
27
27
|
border: var(--cx-border-width) var(--cx-border-style) var(--cx-border-subtle);
|
|
28
|
-
@include border-radius(var(--cx-border-radius-
|
|
28
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
nav {
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
display: flex;
|
|
79
79
|
align-items: center;
|
|
80
80
|
|
|
81
|
-
@include media-breakpoint-down(
|
|
81
|
+
@include media-breakpoint-down(sm) {
|
|
82
82
|
justify-content: space-between;
|
|
83
83
|
width: 100%;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
@include media-breakpoint-down(
|
|
86
|
+
@include media-breakpoint-down(md) {
|
|
87
87
|
color: var(--cx-fg-color);
|
|
88
88
|
border: var(--cx-border-width) var(--cx-border-style) var(--cx-border-color);
|
|
89
|
-
@include border-radius(var(--cx-border-radius-
|
|
89
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
90
90
|
|
|
91
91
|
&:hover,
|
|
92
92
|
&:focus,
|
|
@@ -105,16 +105,16 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.cxd-toc-collapse {
|
|
108
|
-
@include media-breakpoint-down(
|
|
108
|
+
@include media-breakpoint-down(md) {
|
|
109
109
|
nav {
|
|
110
110
|
padding: 1.25rem 1.25rem 1.25rem 1rem;
|
|
111
111
|
background-color: var(--cx-bg-even);
|
|
112
112
|
border: var(--cx-border-width) solid var(--cx-border-subtle);
|
|
113
|
-
@include border-radius(var(--cx-border-radius-
|
|
113
|
+
@include border-radius(var(--cx-border-radius-md));
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
@include media-breakpoint-up(
|
|
117
|
+
@include media-breakpoint-up(md) {
|
|
118
118
|
display: block;
|
|
119
119
|
}
|
|
120
120
|
}
|
package/src/scss/_vars.scss
CHANGED
|
@@ -82,7 +82,7 @@ $cxd-callout-variants: info, warning, danger, default !default;
|
|
|
82
82
|
//
|
|
83
83
|
// .cxd-playground textarea {
|
|
84
84
|
// font-family: var(--cx-font-family-code) !important;
|
|
85
|
-
// //font-size: var(--cx-font-
|
|
85
|
+
// //font-size: var(--cx-font-sm) !important;
|
|
86
86
|
// background-color: var(--cx-default-bg-even) !important;
|
|
87
87
|
// border-color: var(--cx-default-border-subtle);
|
|
88
88
|
// }
|
package/src/scss/main.scss
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
.docs-body .navbar,
|
|
36
36
|
.docs-body .cxd-footer {
|
|
37
|
-
.container.#{\32
|
|
37
|
+
.container.#{\32 xl} {
|
|
38
38
|
max-width: 100%;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
|
|
53
53
|
.section-content:has(.gallery-image) > div {
|
|
54
54
|
height: var(--gallery-image-height, 256px);
|
|
55
|
-
border: var(--cx-border-width-
|
|
55
|
+
border: var(--cx-border-width-md) solid var(--cx-bg-evident);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.gallery-image {
|
|
59
59
|
display: flex;
|
|
60
60
|
align-items: center;
|
|
61
61
|
|
|
62
|
-
@include media-breakpoint-down(
|
|
62
|
+
@include media-breakpoint-down(md) {
|
|
63
63
|
margin-block-start: -25%;
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
border: 0;
|
|
79
79
|
|
|
80
80
|
.cxd-code {
|
|
81
|
-
padding: var(--cx-space-
|
|
81
|
+
padding: var(--cx-space-md);
|
|
82
82
|
background-color: var(--cx-bg-even);
|
|
83
83
|
}
|
|
84
84
|
pre {
|