docs: adjust font size of sidebar items (#2158)
* adjust font size * made sidebar narrower
This commit is contained in:
1 parent
7b98e6e009
commit
65654c551f
5 files changed
+26
-13
No files matched your search
@@ -57,7 +57,7 @@ In the body of the PR, explain clearly what the PR does. If the PR solves an iss
|
|||||||
|
|
||||||
## Sidebar
|
## Sidebar
|
||||||
|
|
||||||
When you add a new page to the documentation, you must add the new page in `www/docs/sidebars.js` under the `tutorialSidebar`. You can learn more about the syntax used [here](https://docusaurus.io/docs/sidebar/items).
|
When you add a new page to the documentation, you must add the new page in `www/docs/sidebars.js` under the `docsSidebar`. You can learn more about the syntax used [here](https://docusaurus.io/docs/sidebar/items).
|
||||||
|
|
||||||
### Terminology
|
### Terminology
|
||||||
|
|
||||||
@@ -65,6 +65,10 @@ When the documentation page is a conceptual or overview documentation, the label
|
|||||||
|
|
||||||
When the documentation page is a tutorial documentation, the label in the sidebar should start with a verb. An exception of this rule are integration documentations and upgrade guides.
|
When the documentation page is a tutorial documentation, the label in the sidebar should start with a verb. An exception of this rule are integration documentations and upgrade guides.
|
||||||
|
|
||||||
|
### Character Count
|
||||||
|
|
||||||
|
The character count of the sidebar item's label must be at most twenty seven characters.
|
||||||
|
|
||||||
## Notes and Additional Information
|
## Notes and Additional Information
|
||||||
|
|
||||||
When displaying notes and additional information in a documentation page, use [Admonitions](https://docusaurus.io/docs/markdown-features/admonitions). Make sure the type of admonition used matches the note’s importance to the current document.
|
When displaying notes and additional information in a documentation page, use [Admonitions](https://docusaurus.io/docs/markdown-features/admonitions). Make sure the type of admonition used matches the note’s importance to the current document.
|
||||||
@@ -109,7 +113,7 @@ For example, even though you can run the `start` script using NPM with `npm star
|
|||||||
|
|
||||||
When a command uses the global option `-g`, add it at the end of the NPM command to ensure that it’s transformed to a Yarn command properly. For example:
|
When a command uses the global option `-g`, add it at the end of the NPM command to ensure that it’s transformed to a Yarn command properly. For example:
|
||||||
|
|
||||||
```bash
|
```bash npm2yarn
|
||||||
npm install @medusajs/medusa-cli -g
|
npm install @medusajs/medusa-cli -g
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ module.exports = {
|
|||||||
label: 'Go to medusajs.com',
|
label: 'Go to medusajs.com',
|
||||||
className: 'topright-icon',
|
className: 'topright-icon',
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
type: "doc",
|
type: "doc",
|
||||||
id: "tutorial/set-up-your-development-environment",
|
id: "tutorial/set-up-your-development-environment",
|
||||||
label: "Set Up Development Environment"
|
label: "Set Up Dev Environment"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "doc",
|
type: "doc",
|
||||||
@@ -326,7 +326,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
type: "doc",
|
type: "doc",
|
||||||
id: "add-plugins/contentful/customize-contentful",
|
id: "add-plugins/contentful/customize-contentful",
|
||||||
label: "Customize Contentful Integration",
|
label: "Customize Integration",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -440,7 +440,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
type: "doc",
|
type: "doc",
|
||||||
id: "troubleshooting/missing-payment-providers",
|
id: "troubleshooting/missing-payment-providers",
|
||||||
label: "Payment provider (Stripe) not showing in checkout",
|
label: "Payment provider missing",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "doc",
|
type: "doc",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
--ifm-font-family-base: "Inter",BlinkMacSystemFont,-apple-system,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","Helvetica","Arial",sans-serif;
|
--ifm-font-family-base: "Inter",BlinkMacSystemFont,-apple-system,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","Helvetica","Arial",sans-serif;
|
||||||
|
|
||||||
/* Sidebar */
|
/* Sidebar */
|
||||||
--doc-sidebar-width: 350px !important;
|
--doc-sidebar-width: 250px !important;
|
||||||
|
|
||||||
/* Docs Page */
|
/* Docs Page */
|
||||||
--ifm-docs-page-max-width: 850px;
|
--ifm-docs-page-max-width: 850px;
|
||||||
@@ -387,7 +387,7 @@ kbd {
|
|||||||
.menu__link,
|
.menu__link,
|
||||||
.redocusaurus .menu-content label {
|
.redocusaurus .menu-content label {
|
||||||
font-weight: 500 !important;
|
font-weight: 500 !important;
|
||||||
font-size: 14px;
|
font-size: 12px;
|
||||||
line-height: 1.7em;
|
line-height: 1.7em;
|
||||||
position: relative;
|
position: relative;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -430,11 +430,11 @@ kbd {
|
|||||||
font-weight: 600 !important;
|
font-weight: 600 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu__list,
|
/* .menu__list,
|
||||||
.redocusaurus .menu-content ul {
|
.redocusaurus .menu-content ul {
|
||||||
padding-left: 1.7em;
|
padding-left: 1.7em;
|
||||||
padding-right: 1.7em;
|
padding-right: 1.7em;
|
||||||
}
|
} */
|
||||||
|
|
||||||
a.menu__link--sublist::after {
|
a.menu__link--sublist::after {
|
||||||
content: none;
|
content: none;
|
||||||
@@ -540,7 +540,7 @@ a.menu__link--sublist::before,
|
|||||||
background-image: url('/img/alert.svg');
|
background-image: url('/img/alert.svg');
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
top: 23%;
|
top: 19%;
|
||||||
}
|
}
|
||||||
|
|
||||||
html:not([data-theme="dark"]) .menu__list-item.alert-icon .menu__link:hover::before,
|
html:not([data-theme="dark"]) .menu__list-item.alert-icon .menu__link:hover::before,
|
||||||
@@ -557,7 +557,7 @@ html:not([data-theme="dark"]) .menu__list-item.alert-icon .menu__link.menu__link
|
|||||||
background-image: url('/img/arrow-top-right.svg');
|
background-image: url('/img/arrow-top-right.svg');
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
top: 23%;
|
top: 19%;
|
||||||
}
|
}
|
||||||
|
|
||||||
html:not([data-theme="dark"]) .menu__list-item.topright-icon .menu__link:hover::before,
|
html:not([data-theme="dark"]) .menu__list-item.topright-icon .menu__link:hover::before,
|
||||||
@@ -578,3 +578,7 @@ html:not([data-theme="dark"]) .menu__list-item.topright-icon .menu__link.menu__l
|
|||||||
.menu__list-item-collapsible {
|
.menu__list-item-collapsible {
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.redocusaurus .menu-content {
|
||||||
|
width: var(--doc-sidebar-width);
|
||||||
|
}
|
||||||
@@ -45,5 +45,10 @@
|
|||||||
.sidebarFooterList {
|
.sidebarFooterList {
|
||||||
border-top: 1px solid var(--ifm-toc-border-color);
|
border-top: 1px solid var(--ifm-toc-border-color);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 1.7em;
|
padding-top: 1.7em;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarFooterList li a {
|
||||||
|
padding-left: 1.8em !important;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user