Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the top navbar to be less full #3177

Merged
merged 11 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 47 additions & 39 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,29 +214,32 @@ module.exports = {
style: 'dark',
items: [
{
label: 'Guides',
type: 'doc',
docId: 'getting-started',
position: 'right',
},
{
label: 'Components',
type: 'doc',
docId: 'components-and-apis',
label: 'Development',
type: 'dropdown',
position: 'right',
},
{
label: 'API',
type: 'doc',
docId: 'accessibilityinfo',
position: 'right',
},
{
label: 'Architecture',
type: 'doc',
docId: 'architecture-overview',
position: 'right',
docsPluginId: 'architecture',
items: [
{
label: 'Guides',
type: 'doc',
docId: 'getting-started',
},
{
label: 'Components',
type: 'doc',
docId: 'components-and-apis',
},
{
label: 'APIs',
type: 'doc',
docId: 'accessibilityinfo',
},
{
label: 'Architecture',
type: 'doc',
docId: 'architecture-overview',
docsPluginId: 'architecture',
},
],
},
{
type: 'doc',
Expand All @@ -245,6 +248,11 @@ module.exports = {
position: 'right',
docsPluginId: 'contributing',
},
{
to: '/showcase',
label: 'Showcase',
position: 'right',
},
{
to: '/blog',
label: 'Blog',
Expand Down Expand Up @@ -274,44 +282,44 @@ module.exports = {
style: 'dark',
links: [
{
title: 'Docs',
title: 'Development',
items: [
{
label: 'Getting Started',
label: 'Guides',
to: 'docs/getting-started',
},
{
label: 'Tutorial',
to: 'docs/tutorial',
label: 'Components',
to: 'docs/components-and-apis',
},
{
label: 'Components and APIs',
to: 'docs/components-and-apis',
label: 'APIs',
to: 'docs/accessibilityinfo',
},
{
label: 'More Resources',
to: 'docs/more-resources',
label: 'Architecture',
to: 'architecture/overview',
},
],
},
{
title: 'Community',
items: [
{
label: 'The React Native Community',
to: 'help',
label: 'Showcase',
to: 'showcase',
},
{
label: "Who's using React Native?",
to: 'showcase',
label: 'Contributing',
to: 'contributing/overview',
},
{
label: 'Ask Questions on Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/react-native',
label: 'The React Native Community',
to: 'help',
},
{
label: 'DEV Community',
href: 'https://dev.to/t/reactnative',
label: 'Ask Questions on Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/react-native',
},
],
},
Expand All @@ -336,7 +344,7 @@ module.exports = {
title: 'More',
items: [
{
label: 'React',
label: 'ReactJS',
href: 'https://reactjs.org/',
},
{
Expand Down
19 changes: 17 additions & 2 deletions website/src/css/customTheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ a[class*="tagRegular"] {
user-select: none;
}

&.dropdown {
&.dropdown:not(.dropdown--right) {
a {
font-weight: 400;
font-size: 14px;
Expand All @@ -607,6 +607,18 @@ a[class*="tagRegular"] {
left: 0;
}
}

&.dropdown--right {
.dropdown__menu {
min-width: 168px;
}
}
}

.dropdown > .navbar__link:after {
margin-left: 8px;
top: 1px;
opacity: 0.75;
}

.navbar__logo {
Expand Down Expand Up @@ -887,7 +899,6 @@ aside[class^="theme-doc-sidebar-container"] {

.menu__link--sublist {
font-size: 15px;
font-weight: 600;
padding: 4px 12px !important;
color: var(--light);

Expand All @@ -897,6 +908,10 @@ aside[class^="theme-doc-sidebar-container"] {
}
}

.menu__link--sublist-caret {
font-size: 17px;
}

.menu__list {
.menu__link {
line-height: 20px;
Expand Down