diff --git a/packages/docusaurus-playground/docusaurus.config.js b/packages/docusaurus-playground/docusaurus.config.js
index 6e77e84..867ad8f 100644
--- a/packages/docusaurus-playground/docusaurus.config.js
+++ b/packages/docusaurus-playground/docusaurus.config.js
@@ -41,7 +41,7 @@ const config = {
},
},
docs: {
- routeBasePath: '/docs',
+ routeBasePath: '/about',
versions: {
current: {
label: 'current',
@@ -57,16 +57,65 @@ const config = {
themeConfig:
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
({
- colorMode: {
- defaultMode: 'dark',
- disableSwitch: false,
- },
navbar: {
- // items: [
- // {
- // type: 'search',
- // }
- // ]
+ items: [
+ {
+ type: 'search',
+ },
+ {
+ label: 'About',
+ to: '/about',
+ },
+ {
+ label: 'Github',
+ href: 'https://github.com/status-im',
+ },
+ ],
+ },
+ footer: {
+ copyright: 'Nimbus @2023
All Rights Reserved.',
+ links: [
+ {
+ items: [
+ {
+ href: 'https://twitter.com/ethnimbus',
+ label: 'Twitter',
+ },
+ {
+ href: 'https://discord.gg/EP8DZnXu9y',
+ label: 'Discord',
+ },
+ {
+ href: '/',
+ label: 'Docs',
+ },
+ {
+ href: '/',
+ label: 'Github',
+ },
+ ],
+ },
+ {
+ items: [
+ {
+ href: '/',
+ label: 'Contact us',
+ },
+ {
+ href: 'https://jobs.status.im/',
+ label: 'Work with us',
+ },
+ {
+ href: '/',
+ label: 'Privacy policy',
+ },
+ {
+ href: '/',
+ label: 'Terms & conditions',
+ },
+ ],
+ },
+ ],
},
}),
}
diff --git a/packages/logos-docusaurus-preset/src/theme-config/base.ts b/packages/logos-docusaurus-preset/src/theme-config/base.ts
index 2820898..69ecd76 100644
--- a/packages/logos-docusaurus-preset/src/theme-config/base.ts
+++ b/packages/logos-docusaurus-preset/src/theme-config/base.ts
@@ -15,6 +15,7 @@ export const baseThemeConfig: ThemeConfig = {
navbar: {
title: '',
logo: {},
+ hideOnScroll: true,
},
footer: {
logo: {},
diff --git a/packages/logos-docusaurus-theme/src/client/css/custom.scss b/packages/logos-docusaurus-theme/src/client/css/custom.scss
index 481123e..59341d2 100644
--- a/packages/logos-docusaurus-theme/src/client/css/custom.scss
+++ b/packages/logos-docusaurus-theme/src/client/css/custom.scss
@@ -185,7 +185,7 @@
--ifm-navbar-padding-vertical: calc(var(--ifm-spacing-vertical) * 0.5);
--ifm-navbar-shadow: var(--ifm-global-shadow-lw);
--ifm-navbar-search-input-icon: url('data:image/svg+xml;utf8,');
- --ifm-navbar-sidebar-width: 83vw;
+ --ifm-navbar-sidebar-width: 100vw;
--ifm-pagination-border-radius: var(--ifm-global-radius);
--ifm-pagination-font-size: 1rem;
--ifm-pagination-item-active-background: var(--ifm-hover-overlay);
@@ -432,6 +432,10 @@ small {
}
}
+.menu__list-item .menu__link {
+ @include lsd.typography('body2');
+}
+
.menu__link--active {
border-left: 1px solid rgb(var(--lsd-border-primary));
border-radius: 0;
@@ -540,6 +544,35 @@ small {
align-items: center;
}
+a[class^='sidebarLogo_'] {
+ margin: 0;
+
+ img {
+ height: 48px;
+ }
+}
+
+.navbar-sidebar__item {
+ padding-inline: var(--content-padding);
+ padding-block: 0;
+}
+
+.navbar-sidebar__back {
+ display: flex;
+ align-items: center;
+ padding: 0;
+ width: 100% !important;
+ margin: 0 !important;
+ gap: 16px;
+ margin-top: 24px !important;
+ margin-bottom: 24px !important;
+}
+
+.theme-doc-sidebar-menu .menu__link {
+ padding-left: var(--content-padding);
+ padding-right: 0;
+}
+
@include utils.responsive('sm', 'down') {
:root {
--ifm-global-spacing: 0.5rem;
@@ -630,6 +663,10 @@ small {
flex: 1 0;
margin: auto;
}
+
+ nav.menu {
+ padding-top: 0;
+ }
}
@include utils.responsive('xl', 'up') {
@@ -653,6 +690,10 @@ small {
}
}
}
+
+ .theme-doc-toc-desktop {
+ top: calc(var(--ifm-navbar-height)) !important;
+ }
}
.container {
@@ -713,6 +754,7 @@ small {
.footer__title {
@include lsd.typography('label1');
margin-bottom: 4px;
+ font-weight: var(--ifm-font-weight-normal);
}
.footer > div:nth-child(1) > .footer__links {
@@ -870,6 +912,89 @@ small {
.main-wrapper {
padding-inline: 0;
}
+
+ .navbar-sidebar:has(.navbar-sidebar__items--show-secondary)
+ .navbar-sidebar__brand {
+ button:first-of-type {
+ display: none;
+ }
+
+ button.lsd-icon-button {
+ margin-left: auto;
+ }
+ }
+
+ .navbar-sidebar:not(:has(.navbar-sidebar__items--show-secondary)) {
+ .navbar-sidebar__items {
+ height: 180px;
+ }
+
+ .navbar-sidebar__item {
+ padding-block: var(--content-padding);
+ }
+
+ .menu__list {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ }
+
+ .menu__link {
+ padding-left: 0;
+ border-left: none;
+
+ > div {
+ font-size: var(--lsd-body1-fontSize) !important;
+ }
+ }
+
+ .footer > div {
+ gap: 32px !important;
+ }
+
+ .footer > button {
+ display: none;
+ }
+
+ .footer .container.container-fluid {
+ margin-bottom: 16px !important;
+
+ > .footer__links {
+ gap: 0 !important;
+ }
+ }
+
+ .footer .footer__links {
+ gap: 16px !important;
+ }
+ }
+
+ .navbar-sidebar__brand {
+ height: 60px;
+ padding-block: 0;
+ }
+
+ .navbar-sidebar__brand > button {
+ width: 32px;
+ height: 32px;
+ }
+
+ .navbar-sidebar__brand > button:first-of-type {
+ margin-right: 0 !important;
+ margin-left: auto;
+ }
+
+ .navbar-sidebar__brand > button:not(:last-of-type) {
+ border-right: none;
+ }
+
+ .navbar-sidebar__close {
+ border: 1px solid rgb(var(--lsd-border-primary));
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-left: unset;
+ }
}
[data-hidden-doc-sidebar='true'] {
diff --git a/packages/logos-docusaurus-theme/src/client/theme/DocSidebar/Desktop/styles.module.css b/packages/logos-docusaurus-theme/src/client/theme/DocSidebar/Desktop/styles.module.css
index 8863ded..a8fc5ff 100644
--- a/packages/logos-docusaurus-theme/src/client/theme/DocSidebar/Desktop/styles.module.css
+++ b/packages/logos-docusaurus-theme/src/client/theme/DocSidebar/Desktop/styles.module.css
@@ -3,7 +3,7 @@
display: flex;
flex-direction: column;
height: 100%;
- margin-top: var(--ifm-navbar-height);
+ padding-top: var(--ifm-navbar-height);
/* width: var(--doc-sidebar-width); */
}
diff --git a/packages/logos-docusaurus-theme/src/client/theme/DocSidebarItem/Category/index.tsx b/packages/logos-docusaurus-theme/src/client/theme/DocSidebarItem/Category/index.tsx
index bba0b2d..e281f94 100644
--- a/packages/logos-docusaurus-theme/src/client/theme/DocSidebarItem/Category/index.tsx
+++ b/packages/logos-docusaurus-theme/src/client/theme/DocSidebarItem/Category/index.tsx
@@ -17,7 +17,7 @@ import Link from '@docusaurus/Link'
import { translate } from '@docusaurus/Translate'
import useIsBrowser from '@docusaurus/useIsBrowser'
import DocSidebarItems from '@theme/DocSidebarItems'
-import { ArrowDownIcon, ArrowUpIcon } from '@acid-info/lsd-react'
+import { ArrowDownIcon, ArrowUpIcon, Typography } from '@acid-info/lsd-react'
// If we navigate to a category and it becomes active, it should automatically
// expand itself
@@ -165,7 +165,9 @@ export default function DocSidebarItemCategory({
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
{...props}
>
- {label}
+