@apify/docs-theme 1.0.179 → 1.0.180
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 +1 -1
- package/src/config.js +7 -10
- package/src/theme/Footer/index.jsx +6 -10
- package/src/theme/Footer/index.module.css +14 -73
- package/src/theme/Layout/index.jsx +1 -1
- package/src/theme/Navbar/Content/index.jsx +4 -4
- package/src/theme/Navbar/Content/styles.module.css +8 -0
- package/src/theme/SearchBar/index.js +8 -17
- package/src/theme/SearchBar/styles.css +2 -90
- package/src/theme/custom.css +129 -257
- package/src/theme/Navbar/CTA/index.jsx +0 -7
- package/src/theme/Navbar/CTA/styles.module.css +0 -57
- package/src/theme/Navbar/MobileSidebar/Header/index.jsx +0 -46
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -137,6 +137,13 @@ const themeConfig = {
|
|
|
137
137
|
},
|
|
138
138
|
],
|
|
139
139
|
},
|
|
140
|
+
{
|
|
141
|
+
href: 'https://github.com/apify',
|
|
142
|
+
label: 'GitHub',
|
|
143
|
+
title: 'Apify on GitHub',
|
|
144
|
+
position: 'right',
|
|
145
|
+
className: 'icon',
|
|
146
|
+
},
|
|
140
147
|
{
|
|
141
148
|
href: 'https://discord.com/invite/jyEM2PRvMU',
|
|
142
149
|
label: 'Discord',
|
|
@@ -249,10 +256,6 @@ const themeConfig = {
|
|
|
249
256
|
label: 'GitHub',
|
|
250
257
|
href: 'https://github.com/apify',
|
|
251
258
|
},
|
|
252
|
-
{
|
|
253
|
-
href: 'https://discord.com/invite/jyEM2PRvMU',
|
|
254
|
-
label: 'Discord',
|
|
255
|
-
},
|
|
256
259
|
{
|
|
257
260
|
label: 'Trust Center',
|
|
258
261
|
href: 'https://trust.apify.com',
|
|
@@ -271,15 +274,9 @@ const themeConfig = {
|
|
|
271
274
|
appId: 'N8EOCSBQGH',
|
|
272
275
|
apiKey: 'e97714a64e2b4b8b8fe0b01cd8592870', // search only (public) API key
|
|
273
276
|
indexName: 'apify_sdk_v2',
|
|
274
|
-
placeholder: 'Search documentation',
|
|
275
277
|
algoliaOptions: {
|
|
276
278
|
facetFilters: ['version:VERSION'],
|
|
277
279
|
},
|
|
278
|
-
translations: {
|
|
279
|
-
button: {
|
|
280
|
-
buttonText: 'Search documentation…',
|
|
281
|
-
},
|
|
282
|
-
},
|
|
283
280
|
},
|
|
284
281
|
hubspot: {
|
|
285
282
|
accountId: '19497222',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useThemeConfig } from '@docusaurus/theme-common';
|
|
2
2
|
import LinkItem from '@theme/Footer/LinkItem';
|
|
3
|
-
import ColorModeToggle from '@theme/Navbar/ColorModeToggle';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import React from 'react';
|
|
6
5
|
|
|
@@ -9,7 +8,7 @@ import styles from './index.module.css';
|
|
|
9
8
|
function FooterLinksColumn({ column }) {
|
|
10
9
|
return (
|
|
11
10
|
<>
|
|
12
|
-
<div className={styles.
|
|
11
|
+
<div className={styles.footerTitle}>{column.title}</div>
|
|
13
12
|
<ul className={clsx(styles.footerItem, 'clean-list')}>
|
|
14
13
|
{column.items.map((item, i) => (
|
|
15
14
|
<li key={i} className="footer__item">
|
|
@@ -29,8 +28,8 @@ function Footer() {
|
|
|
29
28
|
const { links, style } = footer;
|
|
30
29
|
return (
|
|
31
30
|
<footer className={clsx(styles.footer, style)}>
|
|
32
|
-
<div className=
|
|
33
|
-
<div className={
|
|
31
|
+
<div className="container padding-horiz--lg">
|
|
32
|
+
<div className="row" style={{ justifyContent: 'space-between' }}>
|
|
34
33
|
{ links.map((column, i) => (
|
|
35
34
|
<div key={i} className={`col col--2`}>
|
|
36
35
|
<FooterLinksColumn {...{ column }} />
|
|
@@ -38,15 +37,12 @@ function Footer() {
|
|
|
38
37
|
))
|
|
39
38
|
}
|
|
40
39
|
</div>
|
|
41
|
-
<div className=
|
|
42
|
-
<div className="col col--6">
|
|
40
|
+
<div className="row padding-vert--md padding-top--lg">
|
|
41
|
+
<div className="col padding-vert--md col--6">
|
|
43
42
|
<a href="https://apify.com" target={'_blank'} rel={'dofollow noreferrer'}>
|
|
44
|
-
<span className={styles.
|
|
43
|
+
<span className={styles.footerLogo}></span>
|
|
45
44
|
</a>
|
|
46
45
|
</div>
|
|
47
|
-
<div className="col col--6">
|
|
48
|
-
<ColorModeToggle className={styles.toggle} />
|
|
49
|
-
</div>
|
|
50
46
|
</div>
|
|
51
47
|
</div>
|
|
52
48
|
</footer>
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
.footer {
|
|
2
|
-
padding:
|
|
3
|
-
border-top: 1px solid var(--color-neutral-separator-subtle);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.container {
|
|
7
|
-
max-width: calc(var(--max-layout-width) - var(--ifm-spacing-horizontal) * 2);
|
|
8
|
-
width: 100%;
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
2
|
+
padding-top: 64px;
|
|
12
3
|
}
|
|
13
4
|
|
|
14
5
|
.builtBy {
|
|
@@ -42,31 +33,20 @@
|
|
|
42
33
|
fill: #6f7490;
|
|
43
34
|
}
|
|
44
35
|
|
|
45
|
-
.
|
|
46
|
-
font-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
.bottom {
|
|
57
|
-
padding-top: 8rem;
|
|
58
|
-
|
|
59
|
-
:global(.col) {
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.toggle {
|
|
66
|
-
margin-left: auto;
|
|
36
|
+
.footerTitle {
|
|
37
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
38
|
+
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
|
|
39
|
+
'Helvetica Neue', sans-serif;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
line-height: 20px;
|
|
43
|
+
letter-spacing: 0.1em;
|
|
44
|
+
text-transform: uppercase;
|
|
45
|
+
color: #8d92af;
|
|
46
|
+
margin-bottom: 20px;
|
|
67
47
|
}
|
|
68
48
|
|
|
69
|
-
.
|
|
49
|
+
.footerLogo {
|
|
70
50
|
display: inline-block;
|
|
71
51
|
width: 90px;
|
|
72
52
|
height: 24px;
|
|
@@ -74,47 +54,8 @@
|
|
|
74
54
|
background-repeat: no-repeat;
|
|
75
55
|
}
|
|
76
56
|
|
|
77
|
-
html[data-theme='dark'] .
|
|
57
|
+
html[data-theme='dark'] .footerLogo {
|
|
78
58
|
background-image: url('/img/footer-apify-logo-white.svg');
|
|
79
59
|
}
|
|
80
60
|
|
|
81
|
-
@media (max-width: 996px) {
|
|
82
|
-
.footer {
|
|
83
|
-
padding: 3.2rem 1.6rem;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.container {
|
|
87
|
-
flex-direction: column-reverse;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.bottom {
|
|
91
|
-
padding-top: 0;
|
|
92
|
-
gap: 1.6rem;
|
|
93
|
-
|
|
94
|
-
:global(.col) {
|
|
95
|
-
justify-content: center;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.toggle {
|
|
100
|
-
margin-left: unset;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.top {
|
|
104
|
-
padding: 3.2rem 0;
|
|
105
|
-
gap: 3.2rem;
|
|
106
|
-
text-align: center;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.top::before {
|
|
110
|
-
width: 100%;
|
|
111
|
-
height: 1px;
|
|
112
|
-
margin: 0 -1.6rem;
|
|
113
|
-
padding: 0 1.6rem;
|
|
114
|
-
content: '';
|
|
115
|
-
display: block;
|
|
116
|
-
background-color: var(--color-neutral-separator-subtle);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
61
|
/** dummy comment just to trigger theme publishing 3 */
|
|
@@ -12,7 +12,7 @@ export default function LayoutWrapper(props) {
|
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<div style={{
|
|
15
|
-
'--ifm-navbar-height': subNavbar && !currentPath.startsWith('api/v2') ? '
|
|
15
|
+
'--ifm-navbar-height': subNavbar && !currentPath.startsWith('api/v2') ? '123px' : '68px',
|
|
16
16
|
margin: 0,
|
|
17
17
|
padding: 0,
|
|
18
18
|
boxSizing: 'border-box',
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
splitNavbarItems,
|
|
5
5
|
} from '@docusaurus/theme-common/internal';
|
|
6
6
|
import { usePluginData } from '@docusaurus/useGlobalData';
|
|
7
|
+
import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
|
|
7
8
|
import NavbarLogo from '@theme/Navbar/Logo';
|
|
8
9
|
import NavbarMobileSidebarToggle from '@theme/Navbar/MobileSidebar/Toggle';
|
|
9
10
|
import NavbarSearch from '@theme/Navbar/Search';
|
|
@@ -11,7 +12,7 @@ import NavbarItem from '@theme/NavbarItem';
|
|
|
11
12
|
import React from 'react';
|
|
12
13
|
|
|
13
14
|
import SearchBar from '../../SearchBar';
|
|
14
|
-
import
|
|
15
|
+
import styles from './styles.module.css';
|
|
15
16
|
|
|
16
17
|
function NavbarItems({ items }) {
|
|
17
18
|
return (
|
|
@@ -71,7 +72,6 @@ export default function NavbarContent() {
|
|
|
71
72
|
const { navbar: { items } } = useThemeConfig();
|
|
72
73
|
const [leftItems, rightItems] = splitNavbarItems(items);
|
|
73
74
|
const searchBarItem = items.find((item) => item.type === 'search');
|
|
74
|
-
|
|
75
75
|
return (
|
|
76
76
|
<div
|
|
77
77
|
style={{
|
|
@@ -85,20 +85,20 @@ export default function NavbarContent() {
|
|
|
85
85
|
<NavbarContentLayout
|
|
86
86
|
left={
|
|
87
87
|
<>
|
|
88
|
+
<NavbarMobileSidebarToggle />
|
|
88
89
|
<NavbarLogo />
|
|
89
90
|
<NavbarItems items={leftItems} />
|
|
90
91
|
</>
|
|
91
92
|
}
|
|
92
93
|
right={
|
|
93
94
|
<>
|
|
95
|
+
<NavbarColorModeToggle className={styles.colorModeToggle} />
|
|
94
96
|
<NavbarItems items={rightItems} />
|
|
95
97
|
{!searchBarItem && (
|
|
96
98
|
<NavbarSearch>
|
|
97
99
|
<SearchBar />
|
|
98
100
|
</NavbarSearch>
|
|
99
101
|
)}
|
|
100
|
-
<NavbarCTA />
|
|
101
|
-
<NavbarMobileSidebarToggle />
|
|
102
102
|
</>
|
|
103
103
|
}
|
|
104
104
|
/>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// eslint-disable-next-line simple-import-sort/imports
|
|
2
1
|
import BrowserOnly from '@docusaurus/BrowserOnly';
|
|
3
2
|
import RouterLink from '@docusaurus/Link';
|
|
4
3
|
import { useHistory, useLocation } from '@docusaurus/router';
|
|
@@ -7,10 +6,6 @@ import React, { useCallback } from 'react';
|
|
|
7
6
|
|
|
8
7
|
import { ApifySearch } from '@apify/docs-search-modal';
|
|
9
8
|
|
|
10
|
-
// needs to be imported as the last thing, so that it can override the default styles
|
|
11
|
-
// TODO: update simple-import-sort to allow importing css as last.
|
|
12
|
-
import './styles.css';
|
|
13
|
-
|
|
14
9
|
/**
|
|
15
10
|
* Tests whether the given href is pointing to the current docusaurus instance (so we can use the router link).
|
|
16
11
|
*/
|
|
@@ -40,7 +35,7 @@ export function Link(props) {
|
|
|
40
35
|
return <a {...props}>{props.children}</a>;
|
|
41
36
|
}
|
|
42
37
|
|
|
43
|
-
export default function SearchBar(
|
|
38
|
+
export default function SearchBar() {
|
|
44
39
|
const { siteConfig } = useDocusaurusContext();
|
|
45
40
|
const location = useLocation();
|
|
46
41
|
const history = useHistory();
|
|
@@ -62,17 +57,13 @@ export default function SearchBar({ onClick }) {
|
|
|
62
57
|
|
|
63
58
|
return (
|
|
64
59
|
<BrowserOnly>
|
|
65
|
-
{() =>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
navigate={navigate}
|
|
73
|
-
/>
|
|
74
|
-
</div>
|
|
75
|
-
)}
|
|
60
|
+
{() => <ApifySearch
|
|
61
|
+
algoliaAppId={siteConfig.themeConfig.algolia.appId}
|
|
62
|
+
algoliaIndexName='apify_sdk_v2'
|
|
63
|
+
algoliaKey={siteConfig.themeConfig.algolia.apiKey}
|
|
64
|
+
filters={`version:${getVersion()}`}
|
|
65
|
+
navigate={navigate}
|
|
66
|
+
/>}
|
|
76
67
|
</BrowserOnly>
|
|
77
68
|
);
|
|
78
69
|
}
|
|
@@ -4,97 +4,9 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.DocSearch-Button {
|
|
7
|
-
height: 4rem;
|
|
8
7
|
margin: 0;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
border: 1px solid var(--color-neutral-field-border);
|
|
12
|
-
border-radius: 6px;
|
|
13
|
-
color: var(--color-neutral-text-placeholder);
|
|
14
|
-
/* Annoying, but needed */
|
|
15
|
-
/* https://stackoverflow.com/questions/26140050/why-is-font-family-not-inherited-in-button-tags-automatically/26140154 */
|
|
16
|
-
font-family: inherit;
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
gap: 2rem;
|
|
21
|
-
transition: background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default),
|
|
22
|
-
color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.navbar-sidebar .DocSearch-Button {
|
|
26
|
-
display: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media (max-width: 768px) {
|
|
30
|
-
.DocSearch-Button {
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.DocSearch-Button-Placeholder {
|
|
35
|
-
display: block;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.navbar__inner .DocSearch-Button {
|
|
39
|
-
display: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.navbar-sidebar .DocSearch-Button {
|
|
43
|
-
display: flex;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.DocSearch-Button:hover {
|
|
48
|
-
box-shadow: none;
|
|
49
|
-
background-color: var(--color-Neutral_BackgroundMuted);
|
|
50
|
-
color: var(--color-neutral-icon);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.DocSearch-Search-Icon {
|
|
54
|
-
display: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.DocSearch-Button-Placeholder {
|
|
58
|
-
color: inherit;
|
|
59
|
-
font-size: 1.4rem;
|
|
60
|
-
line-height: 2.4rem;
|
|
61
|
-
padding: 0;
|
|
62
|
-
transition: color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.DocSearch-Button-Keys {
|
|
66
|
-
width: 3rem;
|
|
67
|
-
min-width: unset;
|
|
68
|
-
height: 2rem;
|
|
69
|
-
background-color: var(--color-neutral-background-subtle);
|
|
70
|
-
border: 1px solid var(--color-neutral-border);
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
justify-content: center;
|
|
75
|
-
gap: 0.2rem;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.DocSearch-Button-Key {
|
|
79
|
-
top: unset;
|
|
80
|
-
width: unset;
|
|
81
|
-
min-width: 0.8rem;
|
|
82
|
-
height: unset;
|
|
83
|
-
margin: unset;
|
|
84
|
-
padding: unset;
|
|
85
|
-
background: unset;
|
|
86
|
-
border-radius: unset;
|
|
87
|
-
box-shadow: unset;
|
|
88
|
-
color: var(--color-neutral-text-subtle);
|
|
89
|
-
font-size: 1.2rem;
|
|
90
|
-
font-weight: 500;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.DocSearch-Button-Key:first-child {
|
|
94
|
-
width: 1.2rem;
|
|
95
|
-
height: 1.2rem;
|
|
96
|
-
font-size: 1.6rem;
|
|
97
|
-
line-height: 1.2rem;
|
|
8
|
+
transition: all var(--ifm-transition-fast)
|
|
9
|
+
var(--ifm-transition-timing-default);
|
|
98
10
|
}
|
|
99
11
|
|
|
100
12
|
.DocSearch-Container {
|
package/src/theme/custom.css
CHANGED
|
@@ -14,6 +14,8 @@ html[data-theme='dark'] {
|
|
|
14
14
|
--ifm-heading-color: #f2f3fb;
|
|
15
15
|
--ifm-navbar-link-color: #f2f3fb;
|
|
16
16
|
|
|
17
|
+
/* TODO set this conditionally to 123px when there is second level nav */
|
|
18
|
+
--ifm-navbar-height: 68px;
|
|
17
19
|
--ifm-line-height-base: 1.65;
|
|
18
20
|
|
|
19
21
|
--ifm-code-background: var(--ifm-pre-background) !important;
|
|
@@ -78,9 +80,6 @@ html[data-theme='dark'] {
|
|
|
78
80
|
--color-primary-action: #5990ff;
|
|
79
81
|
--color-primary-action-hover: #80a9ff;
|
|
80
82
|
--color-primary-action-active: #3970d7;
|
|
81
|
-
--color-primary-black-action: #ffffff;
|
|
82
|
-
--color-primary-black-action-hover: #d1d5e4;
|
|
83
|
-
--color-primary-black-action-active: #f3f4fa;
|
|
84
83
|
--color-primary-field-border-active: #3970d7;
|
|
85
84
|
--color-primary-chip-background: #1a3a78;
|
|
86
85
|
--color-primary-chip-background-hover: #194594;
|
|
@@ -121,7 +120,6 @@ html[data-theme='dark'] {
|
|
|
121
120
|
--color-danger-chip-background: #672523;
|
|
122
121
|
--color-danger-chip-background-hover: #812420;
|
|
123
122
|
--color-danger-chip-text: #fe9e8a;
|
|
124
|
-
--button-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
:root {
|
|
@@ -135,7 +133,6 @@ html[data-theme='dark'] {
|
|
|
135
133
|
--ifm-font-weight-semibold: 600;
|
|
136
134
|
--ifm-font-color-base: #242736;
|
|
137
135
|
|
|
138
|
-
--ifm-navbar-sidebar-width: 100vw;
|
|
139
136
|
--ifm-navbar-item-padding-horizontal: 28px;
|
|
140
137
|
--ifm-navbar-link-color: #41465d;
|
|
141
138
|
--ifm-navbar-shadow: none;
|
|
@@ -163,7 +160,6 @@ html[data-theme='dark'] {
|
|
|
163
160
|
--ifm-footer-background-color: #272c3d;
|
|
164
161
|
--ifm-footer-title-color: #60626e;
|
|
165
162
|
--ifm-footer-link-color: #6b6e80;
|
|
166
|
-
--ifm-spacing-horizontal: 2.4rem;
|
|
167
163
|
--max-layout-width: 1440px;
|
|
168
164
|
|
|
169
165
|
--ifm-code-background: var(--ifm-pre-background);
|
|
@@ -240,9 +236,6 @@ html[data-theme='dark'] {
|
|
|
240
236
|
--color-primary-action: #1672eb;
|
|
241
237
|
--color-primary-action-hover: #5290f9;
|
|
242
238
|
--color-primary-action-active: #1a57da;
|
|
243
|
-
--color-primary-black-action: #272d3e;
|
|
244
|
-
--color-primary-black-action-hover: #2b3143;
|
|
245
|
-
--color-primary-black-action-active: #0a0b0f;
|
|
246
239
|
--color-primary-field-border-active: #1672eb;
|
|
247
240
|
--color-primary-chip-background: #e1eaff;
|
|
248
241
|
--color-primary-chip-background-hover: #d8e2ff;
|
|
@@ -283,7 +276,6 @@ html[data-theme='dark'] {
|
|
|
283
276
|
--color-danger-chip-background: #ffe3dc;
|
|
284
277
|
--color-danger-chip-background-hover: #fedad1;
|
|
285
278
|
--color-danger-chip-text: #bb0401;
|
|
286
|
-
--button-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
|
|
287
279
|
}
|
|
288
280
|
|
|
289
281
|
.markdown h1,
|
|
@@ -354,20 +346,12 @@ body {
|
|
|
354
346
|
font-weight: 600;
|
|
355
347
|
}
|
|
356
348
|
|
|
357
|
-
.
|
|
358
|
-
font-weight:
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
footer .clean-list {
|
|
362
|
-
margin-bottom: 0;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
footer .row {
|
|
366
|
-
margin: unset;
|
|
349
|
+
.navbar__item {
|
|
350
|
+
font-weight: 500;
|
|
367
351
|
}
|
|
368
352
|
|
|
369
|
-
|
|
370
|
-
|
|
353
|
+
.navbar__sub--title > a {
|
|
354
|
+
font-weight: 600;
|
|
371
355
|
}
|
|
372
356
|
|
|
373
357
|
.footer__title {
|
|
@@ -375,30 +359,6 @@ footer .col {
|
|
|
375
359
|
font-weight: 600;
|
|
376
360
|
}
|
|
377
361
|
|
|
378
|
-
.footer__item {
|
|
379
|
-
margin-bottom: 1.6rem;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.footer__item:last-child {
|
|
383
|
-
margin-bottom: 0;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.footer__link-item {
|
|
387
|
-
display: flex;
|
|
388
|
-
align-items: center;
|
|
389
|
-
gap: 0.4rem;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
@media (max-width: 996px) {
|
|
393
|
-
.footer__link-item {
|
|
394
|
-
margin: 0 auto;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.footer__link-item svg[class*=iconExternalLink] {
|
|
399
|
-
margin-left: unset;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
362
|
.footer__bottom a {
|
|
403
363
|
opacity: 0.75;
|
|
404
364
|
}
|
|
@@ -407,25 +367,24 @@ footer .col {
|
|
|
407
367
|
color: var(--ifm-footer-title-color);
|
|
408
368
|
}
|
|
409
369
|
|
|
370
|
+
footer .col {
|
|
371
|
+
margin-bottom: 32px;
|
|
372
|
+
}
|
|
373
|
+
|
|
410
374
|
.navbar__title {
|
|
411
375
|
/* Replaced by SVG */
|
|
412
376
|
display: none;
|
|
413
377
|
}
|
|
414
378
|
|
|
415
379
|
.navbar__inner {
|
|
380
|
+
/* .container */
|
|
381
|
+
padding: 10px var(--ifm-spacing-horizontal);
|
|
416
382
|
width: 100%;
|
|
417
|
-
height: 68px;
|
|
418
|
-
padding: 0 var(--ifm-spacing-horizontal);
|
|
419
383
|
background: var(--color-Neutral_Background);
|
|
420
384
|
}
|
|
421
385
|
|
|
422
|
-
.navbar__sub {
|
|
423
|
-
padding: 0.8rem var(--ifm-spacing-horizontal);
|
|
424
|
-
height: 58px;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
386
|
.navbar__container {
|
|
428
|
-
max-width: calc(var(--max-layout-width) -
|
|
387
|
+
max-width: calc(var(--max-layout-width) - 32px);
|
|
429
388
|
display: flex;
|
|
430
389
|
margin: 0 auto;
|
|
431
390
|
width: 100%;
|
|
@@ -436,6 +395,43 @@ footer .col {
|
|
|
436
395
|
display: none;
|
|
437
396
|
}
|
|
438
397
|
|
|
398
|
+
.dropdown__link {
|
|
399
|
+
font-size: 14px;
|
|
400
|
+
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.DocSearch-Button-Placeholder {
|
|
404
|
+
font-size: 14px !important;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
html .DocSearch-Button {
|
|
408
|
+
border-radius: 6px !important;
|
|
409
|
+
font-weight: 400 !important;
|
|
410
|
+
background: #f9fafd;
|
|
411
|
+
border: 1px solid #c1c6dd;
|
|
412
|
+
|
|
413
|
+
/* Annoying, but needed */
|
|
414
|
+
/* https://stackoverflow.com/questions/26140050/why-is-font-family-not-inherited-in-button-tags-automatically/26140154 */
|
|
415
|
+
font-family: inherit;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
html .DocSearch-Button .DocSearch-Search-Icon {
|
|
419
|
+
color: var(--docsearch-muted-color);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
html[data-theme="dark"] .DocSearch-Button {
|
|
423
|
+
background: none;
|
|
424
|
+
border: 1px solid var(--docsearch-muted-color);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
html[data-theme="dark"] .DocSearch-Button .DocSearch-Search-Icon {
|
|
428
|
+
color: var(--docsearch-muted-color);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.DocSearch-Button:hover {
|
|
432
|
+
box-shadow: none !important;
|
|
433
|
+
}
|
|
434
|
+
|
|
439
435
|
.navbar {
|
|
440
436
|
padding: 0;
|
|
441
437
|
/* height: fit-content; */
|
|
@@ -524,29 +520,24 @@ aside .icon svg[class*=iconExternalLink] {
|
|
|
524
520
|
}
|
|
525
521
|
|
|
526
522
|
.navbar__items {
|
|
527
|
-
|
|
528
|
-
gap: 0.4rem;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.navbar__items--right {
|
|
532
|
-
gap: 1.6rem;
|
|
523
|
+
gap: 6px;
|
|
533
524
|
}
|
|
534
525
|
|
|
535
526
|
.navbar__item, .menu__link, .navbar__link {
|
|
527
|
+
border-radius: 8px;
|
|
536
528
|
color: var(--color-Neutral_TextMuted);
|
|
537
|
-
padding:
|
|
538
|
-
font-size:
|
|
539
|
-
line-height:
|
|
529
|
+
padding: 4px 8px;
|
|
530
|
+
font-size: 14px;
|
|
531
|
+
line-height: 24.4px;
|
|
540
532
|
transition: all ease-in 0.12s;
|
|
541
533
|
}
|
|
542
534
|
|
|
543
535
|
.menu__link:hover {
|
|
544
|
-
background: var(--color-Neutral_Hover);
|
|
545
|
-
color: unset;
|
|
536
|
+
background: var(--color-Neutral_Hover) !important;
|
|
546
537
|
}
|
|
547
538
|
|
|
548
539
|
.menu__link--active:hover {
|
|
549
|
-
background: var(--color-neutral-overflow);
|
|
540
|
+
background: var(--color-neutral-overflow) !important;
|
|
550
541
|
}
|
|
551
542
|
|
|
552
543
|
.navbar__link:hover, .navbar__link--active:hover {
|
|
@@ -563,18 +554,12 @@ aside .icon svg[class*=iconExternalLink] {
|
|
|
563
554
|
display: flex;
|
|
564
555
|
align-items: center;
|
|
565
556
|
width: 200px;
|
|
566
|
-
|
|
567
|
-
padding-right: 2rem;
|
|
557
|
+
padding-right: 8px;
|
|
568
558
|
position: relative;
|
|
569
559
|
border-right: 1px solid var(--color-Neutral_SeparatorSubtle);
|
|
570
560
|
justify-content: center;
|
|
571
561
|
}
|
|
572
562
|
|
|
573
|
-
.navbar-sidebar__item {
|
|
574
|
-
width: 100%;
|
|
575
|
-
padding: 1.6rem var(--ifm-spacing-horizontal);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
563
|
header.hero div[class^=heroButtons] {
|
|
579
564
|
justify-content: inherit;
|
|
580
565
|
}
|
|
@@ -607,8 +592,8 @@ article .card h2 {
|
|
|
607
592
|
margin-top: 0;
|
|
608
593
|
}
|
|
609
594
|
|
|
610
|
-
.menu__link,
|
|
611
595
|
.tsd-kind-icon,
|
|
596
|
+
.menu__link,
|
|
612
597
|
.table-of-contents__link {
|
|
613
598
|
text-overflow: ellipsis;
|
|
614
599
|
display: inline-block !important;
|
|
@@ -630,25 +615,13 @@ article .card h2 {
|
|
|
630
615
|
color: #f2f3fb;
|
|
631
616
|
}
|
|
632
617
|
|
|
633
|
-
.menu__caret
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.menu__caret,
|
|
639
|
-
.menu__link--sublist-caret {
|
|
640
|
-
border-radius: 1.2rem;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
.menu__caret:before {
|
|
644
|
-
width: 1.2rem;
|
|
645
|
-
height: 1.2rem;
|
|
618
|
+
.menu__caret:before,
|
|
619
|
+
.menu__link--sublist:after {
|
|
620
|
+
float: right;
|
|
646
621
|
}
|
|
647
622
|
|
|
648
623
|
.menu__link--sublist-caret:after {
|
|
649
|
-
|
|
650
|
-
height: 2.4rem;
|
|
651
|
-
float: right;
|
|
624
|
+
height: 2.5rem;
|
|
652
625
|
}
|
|
653
626
|
|
|
654
627
|
aside button[class*="collapseSidebarButton"] svg {
|
|
@@ -659,110 +632,27 @@ aside button[class*="collapseSidebarButton"] svg {
|
|
|
659
632
|
height: 20px;
|
|
660
633
|
}
|
|
661
634
|
|
|
662
|
-
.navbar .
|
|
663
|
-
top: 100%;
|
|
664
|
-
width: 100%;
|
|
665
|
-
height: 0.6rem;
|
|
666
|
-
content: '';
|
|
667
|
-
display: block;
|
|
668
|
-
position: absolute;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
.navbar .dropdown__menu {
|
|
672
|
-
top: calc(100% + 0.6rem);
|
|
635
|
+
nav.navbar .dropdown__menu {
|
|
673
636
|
min-width: 96px;
|
|
674
|
-
padding:
|
|
675
|
-
border: 1px solid var(--color-neutral-border);
|
|
676
|
-
border-radius: 12px;
|
|
677
|
-
box-shadow: none;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
.navbar .dropdown__link {
|
|
681
|
-
margin: unset;
|
|
682
|
-
padding: 0.8rem;
|
|
683
|
-
font-size: 1.2rem;
|
|
684
|
-
line-height: 1.6rem;
|
|
685
|
-
border-radius: 0.8rem;
|
|
686
|
-
display: flex;
|
|
687
|
-
align-items: center;
|
|
688
|
-
gap: 0.4rem;
|
|
637
|
+
padding-top: 1rem;
|
|
689
638
|
}
|
|
690
639
|
|
|
691
|
-
.
|
|
692
|
-
background: var(--color-Neutral_Hover);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
.navbar .dropdown__link svg[class*=iconExternalLink] {
|
|
696
|
-
margin-left: unset;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.navbar__toggle,
|
|
700
|
-
.navbar-sidebar__close {
|
|
701
|
-
width: 3.6rem;
|
|
702
|
-
height: 3.6rem;
|
|
703
|
-
margin: unset;
|
|
704
|
-
flex-shrink: 0;
|
|
705
|
-
align-items: center;
|
|
706
|
-
justify-content: center;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
@media (max-width: 996px) {
|
|
710
|
-
.navbar__toggle {
|
|
711
|
-
display: flex;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
.navbar__toggle svg {
|
|
716
|
-
width: 2rem;
|
|
717
|
-
height: 2rem;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
.navbar-sidebar__close svg {
|
|
721
|
-
width: 1.6rem;
|
|
722
|
-
height: 1.6rem;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
.navbar-sidebar {
|
|
726
|
-
width: 100vw;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.navbar-sidebar__items {
|
|
730
|
-
height: calc(100vh - 197px);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
.navbar-sidebar__brand {
|
|
734
|
-
height: 68px;
|
|
735
|
-
padding: 0 var(--ifm-spacing-horizontal);
|
|
736
|
-
display: flex;
|
|
737
|
-
align-items: center;
|
|
738
|
-
gap: 0.8rem;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
.navbar-sidebar__actions {
|
|
742
|
-
width: 100%;
|
|
743
|
-
padding: 0 var(--ifm-spacing-horizontal);
|
|
640
|
+
.navbar__logo {
|
|
744
641
|
display: none;
|
|
642
|
+
width: 176px;
|
|
643
|
+
height: 48px;
|
|
745
644
|
}
|
|
746
645
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
display: block;
|
|
750
|
-
}
|
|
646
|
+
.navbar-sidebar .navbar__logo {
|
|
647
|
+
display: initial;
|
|
751
648
|
}
|
|
752
649
|
|
|
753
|
-
.navbar-
|
|
754
|
-
|
|
755
|
-
padding: 1.6rem 0;
|
|
756
|
-
border-bottom: 1px solid rgb(224, 224, 224);
|
|
757
|
-
display: flex;
|
|
758
|
-
flex-direction: column;
|
|
759
|
-
gap: 1.6rem;
|
|
650
|
+
.navbar-sidebar .toggle_theme-src-theme-ColorModeToggle-styles-module {
|
|
651
|
+
display: none;
|
|
760
652
|
}
|
|
761
653
|
|
|
762
|
-
.
|
|
763
|
-
|
|
764
|
-
height: 28px;
|
|
765
|
-
margin-right: unset;
|
|
654
|
+
.navbar-sidebar div[class*="toggle_apify-docs"] {
|
|
655
|
+
display: none;
|
|
766
656
|
}
|
|
767
657
|
|
|
768
658
|
.navbar__link.subnav {
|
|
@@ -834,6 +724,7 @@ html .plugin-docs .theme-doc-markdown h3 {
|
|
|
834
724
|
display: none;
|
|
835
725
|
}
|
|
836
726
|
|
|
727
|
+
.theme-doc-sidebar-menu .menu__link,
|
|
837
728
|
.theme-doc-toc-desktop .table-of-contents .toc-highlight {
|
|
838
729
|
height: auto;
|
|
839
730
|
background: none;
|
|
@@ -843,6 +734,10 @@ html .plugin-docs .theme-doc-markdown h3 {
|
|
|
843
734
|
margin-top: 0;
|
|
844
735
|
}
|
|
845
736
|
|
|
737
|
+
.theme-doc-sidebar-menu .menu__link:hover {
|
|
738
|
+
background: inherit;
|
|
739
|
+
}
|
|
740
|
+
|
|
846
741
|
.theme-doc-sidebar-menu .menu__link {
|
|
847
742
|
font-weight: 400;
|
|
848
743
|
}
|
|
@@ -851,6 +746,15 @@ html .plugin-docs .theme-doc-markdown h3 {
|
|
|
851
746
|
font-weight: 700;
|
|
852
747
|
}
|
|
853
748
|
|
|
749
|
+
.theme-doc-sidebar-menu .menu__list-item-collapsible {
|
|
750
|
+
background: none;
|
|
751
|
+
border-radius: 0.8rem;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.theme-doc-sidebar-menu .menu__list-item-collapsible:hover {
|
|
755
|
+
background: var(--color-Neutral_Hover);
|
|
756
|
+
}
|
|
757
|
+
|
|
854
758
|
.theme-doc-sidebar-menu .menu__list-item-collapsible--active:hover {
|
|
855
759
|
background: var(--color-neutral-overflow);
|
|
856
760
|
}
|
|
@@ -881,6 +785,7 @@ html[data-theme='dark'] .theme-doc-toc-desktop .table-of-contents .table-of-cont
|
|
|
881
785
|
color: #f2f3fb;
|
|
882
786
|
}
|
|
883
787
|
|
|
788
|
+
.theme-doc-sidebar-menu .menu__link:hover,
|
|
884
789
|
.theme-doc-sidebar-menu .menu__link--active,
|
|
885
790
|
.theme-doc-toc-desktop .table-of-contents .table-of-contents__link:hover,
|
|
886
791
|
.theme-doc-toc-desktop .table-of-contents .table-of-contents__link--active {
|
|
@@ -914,84 +819,24 @@ div[class*="searchBox"] {
|
|
|
914
819
|
position: unset;
|
|
915
820
|
}
|
|
916
821
|
|
|
917
|
-
.
|
|
918
|
-
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
@media (max-width: 996px) {
|
|
922
|
-
.navbar__brand {
|
|
923
|
-
margin-right: auto;
|
|
924
|
-
}
|
|
822
|
+
.menu__link.navbar__item {
|
|
823
|
+
padding: 4px 8px;
|
|
925
824
|
}
|
|
926
825
|
|
|
927
826
|
.menu__link, .menu__list-item > .navbar__item {
|
|
928
827
|
display: flex;
|
|
929
828
|
}
|
|
930
829
|
|
|
931
|
-
.
|
|
932
|
-
.
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
.navbar__item > .navbar__link,
|
|
936
|
-
.navbar-sidebar__back {
|
|
937
|
-
padding: 0.8rem 1.2rem;
|
|
938
|
-
border-radius: 2rem;
|
|
939
|
-
font-size: 1.4rem;
|
|
940
|
-
line-height: 2.4rem;
|
|
941
|
-
font-weight: 500;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
.navbar__item.navbar__link.icon {
|
|
945
|
-
padding: 0.8rem;
|
|
946
|
-
font-size: 0;
|
|
947
|
-
line-height: 0;
|
|
948
|
-
flex-shrink: 0;
|
|
830
|
+
.theme-doc-sidebar-item-category .menu__list-item-collapsible,
|
|
831
|
+
.theme-doc-sidebar-item-link {
|
|
832
|
+
display: flex;
|
|
833
|
+
align-items: center;
|
|
949
834
|
}
|
|
950
835
|
|
|
951
|
-
@media (
|
|
952
|
-
.
|
|
953
|
-
|
|
954
|
-
line-height: 2.4rem;
|
|
955
|
-
font-weight: 500;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
.menu__link.icon::before {
|
|
959
|
-
display: none;
|
|
836
|
+
@media (min-width: 480px) {
|
|
837
|
+
.navbar__logo {
|
|
838
|
+
display: initial;
|
|
960
839
|
}
|
|
961
|
-
|
|
962
|
-
.navbar__inner .navbar__item.navbar__link.icon {
|
|
963
|
-
display: none;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
.menu__list-item-collapsible {
|
|
969
|
-
padding: unset;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
.menu__list {
|
|
973
|
-
width: 100%;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
.menu__list > .menu__list-item {
|
|
977
|
-
margin-top: 0.4rem;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
.menu__list .menu__list {
|
|
981
|
-
margin-top: unset;
|
|
982
|
-
padding-left: 1.6rem;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
.navbar-sidebar__back {
|
|
986
|
-
width: 100%;
|
|
987
|
-
margin: unset;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
.theme-doc-sidebar-item-category
|
|
991
|
-
.theme-doc-sidebar-item-link,
|
|
992
|
-
.menu__list-item-collapsible {
|
|
993
|
-
display: flex;
|
|
994
|
-
align-items: center;
|
|
995
840
|
}
|
|
996
841
|
|
|
997
842
|
@media (min-width: 997px) {
|
|
@@ -1004,6 +849,12 @@ div[class*="searchBox"] {
|
|
|
1004
849
|
}
|
|
1005
850
|
}
|
|
1006
851
|
|
|
852
|
+
@media (min-width: 1130px) {
|
|
853
|
+
.navbar__items {
|
|
854
|
+
gap: 20px;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
1007
858
|
/* @media (min-width: 997px) and (max-width: 1250px) {
|
|
1008
859
|
.navbar__items--right a.icon {
|
|
1009
860
|
display: none;
|
|
@@ -1027,6 +878,11 @@ html .theme-doc-sidebar-container {
|
|
|
1027
878
|
border: 0;
|
|
1028
879
|
}
|
|
1029
880
|
|
|
881
|
+
html .theme-doc-sidebar-container button {
|
|
882
|
+
border: 0;
|
|
883
|
+
border-radius: 10px;
|
|
884
|
+
}
|
|
885
|
+
|
|
1030
886
|
html .table-of-contents {
|
|
1031
887
|
border-left: 0;
|
|
1032
888
|
}
|
|
@@ -1160,6 +1016,15 @@ aside li.section-header > .menu__list {
|
|
|
1160
1016
|
padding-left: 0;
|
|
1161
1017
|
}
|
|
1162
1018
|
|
|
1019
|
+
.theme-doc-sidebar-menu > li.section-header > ul > li.theme-doc-sidebar-item-category-level-2 > .menu__list-item-collapsible:hover,
|
|
1020
|
+
.theme-doc-sidebar-menu > li.section-header > ul > li.theme-doc-sidebar-item-category-level-2 > .menu__list-item-collapsible--active {
|
|
1021
|
+
background: inherit !important;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
.theme-doc-sidebar-menu > li.section-header > ul > li.theme-doc-sidebar-item-category-level-2 {
|
|
1025
|
+
margin-bottom: 1rem;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1163
1028
|
.beta-chip {
|
|
1164
1029
|
display: inline-block;
|
|
1165
1030
|
border: 1px solid #ccc;
|
|
@@ -1972,12 +1837,19 @@ iframe[src*="youtube"] {
|
|
|
1972
1837
|
--ifm-button-size-multiplier: 1.5;
|
|
1973
1838
|
}
|
|
1974
1839
|
|
|
1975
|
-
div[class^="navbarSearchContainer"] {
|
|
1976
|
-
padding: 0;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
1840
|
@media (max-width: 996px) {
|
|
1980
1841
|
div[class^="navbarSearchContainer"] {
|
|
1981
1842
|
position: static;
|
|
1982
1843
|
}
|
|
1844
|
+
|
|
1845
|
+
div[class^="navbarSearchContainer"] button {
|
|
1846
|
+
margin-left: 5px;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
@media (max-width: 768px) {
|
|
1851
|
+
.DocSearch-Button-Keys,
|
|
1852
|
+
.DocSearch-Button-Placeholder {
|
|
1853
|
+
display: none !important;
|
|
1854
|
+
}
|
|
1983
1855
|
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
.getStarted {
|
|
2
|
-
all: unset;
|
|
3
|
-
height: 4rem;
|
|
4
|
-
padding: 0.8rem 1.6rem !important;
|
|
5
|
-
background-color: var(--color-primary-black-action);
|
|
6
|
-
border-radius: 2rem;
|
|
7
|
-
color: var(--color-neutral-text-on-primary);
|
|
8
|
-
font-size: 1.6rem;
|
|
9
|
-
font-weight: 500;
|
|
10
|
-
line-height: 2.4rem;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
display: block;
|
|
14
|
-
position: relative;
|
|
15
|
-
text-align: center;
|
|
16
|
-
transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
|
17
|
-
|
|
18
|
-
&::before {
|
|
19
|
-
content: '';
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: 0;
|
|
22
|
-
right: 0;
|
|
23
|
-
bottom: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
background: var(--button-gradient);
|
|
26
|
-
opacity: 0.4;
|
|
27
|
-
border-radius: inherit;
|
|
28
|
-
transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:hover {
|
|
32
|
-
background-color: var(--color-primary-black-action-hover);
|
|
33
|
-
color: var(--color-neutral-text-on-primary);
|
|
34
|
-
|
|
35
|
-
&::before {
|
|
36
|
-
opacity: 1;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:global(.navbar-sidebar) .getStarted {
|
|
42
|
-
display: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (max-width: 768px) {
|
|
46
|
-
.getStarted {
|
|
47
|
-
width: 100%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:global(.navbar__inner) .getStarted {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:global(.navbar-sidebar) .getStarted {
|
|
55
|
-
display: block;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { useNavbarMobileSidebar, useThemeConfig } from '@docusaurus/theme-common/internal';
|
|
2
|
-
import IconClose from '@theme/Icon/Close';
|
|
3
|
-
import NavbarLogo from '@theme/Navbar/Logo';
|
|
4
|
-
import NavbarSearch from '@theme/Navbar/Search';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import SearchBar from '../../../SearchBar';
|
|
8
|
-
import NavbarCTA from '../../CTA';
|
|
9
|
-
|
|
10
|
-
export default function NavbarMobileSidebarHeader() {
|
|
11
|
-
const mobileSidebar = useNavbarMobileSidebar();
|
|
12
|
-
|
|
13
|
-
const { navbar: { items } } = useThemeConfig();
|
|
14
|
-
const searchBarItem = items.find((item) => item.type === 'search');
|
|
15
|
-
|
|
16
|
-
function onSearchClick(event) {
|
|
17
|
-
event.preventDefault();
|
|
18
|
-
mobileSidebar.toggle();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<>
|
|
23
|
-
<div className="navbar-sidebar__brand">
|
|
24
|
-
<NavbarLogo />
|
|
25
|
-
<button
|
|
26
|
-
type="button"
|
|
27
|
-
className="clean-btn navbar-sidebar__close"
|
|
28
|
-
onClick={mobileSidebar.toggle}
|
|
29
|
-
aria-label="Close navigation bar"
|
|
30
|
-
>
|
|
31
|
-
<IconClose />
|
|
32
|
-
</button>
|
|
33
|
-
</div>
|
|
34
|
-
<div className="navbar-sidebar__actions">
|
|
35
|
-
<div className="navbar-sidebar__actions__container">
|
|
36
|
-
<NavbarCTA />
|
|
37
|
-
{!searchBarItem && (
|
|
38
|
-
<NavbarSearch>
|
|
39
|
-
<SearchBar onClick={onSearchClick} />
|
|
40
|
-
</NavbarSearch>
|
|
41
|
-
)}
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</>
|
|
45
|
-
);
|
|
46
|
-
}
|