docs: refactor to use TypeScript, ESLint, and Tailwind CSS (#4136)

* docs(refactoring): configured eslint and typescript (#3511)

* docs: configured eslint and typescript

* fixed yarn.lock

* docs(refactoring): migrate components directory to typescript (#3517)

* docs: migrate components directory to typescript

* removed vscode settings

* fix following merge

* docs: refactored QueryNote component (#3576)

* docs: refactored first batch of theme components (#3579)

* docs: refactored second batch of theme components (#3580)

* added missing badge styles

* fix after merge

* docs(refactoring): migrated remaining component to TypeScript (#3770)

* docs(refactoring): configured eslint and typescript (#3511)

* docs: configured eslint and typescript

* fixed yarn.lock

* docs(refactoring): migrate components directory to typescript (#3517)

* docs: migrate components directory to typescript

* removed vscode settings

* fix following merge

* docs: refactored QueryNote component (#3576)

* docs: refactored first batch of theme components (#3579)

* docs: refactored second batch of theme components (#3580)

* added missing badge styles

* docs: refactoring second batch of theme components

* fix after merge

* refactored icons and other components

* docs: refactored all components

* docs(refactoring): set up and configured Tailwind Css (#3841)

* docs: added tailwind config

* docs: added more tailwind configurations

* add includes option

* added more tailwind configurations

* fix to configurations

* docs(refactoring): use tailwind css (#4134)

* docs: added tailwind config

* docs: added more tailwind configurations

* add includes option

* added more tailwind configurations

* fix to configurations

* docs(refactoring): refactored all styles to use tailwind css (#4132)

* refactored Badge component to use tailwind css

* refactored Bordered component to use tailwind css

* updated to latest docusaurus

* refactored BorderedIcon component to use tailwind css

* refactored Feedback component to use tailwind css

* refactored icons and footersociallinks to tailwind css

* start refactoring of large card

* refactored large card styling

* refactored until admonitions

* refactored until codeblock

* refactored until Tabs

* refactored Tabs (without testing

* finished refactoring styles to tailwind css

* upgraded to version 2.4.1

* general fixes

* adjusted eslint configurations

* fixed ignore files

* fixes to large card

* fix search styling

* fix npx command

* updated tabs to use isCodeTabs prop

* fixed os tabs

* removed os-tabs class in favor of general styling

* improvements to buttons

* fix for searchbar

* fixed redocly download button

* chore: added eslint code action (#4135)

* small change in commerce modules page
This commit is contained in:
Shahed Nasser
2023-05-19 14:56:48 +03:00
committed by GitHub
parent 29a88bbf98
commit 94907730d2
292 changed files with 11721 additions and 42102 deletions

View File

@@ -0,0 +1,197 @@
.DocSearch-Modal {
@apply tw-border tw-border-solid !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
@apply !tw-rounded !tw-relative;
@apply md:!tw-m-[unset] md:tw-w-[560px];
}
.DocSearch-SearchBar {
@apply !tw-p-0;
}
.DocSearch-Form {
--docsearch-spacing: theme(margin[1.5]);
--docsearch-searchbox-height: 56px;
--docsearch-searchbox-focus-background: var(--docsearch-modal-background) !important;
@apply !tw-rounded-t !tw-rounded-b-none tw-border-0 tw-border-b tw-border-solid !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
}
.DocSearch-LoadingIndicator svg, .DocSearch-MagnifierLabel svg {
@apply !tw-w-[20px] !tw-h-[20px];
}
.DocSearch-Input {
@apply !tw-text-body-regular !tw-pl-1;
@apply placeholder:tw-text-medusa-text-placeholder dark:placeholder:tw-text-medusa-text-placeholder-dark;
}
.DocSearch-Dropdown {
@apply !tw-pt-0 !tw-pb-[40px] !tw-px-0;
@apply !tw-max-h-[416px];
}
.DocSearch-Hit-source {
@apply !tw-m-0 !tw-text-label-small-plus tw-uppercase tw-text-medusa-text-placeholder dark:tw-text-medusa-text-placeholder-dark;
@apply tw-border-0 tw-border-b tw-border-solid tw-border-medusa-border-base dark:tw-border-medusa-border-base-dark;
@apply !tw-py-[10px] !tw-px-1.5;
}
.DocSearch-Footer {
@apply !tw-hidden;
}
.DocSearch-Hit {
@apply !tw-p-0;
}
.DocSearch-Hit:not(.DocSearch-Hit--Child) .DocSearch-Hit-icon {
@apply !tw-w-[40px] !tw-h-[40px] tw-p-[2px] tw-border tw-border-solid tw-border-medusa-border-strong dark:tw-border-medusa-border-strong-dark;
@apply tw-rounded tw-flex tw-justify-center tw-items-center;
@apply before:tw-content-[''] before:tw-w-2 before:tw-h-2 before:tw-bg-no-repeat before:tw-bg-center before:tw-bg-contain before:tw-bg-search-hit dark:before:tw-bg-search-hit-dark;
}
.DocSearch-Hit-icon svg {
@apply tw-hidden;
}
.DocSearch-Hit--Child .DocSearch-Hit-icon {
@apply tw-hidden;
}
.DocSearch-Hit a {
@apply !tw-py-[12px] !tw-px-1.5 !tw-shadow-none !tw-rounded-none;
}
.DocSearch-Hit:not(:last-of-type) a {
@apply tw-border-0 tw-border-b tw-border-solid tw-border-medusa-border-base dark:tw-border-medusa-border-base-dark;
}
.DocSearch-Hit-content-wrapper {
@apply !tw-mt-0 !tw-mx-1;
}
.DocSearch-Hit-title,
.DocSearch-Hit-title mark {
@apply !tw-text-medusa-text-base dark:!tw-text-medusa-text-base-dark;
@apply !tw-text-label-small-plus;
}
.DocSearch-Hit-path {
@apply !tw-text-medusa-text-subtle dark:!tw-text-medusa-text-subtle-dark !tw-text-label-small;
}
.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path {
--docsearch-hit-active-color: theme(colors.medusa.text.subtle.DEFAULT);
}
html[data-theme="dark"] .DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path {
--docsearch-hit-active-color: theme(colors.medusa.text.subtle.dark);
}
.DocSearch-Hit[aria-selected=true] a {
@apply !tw-bg-medusa-bg-base-hover dark:!tw-bg-medusa-bg-base-hover-dark;
}
.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-content-wrapper + .DocSearch-Hit-action:last-child {
@apply tw-h-1.5 tw-w-1.5 tw-border tw-border-solid tw-border-medusa-border-strong dark:tw-border-medusa-border-strong-dark;
@apply tw-rounded tw-bg-medusa-bg-base dark:tw-bg-medusa-bg-base-dark tw-p-[2px] tw-flex tw-justify-center tw-items-center;
@apply before:tw-content-[''] before:tw-w-[20px] before:tw-h-[20px] before:tw-bg-search-arrow dark:before:tw-bg-search-arrow-dark before:tw-bg-no-repeat before:tw-bg-center;
}
.DocSearch-Hit-content-wrapper + .DocSearch-Hit-action:last-child svg,
.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-content-wrapper + .DocSearch-Hit-action:last-child svg {
@apply tw-hidden;
}
.DocSearch-Hit[aria-selected=true] mark {
@apply !tw-no-underline;
}
.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree {
@apply tw-text-medusa-border-strong dark:tw-text-medusa-border-strong-dark;
}
.DocSearch-Hit-Tree {
@apply tw-text-medusa-border-base dark:tw-text-medusa-border-base-dark;
}
.DocSearch-HitsFooter {
@apply tw-z-[100] tw-absolute tw-bottom-0 tw-left-0 tw-w-full tw-h-[40px] !tw-bg-medusa-bg-base dark:!tw-bg-medusa-bg-base-dark;
@apply tw-border-0 tw-border-t tw-border-solid tw-border-medusa-border-base dark:tw-border-medusa-border-base-dark;
}
.DocSearch-HitsFooter a {
@apply !tw-border-b-0;
}
.DocSearch-Reset {
@apply !tw-rounded tw-transition-all tw-duration-200 tw-ease-ease;
@apply hover:tw-bg-medusa-bg-base-hover dark:hover:tw-bg-medusa-bg-base-hover-dark;
}
.DocSearch-NoResults .DocSearch-Screen-Icon {
@apply tw-w-[20px] tw-h-[20px] !tw-p-0 tw-flex tw-justify-center tw-items-center tw-mt-0 tw-mb-1 tw-mx-auto;
@apply before:tw-content-[''] before:tw-w-full before:tw-h-full before:tw-bg-no-repeat before:tw-bg-center before:tw-bg-contain;
@apply before:tw-bg-search-no-result dark:before:tw-bg-search-no-result-dark;
}
.DocSearch-NoResults .DocSearch-Screen-Icon svg {
@apply tw-hidden;
}
.DocSearch-NoResults .DocSearch-Title {
@apply !tw-text-label-small !tw-pl-1;
}
.DocSearch-NoResults-Prefill-List {
@apply tw-text-center !tw-text-label-small-plus !tw-pl-1;
}
.DocSearch-NoResults-Prefill-List li::marker {
@apply tw-content-[''];
}
.DocSearch-NoResults-Prefill-List li button {
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
}
.DocSearch-Button {
@apply tw-w-full !tw-h-full !tw-rounded lg:!tw-border lg:!tw-border-solid lg:!tw-border-medusa-border-base lg:dark:!tw-border-medusa-border-base-dark tw-border-0;
@apply lg:!tw-bg-medusa-bg-field lg:dark:!tw-bg-medusa-bg-field-dark !tw-bg-transparent;
@apply lg:hover:!tw-bg-medusa-bg-field-hover lg:dark:hover:!tw-bg-medusa-bg-field-hover-dark;
@apply !tw-py-[6px] !tw-pl-0.5 tw-relative;
@apply hover:!tw-border-medusa-border-base hover:dark:!tw-border-medusa-border-base-dark;
@apply active:!tw-border-medusa-border-base active:dark:!tw-border-medusa-border-base-dark;
@apply focus:!tw-border-medusa-border-base focus:dark:!tw-border-medusa-border-base-dark;
}
.DocSearch-Container {
@apply !tw-z-[1001] md:tw-flex md:tw-justify-center md:tw-items-center;
}
.DocSearch-Button .DocSearch-Search-Icon {
@apply tw-invisible;
}
.DocSearch-Button-Container {
@apply before:tw-content-[''] before:tw-h-[20px] before:tw-w-[20px] before:tw-absolute before:tw-left-0.5 before:tw-top-[5px];
@apply before:tw-bg-magnifying-glass before:tw-bg-no-repeat;
}
.DocSearch-Button-Placeholder {
@apply tw-text-medusa-text-placeholder dark:tw-text-medusa-text-placeholder-dark;
@apply !tw-pl-0.5 !tw-text-label-small lg:!tw-block !tw-hidden;
}
.DocSearch-Button-Keys {
@apply tw-w-fit !tw-min-w-[unset] lg:!tw-flex !tw-hidden;
}
.DocSearch-Button-Key {
@apply !tw-shadow-none !tw-rounded-md !tw-text-label-x-small-plus !tw-font-base tw-align-middle !tw-p-[2px];
@apply !tw-border !tw-border-solid !tw-border-medusa-border-strong dark:!tw-border-medusa-border-strong-dark;
@apply [&span]:tw-hidden [&:not(:last-child)]:!tw-mr-[4px] last:!tw-mr-0;
}
[class*=searchBox] {
@apply lg:tw-w-[280px] lg:tw-max-w-[280px] lg:!tw-h-2 lg:!tw-p-0;
}

View File

@@ -0,0 +1,152 @@
.redocusaurus .expanded + tr > td > div {
@apply !tw-bg-medusa-bg-subtle dark:!tw-bg-medusa-bg-base-dark;
}
.redocusaurus table tbody tr table,
.redocusaurus table tbody tr table tbody tr {
@apply !tw-bg-transparent;
}
.redocusaurus a {
@apply !tw-text-medusa-text-base dark:!tw-text-medusa-text-base-dark;
}
.redocusaurus pre {
@apply !tw-p-1;
}
.redocusaurus .react-tabs__tab-panel > div > pre {
@apply !tw-p-0;
}
.redocusaurus pre,
.redocusaurus .react-tabs__tab-panel--selected,
.redocusaurus [data-section-id] > div:nth-child(2) > div > button,
.redocusaurus div[id^='tag'] > div > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) {
@apply !tw-bg-medusa-code-block-bg;
}
.redocusaurus [data-section-id] > div:nth-child(2) > div > button {
@apply dark:!tw-border-medusa-border-strong-dark;
}
.redocusaurus div[id^='tag'] > div > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div > div:nth-child(2) > div {
@apply !tw-border-medusa-border-strong;
}
.redocusaurus [data-section-id] > div:nth-child(2) > div > button {
@apply !tw-rounded-t !tw-rounded-b-none;
}
.redocusaurus [data-section-id] > div:nth-child(2) > div > button + div > div > div > div {
@apply !tw-text-medusa-text-base dark:!tw-text-medusa-text-base-dark;
}
.redocusaurus h5 + svg {
@apply tw-fill-medusa-icon-secondary dark:tw-fill-medusa-icon-secondary-dark;
}
.redocusaurus h2 + div + div > div + div {
@apply tw-p-1 tw-bg-medusa-bg-subtle dark:tw-bg-medusa-bg-base-dark;
}
.redocusaurus h2 + div + div {
@apply tw-border-medusa-border-base dark:tw-border-medusa-border-base-dark;
}
.redocusaurus .menu-content,
.redocusaurus .menu-content label {
@apply !tw-bg-medusa-bg-base dark:!tw-bg-medusa-bg-subtle-dark;
}
.redoc-json code {
@apply !tw-border-0;
}
.redocusaurus p {
@apply tw-text-medusa-text-subtle dark:tw-text-medusa-text-subtle-dark;
}
.redocusaurus h2, .redocusaurus h3, .redocusaurus h4 {
@apply !tw-text-medusa-text-base dark:!tw-text-medusa-text-base-dark;
}
.redocusaurus [data-section-id] [data-section-id] > div:nth-child(2) h2, .redocusaurus [data-section-id] [data-section-id] > div:nth-child(2) h3, .redocusaurus [data-section-id] [data-section-id] > div:nth-child(2) h4 {
@apply !tw-text-medusa-text-on-color dark:!tw-text-medusa-text-on-color-dark;
}
.redocusaurus [data-section-id] {
@apply after:!tw-border-transparent;
}
.redocusaurus .property-name + div {
@apply !tw-text-medusa-icon-error dark:!tw-text-medusa-icon-error-dark;
}
.redocusaurus .react-tabs__tab:not(.react-tabs__tab--selected) {
@apply !tw-bg-medusa-button-secondary dark:!tw-bg-medusa-button-secondary-dark;
@apply !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
@apply !tw-text-medusa-text-base dark:!tw-text-medusa-text-base-dark;
}
.redocusaurus ul > li.react-tabs__tab--selected[aria-selected="true"]:not(.tab-error):not(.tab-success) {
@apply !tw-bg-medusa-button-primary dark:!tw-bg-medusa-button-primary-dark;
@apply !tw-border-medusa-button-primary dark:!tw-border-medusa-button-primary-dark;
@apply !tw-text-medusa-text-on-color dark:!tw-text-medusa-text-on-color-dark;
}
.redocusaurus ul > li.react-tabs__tab--selected.tab-success {
@apply !tw-bg-medusa-button-success dark:!tw-bg-medusa-button-success-dark;
@apply !tw-border-medusa-button-success dark:!tw-border-medusa-button-success-dark;
@apply !tw-text-medusa-text-on-color dark:!tw-text-medusa-text-on-color-dark;
}
.redocusaurus ul > li.react-tabs__tab--selected.tab-error {
@apply !tw-bg-medusa-button-danger dark:!tw-bg-medusa-button-danger-dark;
@apply !tw-border-medusa-button-danger dark:!tw-border-medusa-button-danger-dark;
@apply !tw-text-medusa-text-on-color dark:!tw-text-medusa-text-on-color-dark;
@apply hover:!tw-bg-medusa-button-danger-hover dark:hover:!tw-bg-medusa-button-danger-hover-dark;
@apply hover:!tw-border-medusa-button-danger-hover dark:hover:!tw-border-medusa-button-danger-hover-dark;
}
.redocusaurus .tab-error:not(.react-tabs__tab--selected) {
@apply !tw-bg-medusa-button-secondary dark:!tw-bg-medusa-button-secondary-dark;
@apply !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
@apply !tw-text-medusa-support-error dark:!tw-text-medusa-support-error-dark;
}
.redocusaurus .tab-success:not(.react-tabs__tab--selected) {
@apply !tw-bg-medusa-button-secondary dark:!tw-bg-medusa-button-secondary-dark;
@apply !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
@apply !tw-text-medusa-support-success dark:!tw-text-medusa-support-success-dark;
}
.redocusaurus [type=get] {
@apply !tw-bg-medusa-support-success dark:!tw-bg-medusa-support-success-dark;
}
.redocusaurus [type=delete] {
@apply !tw-bg-medusa-support-error dark:!tw-bg-medusa-support-error-dark;
}
.redocusaurus table th,
.redocusaurus table td {
@apply !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
}
.redocusaurus [download] {
@apply !tw-inline-flex tw-flex-row tw-justify-center tw-items-center;
@apply !tw-py-[6px] !tw-px-[12px] !tw-rounded !tw-cursor-pointer;
@apply !tw-bg-medusa-button-secondary dark:!tw-bg-medusa-button-secondary-dark;
@apply hover:!tw-bg-medusa-button-secondary-hover dark:hover:!tw-bg-medusa-button-secondary-hover-dark hover:tw-no-underline;
@apply !tw-border !tw-border-solid !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
@apply !tw-text-label-small-plus !tw-text-medusa-text-base dark:!tw-text-medusa-text-base-dark;
@apply hover:!tw-text-medusa-text-base dark:hover:!tw-text-medusa-text-base-dark;
@apply focus:!tw-shadow-button-focused dark:focus:!tw-shadow-button-focused-dark;
}
.redocusaurus [role=menuitem] {
@apply hover:!tw-text-medusa-text-subtle dark:hover:!tw-text-medusa-text-subtle-dark;
}

View File

@@ -0,0 +1,169 @@
.theme-doc-sidebar-container {
--animate-duration: 0.2s;
clip-path: inset(0);
}
.sidebar-desktop nav {
--ifm-scrollbar-track-background-color: transparent !important;
--ifm-scrollbar-thumb-background-color: transparent !important;
--ifm-scrollbar-thumb-hover-background-color: transparent !important;
}
.menu__list-item:not(:first-child):not(.sidebar-title) {
margin-top: 0 !important;
}
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) [class*=theme-doc-sidebar-item-],
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) [class*=theme-doc-sidebar-item-] .menu__link--active {
@apply tw-relative;
}
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) [class*=theme-doc-sidebar-item-]:not(.theme-doc-sidebar-item-link-category)::before,
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-category .menu__list-item-collapsible .menu__link--active::before,
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) > .theme-doc-sidebar-item-link > .menu__link--active::before,
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-category > .menu__list-item-collapsible::before {
@apply tw-content-[''] tw-h-full tw-w-[1px] tw-absolute tw-left-[8px] tw-top-0 tw-z-[1];
}
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) [class*=theme-doc-sidebar-item-] .menu__link--active::before {
@apply !tw-h-[20px];
}
.theme-doc-sidebar-item-category-level-1 > .menu__list > .menu__list-item:first-child::before,
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-category:first-child .menu__list-item-collapsible::before,
.theme-doc-sidebar-item-category-level-1 > .menu__list > .menu__list-item:last-child::before {
@apply !tw-h-[28px];
}
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-link:first-child::before,
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-category:first-child .menu__list-item-collapsible::before {
@apply !tw-bottom-0 !tw-top-[unset];
}
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-category:first-child .menu__list-item-collapsible {
@apply !tw-pb-[6px];
}
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-category:first-child .menu__list-item-collapsible .menu__link {
@apply !tw-pb-0;
}
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) [class*=theme-doc-sidebar-item-]::before,
.menu__list-item .menu__list:not(.theme-doc-sidebar-menu) .theme-doc-sidebar-item-category:first-child .menu__list-item-collapsible::before {
@apply tw-bg-medusa-border-base dark:tw-bg-medusa-border-base-dark;
}
.theme-doc-sidebar-item-category-level-2 > .menu__list-item-collapsible .menu__link--active::before,
.menu__list:not(.theme-doc-sidebar-menu) > .theme-doc-sidebar-item-link.theme-doc-sidebar-item-link-level-2 > .menu__link--active::before {
@apply tw-bg-medusa-icon-interactive dark:tw-bg-medusa-icon-interactive-dark !tw-z-[2] !tw-top-[6px];
}
.theme-doc-sidebar-item-category-level-2:only-child > .menu__list-item-collapsible .menu__link--active::before,
.menu__list:not(.theme-doc-sidebar-menu) > .theme-doc-sidebar-item-link.theme-doc-sidebar-item-link-level-2:only-child > .menu__link--active::before,
.menu__list:not(.theme-doc-sidebar-menu) > .theme-doc-sidebar-item-link.theme-doc-sidebar-item-link-level-2:first-child > .menu__link--active::before {
@apply !tw-top-0.5;
}
.theme-doc-sidebar-item-link-level-1:not(.sidebar-title):not(.homepage-sidebar-item):not(.sidebar-back-link) {
@apply tw-mb-1;
}
.theme-doc-sidebar-item-link-level-1:not(.sidebar-title):not(.homepage-sidebar-item):not(.sidebar-back-link) .menu__link {
@apply !tw-pl-0;
}
.theme-doc-sidebar-item-category-level-1.sidebar-group-headline {
@apply tw-mb-1;
}
[class*="level-2"]:is([class*="theme-doc-sidebar-item"]) .menu__link,
[class*="level-2"]:is([class*="theme-doc-sidebar-item"]).sidebar-group-divider,
[class*="level-3"]:is([class*="theme-doc-sidebar-item"]) .menu__link,
[class*="level-3"]:is([class*="theme-doc-sidebar-item"]).sidebar-group-divider,
[class*="level-4"]:is([class*="theme-doc-sidebar-item"]) .menu__link,
[class*="level-4"]:is([class*="theme-doc-sidebar-item"]).sidebar-group-divider {
@apply tw-py-[6px];
}
[class*="level-2"]:is([class*="theme-doc-sidebar-item"]) .menu__link,
[class*="level-2"]:is([class*="theme-doc-sidebar-item"]).sidebar-group-divider {
@apply tw-pl-2;
}
[class*="level-3"]:is([class*="theme-doc-sidebar-item"]) .menu__link,
[class*="level-3"]:is([class*="theme-doc-sidebar-item"]).sidebar-group-divider {
@apply tw-pl-3;
}
[class*="level-4"]:is([class*="theme-doc-sidebar-item"]) .menu__link,
[class*="level-4"]:is([class*="theme-doc-sidebar-item"]).sidebar-group-divider {
@apply tw-pl-4;
}
.homepage-sidebar-item:is([class*="level-1"]):is([class*="theme-doc-sidebar-item"]) > .menu__link,
.homepage-sidebar-item:is([class*="level-1"]):is([class*="theme-doc-sidebar-item"]) > .menu__list-item-collapsible > .menu__link {
@apply !tw-pl-0.5;
}
.menu__list-item-collapsible {
@apply !tw-rounded;
}
.menu__list-item-collapsible--active {
@apply !tw-bg-transparent;
}
.menu__list-item-collapsible .menu__link--sublist:hover {
@apply !tw-bg-medusa-bg-base-hover dark:!tw-bg-medusa-bg-subtle-hover-dark;
}
.menu__list:not(.theme-doc-sidebar-menu) > .theme-doc-sidebar-item-link:last-child > .menu__link--active::before {
@apply !tw-top-[4px];
}
.menu__link--sublist-caret:after {
@apply tw-content-none;
}
.menu__link {
@apply tw-cursor-pointer !tw-rounded tw-text-label-small-plus;
}
.theme-doc-sidebar-item-category-level-1 > .menu__list {
@apply tw-mb-[4px];
}
.menu__list:not(.theme-doc-sidebar-menu),
.theme-doc-sidebar-item-category-level-1 > .menu__list {
@apply !tw-pl-0;
}
.menu__list .menu__list {
@apply !tw-mt-0;
}
/** General sidebar styles **/
.theme-doc-sidebar-container {
@apply tw-z-[398] tw-border-0 tw-border-r tw-border-solid tw-border-medusa-border-base dark:tw-border-medusa-border-base-dark;
}
/** Mobile Sidebar **/
.navbar-sidebar__back {
@apply tw-bg-transparent tw-w-fit tw-top-[unset] tw-pl-0 tw-ml-0 tw-mb-1 tw-text-label-small-plus;
}
.theme-doc-sidebar-item-link {
@apply tw-flex tw-items-center;
}
/** Redocly sidebar **/
.redocusaurus .menu-content > div > ul > li > ul label:not([type=tag]):not(.active) {
@apply tw-text-medusa-text-subtle dark:tw-text-medusa-text-subtle-dark;
@apply hover:tw-text-medusa-text-base dark:hover:tw-text-medusa-text-base-dark;
}
.redocusaurus .menu-content > div > ul > li > ul label:not([type=tag]).active {
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
}

View File

@@ -0,0 +1,60 @@
.theme-doc-toc-desktop {
@apply tw-pt-3;
}
.theme-doc-toc-desktop .table-of-contents {
@apply !tw-border-l-0 !tw-p-0 tw-text-[12px] tw-relative tw-overflow-y-hidden;
@apply before:tw-bg-toc dark:before:tw-bg-toc-dark;
@apply before:tw-bg-no-repeat before:tw-bg-[length:14px_10px] before:tw-bg-[center_left];
@apply before:tw-pl-[22px] before:tw-content-['On_this_page'] before:tw-pb-0 tw-text-label-small-plus;
@apply after:tw-content-[''] after:tw-absolute after:tw-left-0 after:tw-top-[40px];
@apply after:tw-h-full after:tw-w-[1px] after:tw-bg-medusa-border-base dark:after:tw-bg-medusa-border-base-dark;
}
.theme-doc-toc-desktop .table-of-contents .table-of-contents__link {
@apply tw-pl-[11px];
}
.theme-doc-toc-desktop .table-of-contents > li {
@apply first:tw-mt-1 [&:not(:first-child)]:tw-mt-0 last:tw-mb-0 [&:not(:last-child)]:tw-mb-[4px];
}
.theme-doc-toc-desktop .table-of-contents li a + ul {
@apply tw-mt-[4px];
}
.theme-doc-toc-desktop .table-of-contents__link {
@apply tw-relative tw-text-label-x-small-plus;
@apply hover:tw-text-medusa-text-base dark:hover:tw-text-medusa-text-base-dark;
}
.theme-doc-toc-desktop .table-of-contents__link:hover code {
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
}
.theme-doc-toc-desktop .table-of-contents__link--active {
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
@apply after:tw-content-[''] after:tw-absolute after:tw-left-0 after:tw-top-0;
@apply after:tw-h-full after:tw-w-[1px] after:tw-bg-medusa-text-base dark:after:tw-bg-medusa-text-base-dark;
@apply tw-z-[1];
}
.theme-doc-toc-desktop .table-of-contents__link--active code {
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
}
.theme-doc-toc-desktop .table-of-contents li {
@apply tw-mx-0;
}
.theme-doc-toc-desktop .table-of-contents ul li {
@apply tw-mt-0;
}
.table-of-contents ul {
@apply tw-pl-0;
}
.table-of-contents ul .table-of-contents__link {
@apply !tw-pl-[27px];
}

View File

@@ -0,0 +1,10 @@
.react-tooltip {
@apply !tw-border !tw-border-solid !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
@apply !tw-rounded !tw-text-label-x-small-plus !tw-shadow-overlay dark:!tw-shadow-overlay-dark;
@apply !tw-py-0.4 !tw-px-1 lg:tw-block tw-hidden;
}
.react-tooltip-arrow {
@apply tw-hidden;
}