@apify/docs-theme 1.0.37 → 1.0.39

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ // cannot use any of the theme aliases here as it causes a circular dependency :( ideas welcome
3
+ import Layout from '@docusaurus/theme-classic/lib/theme/Layout/index';
4
+ import { usePluginData } from '@docusaurus/useGlobalData';
5
+
6
+ export default function LayoutWrapper(props) {
7
+ const { options: { subNavbar } } = usePluginData('@apify/docs-theme');
8
+ return (
9
+ <div style={{
10
+ '--ifm-navbar-height': subNavbar ? '123px' : '68px',
11
+ 'margin': 0,
12
+ 'padding': 0,
13
+ 'boxSizing': 'border-box',
14
+ }}>
15
+ <Layout {...props} />
16
+ </div>
17
+ );
18
+ }
@@ -667,7 +667,16 @@ aside li.section-header > div > .menu__link {
667
667
  opacity: 0.8;
668
668
  font-size: 1em;
669
669
  font-weight: 700;
670
- margin: 5px 0;
670
+ margin: 0;
671
+ }
672
+
673
+ aside li.section-header.menu__list-item {
674
+ margin-top: 15px;
675
+ margin-bottom: 5px;
676
+ }
677
+
678
+ aside li.section-header.menu__list-item:nth-child(2) {
679
+ margin-top: 5px;
671
680
  }
672
681
 
673
682
  aside li.section-header > .menu__list {