api-ref: custom API reference (#4770)
* initialized next.js project * finished markdown sections * added operation schema component * change page metadata * eslint fixes * fixes related to deployment * added response schema * resolve max stack issue * support for different property types * added support for property types * added loading for components * added more loading * type fixes * added oneOf type * removed console * fix replace with push * refactored everything * use static content for description * fixes and improvements * added code examples section * fix path name * optimizations * fixed tag navigation * add support for admin and store references * general enhancements * optimizations and fixes * fixes and enhancements * added search bar * loading enhancements * added loading * added code blocks * added margin top * add empty response text * fixed oneOf parameters * added path and query parameters * general fixes * added base path env variable * small fix for arrays * enhancements * design enhancements * general enhancements * fix isRequired * added enum values * enhancements * general fixes * general fixes * changed oas generation script * additions to the introduction section * added copy button for code + other enhancements * fix response code block * fix metadata * formatted store introduction * move sidebar logic to Tags component * added test env variables * fix code block bug * added loading animation * added expand param + loading * enhance operation loading * made responsive + improvements * added loading provider * fixed loading * adjustments for small devices * added sidebar label for endpoints * added feedback component * fixed analytics * general fixes * listen to scroll for other headings * added sample env file * update api ref files + support new fields * fix for external docs link * added new sections * fix last item in sidebar not showing * move docs content to www/docs * change redirect url * revert change * resolve build errors * configure rewrites * changed to environment variable url * revert changing environment variable name * add environment variable for API path * fix links * fix tailwind settings * remove vercel file * reconfigured api route * move api page under api * fix page metadata * fix external link in navigation bar * update api spec * updated api specs * fixed google lint error * add max-height on request samples * add padding before loading * fix for one of name * fix undefined types * general fixes * remove response schema example * redesigned navigation bar * redesigned sidebar * fixed up paddings * added feedback component + report issue * fixed up typography, padding, and general styling * redesigned code blocks * optimization * added error timeout * fixes * added indexing with algolia + fixes * fix errors with algolia script * redesign operation sections * fix heading scroll * design fixes * fix padding * fix padding + scroll issues * fix scroll issues * improve scroll performance * fixes for safari * optimization and fixes * fixes to docs + details animation * padding fixes for code block * added tab animation * fixed incorrect link * added selection styling * fix lint errors * redesigned details component * added detailed feedback form * api reference fixes * fix tabs * upgrade + fixes * updated documentation links * optimizations to sidebar items * fix spacing in sidebar item * optimizations and fixes * fix endpoint path styling * remove margin * final fixes * change margin on small devices * generated OAS * fixes for mobile * added feedback modal * optimize dark mode button * fixed color mode useeffect * minimize dom size * use new style system * radius and spacing design system * design fixes * fix eslint errors * added meta files * change cron schedule * fix docusaurus configurations * added operating system to feedback data * change content directory name * fixes to contribution guidelines * revert renaming content * added api-reference to documentation workflow * fixes for search * added dark mode + fixes * oas fixes * handle bugs * added code examples for clients * changed tooltip text * change authentication to card * change page title based on selected section * redesigned mobile navbar * fix icon colors * fix key colors * fix medusa-js installation command * change external regex in algolia * change changeset * fix padding on mobile * fix hydration error * update depedencies
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
/** This CSS file includes tailwind styling definitions for classes defined by docusaurus **/
|
||||
html,
|
||||
body {
|
||||
@apply tw-h-full;
|
||||
@apply h-full;
|
||||
}
|
||||
|
||||
.cards-grid {
|
||||
@apply tw-grid tw-gap-x-1 tw-auto-rows-fr;
|
||||
@apply grid gap-x-1 auto-rows-fr;
|
||||
}
|
||||
|
||||
.cards-grid.grid-6 {
|
||||
@apply md:tw-grid-cols-2 tw-grid-cols-1;
|
||||
@apply md:grid-cols-2 grid-cols-1;
|
||||
}
|
||||
|
||||
.cards-grid.grid-4 {
|
||||
@apply lg:tw-grid-cols-3 md:tw-grid-cols-2 tw-grid-cols-1;
|
||||
@apply lg:grid-cols-3 md:grid-cols-2 grid-cols-1;
|
||||
}
|
||||
|
||||
h1 + .cards-grid,
|
||||
@@ -22,13 +22,13 @@ h2 + .cards-grid,
|
||||
h2 + .card-wrapper,
|
||||
h3 + .cards-grid,
|
||||
h3 + .card-wrapper {
|
||||
@apply tw-mt-1.5;
|
||||
@apply mt-1.5;
|
||||
}
|
||||
|
||||
.markdown p + img,
|
||||
.markdown .alert,
|
||||
.markdown .code-wrapper {
|
||||
@apply tw-mb-2;
|
||||
@apply mb-2;
|
||||
}
|
||||
|
||||
.markdown h2,
|
||||
@@ -38,24 +38,24 @@ h3 + .card-wrapper {
|
||||
.markdown p + .alert,
|
||||
.markdown p + section,
|
||||
video {
|
||||
@apply tw-mt-2;
|
||||
@apply mt-2;
|
||||
}
|
||||
|
||||
.theme-code-block {
|
||||
@apply tw-border tw-border-solid tw-border-medusa-code-block-border;
|
||||
@apply border border-solid border-medusa-code-border dark:border-medusa-code-border-dark;
|
||||
}
|
||||
|
||||
.markdown p + .card-wrapper {
|
||||
@apply tw-mt-1.5;
|
||||
@apply mt-1.5;
|
||||
}
|
||||
|
||||
.card + p {
|
||||
@apply tw-mt-2;
|
||||
@apply mt-2;
|
||||
}
|
||||
|
||||
.card-highlighted {
|
||||
|
||||
@apply tw-relative tw-mb-4 tw-bg-medusa-bg-subtle dark:tw-bg-medusa-bg-base-dark hover:tw-bg-medusa-bg-subtle-hover dark:hover:tw-bg-medusa-bg-subtle-hover-dark;
|
||||
@apply relative mb-4 bg-medusa-bg-subtle dark:bg-medusa-bg-base-dark hover:bg-medusa-bg-subtle-hover dark:hover:bg-medusa-bg-subtle-hover-dark;
|
||||
}
|
||||
|
||||
.col.toc-wrapper {
|
||||
@@ -63,50 +63,50 @@ video {
|
||||
}
|
||||
|
||||
.markdown-doc-wrapper--fluid {
|
||||
@apply tw-max-w-[inherit];
|
||||
@apply max-w-[inherit];
|
||||
}
|
||||
|
||||
:global(.docusaurus-mt-lg) {
|
||||
@apply tw-mt-3;
|
||||
@apply mt-3;
|
||||
}
|
||||
|
||||
:global(#__docusaurus) {
|
||||
@apply tw-min-h-full tw-flex tw-flex-col;
|
||||
@apply min-h-full flex flex-col;
|
||||
}
|
||||
|
||||
.code-tabs .theme-code-block {
|
||||
@apply !tw-rounded-t-none !tw-rounded-b
|
||||
@apply !rounded-t-none !rounded-b
|
||||
}
|
||||
|
||||
[class*=codeLineNumber] {
|
||||
@apply tw-text-medusa-code-text-muted !tw-pl-0;
|
||||
@apply text-medusa-code-text-subtle dark:text-medusa-code-text-subtle-dark !pl-0;
|
||||
}
|
||||
|
||||
.prism-code {
|
||||
@apply xs:tw-max-w-[90%] xs:after:tw-content-[''] xs:after:tw-rounded xs:after:tw-absolute;
|
||||
@apply xs:after:tw-right-0 xs:after:tw-top-0 xs:after:tw-w-[calc(10%+24px)] xs:after:tw-h-full xs:after:tw-bg-code-fade;
|
||||
@apply xs:max-w-[90%] text-code-body [&_*]:text-code-body xs:after:content-[''] xs:after:rounded xs:after:absolute;
|
||||
@apply xs:after:right-0 xs:after:top-0 xs:after:w-[calc(10%+24px)] xs:after:h-full xs:after:bg-code-fade dark:xs:after:bg-code-fade-dark;
|
||||
}
|
||||
|
||||
.prism-code:not(:hover)::-webkit-scrollbar-thumb,
|
||||
.prism-code:not(:hover)::-webkit-scrollbar-track {
|
||||
@apply xs:tw-invisible;
|
||||
@apply xs:invisible;
|
||||
}
|
||||
|
||||
.prism-code:hover::-webkit-scrollbar-thumb,
|
||||
.prism-code:hover::-webkit-scrollbar-track {
|
||||
@apply xs:tw-opacity-100
|
||||
@apply xs:opacity-100
|
||||
}
|
||||
|
||||
.prism-code {
|
||||
@apply tw-bg-transparent tw-break-words !tw-outline-none;
|
||||
@apply bg-transparent break-words !outline-none;
|
||||
}
|
||||
|
||||
.prism-code div {
|
||||
@apply !tw-outline-none focus:!tw-outline-none active:!tw-outline-none;
|
||||
@apply !outline-none focus:!outline-none active:!outline-none;
|
||||
}
|
||||
|
||||
.code-tabs {
|
||||
@apply tw-relative;
|
||||
@apply relative;
|
||||
}
|
||||
|
||||
.sidebar-desktop nav {
|
||||
@@ -116,31 +116,31 @@ video {
|
||||
}
|
||||
|
||||
.main-wrapper {
|
||||
@apply tw-max-w-xl tw-mx-auto xl:tw-min-w-xl tw-w-full;
|
||||
@apply max-w-xl mx-auto xl:min-w-xl w-full;
|
||||
}
|
||||
|
||||
.theme-doc-breadcrumbs {
|
||||
@apply tw-hidden;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
article {
|
||||
@apply tw-max-w-[960px];
|
||||
@apply max-w-[960px];
|
||||
}
|
||||
|
||||
.padding-top--md {
|
||||
@apply !tw-pt-3;
|
||||
@apply !pt-3;
|
||||
}
|
||||
|
||||
.margin-bottom--lg {
|
||||
@apply !tw-mb-1;
|
||||
@apply !mb-1;
|
||||
}
|
||||
|
||||
details summary {
|
||||
@apply tw-cursor-pointer;
|
||||
@apply cursor-pointer;
|
||||
}
|
||||
|
||||
.reference-table {
|
||||
@apply !tw-table tw-table-fixed tw-w-full;
|
||||
@apply !table table-fixed w-full;
|
||||
}
|
||||
|
||||
.reference-table p {
|
||||
@@ -149,59 +149,63 @@ details summary {
|
||||
|
||||
.reference-table.table-col-4 th,
|
||||
.reference-table.table-col-4 td {
|
||||
@apply [&:nth-child(1)]:!tw-w-1/5 [&:nth-child(2)]:!tw-w-1/5 [&:nth-child(3)]:!tw-w-2/5 [&:nth-child(4)]:!tw-w-1/5;
|
||||
@apply [&:nth-child(1)]:!w-1/5 [&:nth-child(2)]:!w-1/5 [&:nth-child(3)]:!w-2/5 [&:nth-child(4)]:!w-1/5;
|
||||
}
|
||||
|
||||
.reference-table th:nth-child(1),
|
||||
.reference-table td:nth-child(1) {
|
||||
@apply [&:nth-child(1)]:!tw-w-[30%] [&:nth-child(2)]:!tw-w-[30%] [&:nth-child(3)]:!tw-w-2/5;
|
||||
@apply [&:nth-child(1)]:!w-[30%] [&:nth-child(2)]:!w-[30%] [&:nth-child(3)]:!w-2/5;
|
||||
}
|
||||
|
||||
.reference-table .tooltip-container code {
|
||||
@apply tw-whitespace-nowrap;
|
||||
@apply whitespace-nowrap;
|
||||
}
|
||||
|
||||
.reference-table .theme-code-block span {
|
||||
@apply !tw-max-w-full !tw-break-words !tw-whitespace-break-spaces;
|
||||
@apply !max-w-full !break-words !whitespace-break-spaces;
|
||||
}
|
||||
|
||||
.theme-code-block {
|
||||
@apply !bg-medusa-code-bg-base dark:!bg-medusa-code-bg-base-dark
|
||||
}
|
||||
|
||||
.reference-table .code-block-numbering {
|
||||
@apply !tw-block;
|
||||
@apply !block;
|
||||
}
|
||||
|
||||
.container {
|
||||
@apply !tw-pt-3 !tw-max-w-full;
|
||||
@apply !pt-3 !max-w-full;
|
||||
}
|
||||
|
||||
.pagination-nav {
|
||||
@apply tw-hidden;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
.markdown kbd {
|
||||
@apply !tw-font-monospace !tw-bg-medusa-bg-component dark:!tw-bg-medusa-bg-component-dark !tw-text-medusa-text-subtle dark:!tw-text-medusa-text-subtle-dark;
|
||||
@apply !tw-rounded-md !tw-border-medusa-border-strong dark:!tw-border-medusa-border-strong-dark !tw-shadow-none;
|
||||
@apply !font-monospace !bg-medusa-bg-component dark:!bg-medusa-bg-component-dark !text-medusa-fg-subtle dark:!text-medusa-fg-subtle-dark;
|
||||
@apply !rounded-md !border-medusa-border-strong dark:!border-medusa-border-strong-dark !shadow-none;
|
||||
}
|
||||
|
||||
.theme-doc-footer {
|
||||
@apply !tw-mt-0 tw-border-0 !tw-border-t tw-border-solid !tw-border-medusa-border-base dark:!tw-border-medusa-border-base-dark;
|
||||
@apply tw-pt-2;
|
||||
@apply !mt-0 border-0 !border-t border-solid !border-medusa-border-base dark:!border-medusa-border-base-dark;
|
||||
@apply pt-2;
|
||||
}
|
||||
|
||||
.theme-last-updated {
|
||||
@apply tw-font-normal tw-not-italic tw-text-label-small-plus;
|
||||
@apply font-normal not-italic text-compact-small-plus;
|
||||
}
|
||||
|
||||
.theme-last-updated,
|
||||
.theme-last-updated b {
|
||||
@apply !tw-font-normal;
|
||||
@apply !font-normal;
|
||||
}
|
||||
|
||||
.medium-zoom-overlay {
|
||||
@apply tw-z-[400];
|
||||
@apply z-[400];
|
||||
}
|
||||
|
||||
.medium-zoom-image--opened {
|
||||
@apply tw-z-[400];
|
||||
@apply z-[400];
|
||||
}
|
||||
|
||||
details > div {
|
||||
@@ -209,76 +213,80 @@ details > div {
|
||||
}
|
||||
|
||||
.row--justify-end {
|
||||
@apply tw-justify-end;
|
||||
@apply justify-end;
|
||||
}
|
||||
|
||||
.docs-page-container {
|
||||
@apply !tw-px-0;
|
||||
@apply !px-0;
|
||||
}
|
||||
|
||||
.search-result-match {
|
||||
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
|
||||
@apply tw-bg-medusa-bg-highlight dark:tw-bg-medusa-bg-highlight-dark tw-py-[4px] tw-px-0;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
||||
@apply bg-medusa-bg-highlight dark:bg-medusa-bg-highlight-dark py-0.25 px-0;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
@apply tw-z-[399] tw-p-0;
|
||||
@apply z-[399] p-0 border-0 border-b border-solid border-medusa-border-base dark:border-medusa-border-base-dark;
|
||||
}
|
||||
|
||||
html:not(.plugin-redoc) .navbar:not(.navbar-sidebar--show) {
|
||||
@apply supports-[backdrop-filter]:tw-bg-transparent supports-[backdrop-filter]:tw-backdrop-blur-md;
|
||||
@apply supports-[backdrop-filter]:bg-transparent supports-[backdrop-filter]:backdrop-blur-md;
|
||||
}
|
||||
|
||||
.navbar__link {
|
||||
@apply tw-text-label-small-plus;
|
||||
@apply text-compact-small-plus;
|
||||
}
|
||||
|
||||
.navbar__brand {
|
||||
@apply tw-mr-1.5;
|
||||
@apply mr-0;
|
||||
}
|
||||
|
||||
.navbar__logo {
|
||||
@apply tw-w-[83px] tw-h-[20px] tw-flex tw-justify-center tw-items-center !tw-mr-0;
|
||||
@apply w-[82px] h-[20px] lg:w-[20px] lg:h-[20px] flex justify-center items-center !mr-0;
|
||||
}
|
||||
|
||||
.navbar__item {
|
||||
@apply p-0 lg:!block !hidden;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@apply !tw-text-h1;
|
||||
@apply !text-h1;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply !tw-text-h2;
|
||||
@apply !text-h2;
|
||||
}
|
||||
|
||||
h3 {
|
||||
@apply !tw-text-h3;
|
||||
@apply !text-h3;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
||||
}
|
||||
|
||||
.markdown > h1:first-child,
|
||||
.markdown > h2,
|
||||
.markdown > h3 {
|
||||
@apply tw-mb-0.5;
|
||||
@apply mb-0.5;
|
||||
}
|
||||
|
||||
.markdown > p {
|
||||
@apply tw-mb-0.5;
|
||||
@apply mb-0.5;
|
||||
}
|
||||
|
||||
.markdown > p img {
|
||||
@apply tw-mt-0.5;
|
||||
@apply mt-0.5;
|
||||
}
|
||||
|
||||
.markdown {
|
||||
@apply tw-mb-0;
|
||||
@apply mb-0;
|
||||
}
|
||||
|
||||
*::selection {
|
||||
@apply tw-bg-medusa-bg-highlight dark:tw-bg-medusa-bg-highlight-dark;
|
||||
@apply bg-medusa-bg-highlight dark:bg-medusa-bg-highlight-dark;
|
||||
}
|
||||
|
||||
.prism-code *::selection, .code-header::selection {
|
||||
@apply tw-bg-medusa-code-text-highlight;
|
||||
@apply bg-medusa-code-text-highlight;
|
||||
}
|
||||
@@ -7,24 +7,26 @@
|
||||
--ifm-hr-margin-vertical: theme(margin.2);
|
||||
--ifm-leading: theme(lineHeight.DEFAULT);
|
||||
--ifm-list-left-padding: theme(spacing.1);
|
||||
--font-inter: "Inter";
|
||||
--font-roboto-mono: "Roboto Mono";
|
||||
|
||||
/* Colors */
|
||||
--ifm-color-primary: theme(colors.medusa.text.base.DEFAULT);
|
||||
--ifm-color-primary: theme(colors.medusa.fg.base.DEFAULT);
|
||||
--ifm-background-color: theme(colors.medusa.bg.base.DEFAULT);
|
||||
--ifm-background-surface-color: theme(colors.medusa.bg.subtle.DEFAULT);
|
||||
--ifm-color-content: theme(colors.medusa.text.subtle.DEFAULT) !important;
|
||||
--ifm-color-content: theme(colors.medusa.fg.subtle.DEFAULT) !important;
|
||||
--ifm-color-content-secondary: var(--ifm-color-content);
|
||||
--ifm-base-border-color: theme(colors.medusa.border.base.DEFAULT);
|
||||
--ifm-strong-border-color: theme(colors.medusa.border.strong.DEFAULT);
|
||||
--ifm-hr-background-color: theme(colors.medusa.border.base.DEFAULT);
|
||||
|
||||
/* Fonts */
|
||||
--ifm-code-font-size: theme(fontSize.body-regular[0]);
|
||||
--ifm-code-font-size: theme(fontSize.code-label);
|
||||
--ifm-font-family-base: theme(fontFamily.base);
|
||||
--ifm-font-family-monospace: theme(fontFamily.monospace);
|
||||
--ifm-font-size-base: theme(fontSize.body-regular[0]);
|
||||
--ifm-line-height-base: theme(fontSize.body-regular[1].lineHeight);
|
||||
--ifm-font-weight-base: theme(fontSize.body-regular[1].fontWeight);
|
||||
--ifm-font-size-base: theme(fontSize.medium[0]);
|
||||
--ifm-line-height-base: theme(fontSize.medium[1].lineHeight);
|
||||
--ifm-font-weight-base: theme(fontSize.medium[1].fontWeight);
|
||||
|
||||
/* Headings */
|
||||
/** Due to how docusaurus styles headings, the styles are applied on h1, h2, and h3 again in _docusaurus **/
|
||||
@@ -49,26 +51,26 @@
|
||||
/* Sidebar */
|
||||
--ifm-menu-link-padding-vertical: 6px;
|
||||
--ifm-menu-link-padding-horizontal: theme(margin.1);
|
||||
--ifm-menu-color: theme(colors.medusa.text.subtle.DEFAULT);
|
||||
--ifm-menu-color-active: theme(colors.medusa.text.base.DEFAULT);
|
||||
--ifm-menu-color: theme(colors.medusa.fg.subtle.DEFAULT);
|
||||
--ifm-menu-color-active: theme(colors.medusa.fg.base.DEFAULT);
|
||||
--ifm-menu-color-background-hover: theme(colors.medusa.bg.base.hover.DEFAULT);
|
||||
--ifm-menu-color-background-active: theme(colors.medusa.bg.base.pressed.DEFAULT);
|
||||
|
||||
/* Toc */
|
||||
--ifm-toc-border-color: theme(colors.medusa.border.base.DEFAULT);
|
||||
--ifm-toc-link-color: theme(colors.medusa.text.subtle.DEFAULT);
|
||||
--ifm-toc-link-color: theme(colors.medusa.fg.subtle.DEFAULT);
|
||||
--ifm-toc-padding-horizontal: theme(padding.1);
|
||||
|
||||
/* Navbar */
|
||||
--ifm-navbar-background-color: var(--ifm-background-color);
|
||||
--ifm-navbar-shadow: theme(boxShadow.navbar);
|
||||
--ifm-navbar-shadow: none;
|
||||
--ifm-navbar-padding-vertical: 12px;
|
||||
--ifm-navbar-padding-horizontal: theme(padding[1.5]);
|
||||
--ifm-navbar-item-padding-vertical: 6px;
|
||||
--ifm-navbar-item-padding-horizontal: theme(padding[1]);
|
||||
--ifm-navbar-height: theme(height.navbar);
|
||||
--ifm-navbar-link-hover-color: theme(colors.medusa.text.base.DEFAULT);
|
||||
--ifm-navbar-link-color: theme(colors.medusa.text.subtle.DEFAULT);
|
||||
--ifm-navbar-link-hover-color: theme(colors.medusa.fg.base.DEFAULT);
|
||||
--ifm-navbar-link-color: theme(colors.medusa.fg.subtle.DEFAULT);
|
||||
|
||||
/* Inline Code */
|
||||
--ifm-code-border-radius: theme(borderRadius.DEFAULT);
|
||||
@@ -76,7 +78,7 @@
|
||||
--ifm-code-background: theme(colors.medusa.bg.subtle.DEFAULT) !important;
|
||||
|
||||
/* Code Blocks */
|
||||
--ifm-pre-background: theme(colors.medusa.code.block.bg);
|
||||
--ifm-pre-background: theme(colors.medusa.code.bg.base.DEFAULT);
|
||||
--ifm-pre-padding: theme(padding.1);
|
||||
|
||||
/* Tabs */
|
||||
@@ -88,23 +90,23 @@
|
||||
--rt-color-white: var(--ifm-color-content) !important;
|
||||
|
||||
/* Footer */
|
||||
--ifm-footer-color: theme(colors.medusa.text.muted.DEFAULT);
|
||||
--ifm-footer-color: theme(colors.medusa.fg.muted.DEFAULT);
|
||||
--ifm-footer-background-color: transparent;
|
||||
--ifm-footer-padding-horizontal: 0;
|
||||
--ifm-footer-link-color: var(--ifm-color-content);
|
||||
|
||||
/* Search */
|
||||
--docsearch-searchbox-background: theme(colors.medusa.bg.field.DEFAULT) !important;
|
||||
--docsearch-searchbox-focus-background: theme(colors.medusa.bg.field.hover.DEFAULT) !important;
|
||||
--docsearch-searchbox-background: theme(colors.medusa.bg.subtle.DEFAULT) !important;
|
||||
--docsearch-searchbox-focus-background: theme(colors.medusa.bg.subtle.hover.DEFAULT) !important;
|
||||
--docsearch-searchbox-shadow: none !important;
|
||||
--docsearch-modal-height: 472px !important;
|
||||
--docsearch-modal-background: theme(colors.medusa.bg.base.DEFAULT) !important;
|
||||
--docsearch-modal-shadow: theme(boxShadow.modal) !important;
|
||||
--docsearch-container-background: theme(colors.medusa.bg.overlay.DEFAULT) !important;
|
||||
--docsearch-key-gradient: theme(colors.medusa.bg.component.DEFAULT) !important;
|
||||
--docsearch-muted-color: theme(colors.medusa.text.subtle.DEFAULT) !important;
|
||||
--docsearch-key-gradient: theme(colors.medusa.tag.neutral.bg.DEFAULT) !important;
|
||||
--docsearch-muted-color: theme(colors.medusa.fg.subtle.DEFAULT) !important;
|
||||
--docsearch-spacing: 12px theme(spacing[1.5]) !important;
|
||||
--docsearch-highlight-color: theme(colors.medusa.text.muted.DEFAULT) !important;
|
||||
--docsearch-highlight-color: theme(colors.medusa.fg.muted.DEFAULT) !important;
|
||||
--docsearch-text-color: var(--ifm-color-primary) !important;
|
||||
--docsearch-hit-background: var(--docsearch-modal-background) !important;
|
||||
--docsearch-hit-height: auto !important;
|
||||
@@ -118,7 +120,7 @@
|
||||
--ifm-table-border-color: theme(colors.medusa.border.base.DEFAULT);
|
||||
--ifm-table-head-background: var(--ifm-background-surface-color);
|
||||
--ifm-table-head-color: var(--ifm-color-primary);
|
||||
--ifm-table-head-font-weight: theme(fontSize.body-regular-plus[1].fontWeight);
|
||||
--ifm-table-head-font-weight: theme(fontSize.medium-plus[1].fontWeight);
|
||||
--ifm-table-stripe-background: var(--ifm-background-surface-color) !important;
|
||||
}
|
||||
|
||||
@@ -127,44 +129,47 @@ html[data-theme="dark"] {
|
||||
--ifm-background-color: theme(colors.medusa.bg.subtle.dark);
|
||||
--ifm-background-surface-color: theme(colors.medusa.bg.base.dark);
|
||||
--ifm-hr-background-color: theme(colors.medusa.border.base.dark);
|
||||
--ifm-color-primary: theme(colors.medusa.text.base.dark);
|
||||
--ifm-color-content: theme(colors.medusa.text.subtle.dark) !important;
|
||||
--ifm-color-primary: theme(colors.medusa.fg.base.dark);
|
||||
--ifm-color-content: theme(colors.medusa.fg.subtle.dark) !important;
|
||||
--ifm-base-border-color: theme(colors.medusa.border.base.dark);
|
||||
--ifm-strong-border-color: theme(colors.medusa.border.strong.dark);
|
||||
|
||||
/* Sidebar */
|
||||
--ifm-menu-color: theme(colors.medusa.text.subtle.dark);
|
||||
--ifm-menu-color-active: theme(colors.medusa.text.base.dark);
|
||||
--ifm-menu-color: theme(colors.medusa.fg.subtle.dark);
|
||||
--ifm-menu-color-active: theme(colors.medusa.fg.base.dark);
|
||||
--ifm-menu-color-background-hover: theme(colors.medusa.bg.subtle.hover.dark);
|
||||
--ifm-menu-color-background-active: theme(colors.medusa.bg.subtle.pressed.dark);
|
||||
|
||||
/* Toc */
|
||||
--ifm-toc-border-color: theme(colors.medusa.border.base.dark);
|
||||
--ifm-toc-link-color: theme(colors.medusa.text.subtle.dark);
|
||||
--ifm-toc-link-color: theme(colors.medusa.fg.subtle.dark);
|
||||
|
||||
/* Navbar */
|
||||
--ifm-navbar-shadow: theme(boxShadow.navbar-dark);
|
||||
--ifm-navbar-link-hover-color: theme(colors.medusa.text.base.dark);
|
||||
--ifm-navbar-link-color: theme(colors.medusa.text.subtle.dark);
|
||||
--ifm-navbar-shadow: none;
|
||||
--ifm-navbar-link-hover-color: theme(colors.medusa.fg.base.dark);
|
||||
--ifm-navbar-link-color: theme(colors.medusa.fg.subtle.dark);
|
||||
|
||||
/* Inline Code */
|
||||
--ifm-code-background: theme(colors.medusa.bg.base.dark) !important;
|
||||
|
||||
/* Code Blocks */
|
||||
--ifm-pre-background: theme(colors.medusa.code.bg.base.dark);
|
||||
|
||||
/* Tooltip */
|
||||
--rt-color-dark: theme(colors.medusa.bg.base.dark) !important;
|
||||
|
||||
/* Footer */
|
||||
--ifm-footer-color: theme(colors.medusa.text.muted.dark);
|
||||
--ifm-footer-color: theme(colors.medusa.fg.muted.dark);
|
||||
|
||||
/* Search */
|
||||
--docsearch-searchbox-background: theme(colors.medusa.bg.field.dark) !important;
|
||||
--docsearch-searchbox-focus-background: theme(colors.medusa.bg.field.hover.dark) !important;
|
||||
--docsearch-searchbox-background: theme(colors.medusa.bg.subtle.dark) !important;
|
||||
--docsearch-searchbox-focus-background: theme(colors.medusa.bg.subtle.hover.dark) !important;
|
||||
--docsearch-modal-background: theme(colors.medusa.bg.base.dark) !important;
|
||||
--docsearch-modal-shadow: theme(boxShadow.modal-dark) !important;
|
||||
--docsearch-container-background: theme(colors.medusa.bg.overlay.dark) !important;
|
||||
--docsearch-key-gradient: theme(colors.medusa.bg.component.dark) !important;
|
||||
--docsearch-muted-color: theme(colors.medusa.text.subtle.dark) !important;
|
||||
--docsearch-highlight-color: theme(colors.medusa.text.muted.dark) !important;
|
||||
--docsearch-key-gradient: theme(colors.medusa.tag.neutral.bg.dark) !important;
|
||||
--docsearch-muted-color: theme(colors.medusa.fg.subtle.dark) !important;
|
||||
--docsearch-highlight-color: theme(colors.medusa.fg.muted.dark) !important;
|
||||
|
||||
/* Tables */
|
||||
--ifm-table-border-color: theme(colors.medusa.border.base.dark);
|
||||
@@ -195,5 +200,5 @@ html[data-theme="dark"] {
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .alert {
|
||||
--ifm-code-background: theme(colors.medusa.bg.base.dark) !important;
|
||||
--ifm-code-background: theme(colors.medusa.bg.subtle.dark) !important;
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
.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];
|
||||
@apply border border-solid !border-medusa-border-base dark:!border-medusa-border-base-dark;
|
||||
@apply lg:!rounded !relative;
|
||||
@apply md:!m-[unset] md:w-[560px];
|
||||
}
|
||||
|
||||
.DocSearch-SearchBar {
|
||||
@apply !tw-p-0;
|
||||
@apply !p-0;
|
||||
}
|
||||
|
||||
.DocSearch-Form {
|
||||
@@ -13,185 +13,185 @@
|
||||
--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;
|
||||
@apply !rounded-t !rounded-b-none border-0 border-b border-solid !border-medusa-border-base dark:!border-medusa-border-base-dark;
|
||||
}
|
||||
|
||||
.DocSearch-LoadingIndicator svg, .DocSearch-MagnifierLabel svg {
|
||||
@apply !tw-w-[20px] !tw-h-[20px];
|
||||
@apply !w-[20px] !h-[20px];
|
||||
}
|
||||
|
||||
.DocSearch-Input {
|
||||
@apply !tw-text-body-regular !tw-pl-1;
|
||||
@apply placeholder:tw-text-medusa-text-muted dark:placeholder:tw-text-medusa-text-muted-dark;
|
||||
@apply !text-medium !pl-1;
|
||||
@apply placeholder:text-medusa-fg-muted dark:placeholder:text-medusa-fg-muted-dark;
|
||||
}
|
||||
|
||||
.DocSearch-Dropdown {
|
||||
@apply !tw-pt-0 !tw-pb-[40px] !tw-px-0;
|
||||
@apply !tw-max-h-[416px];
|
||||
@apply !pt-0 !pb-2.5 !px-0;
|
||||
@apply !max-h-[416px];
|
||||
}
|
||||
|
||||
.DocSearch-Hit-source {
|
||||
@apply !tw-m-0 !tw-text-label-small-plus tw-uppercase tw-text-medusa-text-muted dark:tw-text-medusa-text-muted-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;
|
||||
@apply !m-0 !text-compact-small-plus uppercase text-medusa-fg-muted dark:text-medusa-fg-muted-dark;
|
||||
@apply border-0 border-b border-solid border-medusa-border-base dark:border-medusa-border-base-dark;
|
||||
@apply !py-[10px] !px-1.5;
|
||||
}
|
||||
|
||||
.DocSearch-Footer {
|
||||
@apply !tw-hidden;
|
||||
@apply !hidden;
|
||||
}
|
||||
|
||||
.DocSearch-Hit {
|
||||
@apply !tw-p-0;
|
||||
@apply !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;
|
||||
@apply !w-2.5 !h-2.5 p-0.125 border border-solid border-medusa-border-strong dark:border-medusa-border-strong-dark;
|
||||
@apply rounded flex justify-center items-center;
|
||||
@apply before:content-[''] before:w-2 before:h-2 before:bg-no-repeat before:bg-center before:bg-contain before:bg-search-hit dark:before:bg-search-hit-dark;
|
||||
}
|
||||
|
||||
.DocSearch-Hit-icon svg {
|
||||
@apply tw-hidden;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
.DocSearch-Hit--Child .DocSearch-Hit-icon {
|
||||
@apply tw-hidden;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
.DocSearch-Hit a {
|
||||
@apply !tw-py-[12px] !tw-px-1.5 !tw-shadow-none !tw-rounded-none;
|
||||
@apply !py-0.75 !px-1.5 !shadow-none !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;
|
||||
@apply border-0 border-b border-solid border-medusa-border-base dark:border-medusa-border-base-dark;
|
||||
}
|
||||
|
||||
.DocSearch-Hit-content-wrapper {
|
||||
@apply !tw-mt-0 !tw-mx-1;
|
||||
@apply !mt-0 !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;
|
||||
@apply !text-medusa-fg-base dark:!text-medusa-fg-base-dark;
|
||||
@apply !text-compact-small-plus;
|
||||
}
|
||||
|
||||
.DocSearch-Hit-path {
|
||||
@apply !tw-text-medusa-text-subtle dark:!tw-text-medusa-text-subtle-dark !tw-text-label-small;
|
||||
@apply !text-medusa-fg-subtle dark:!text-medusa-fg-subtle-dark !text-compact-small;
|
||||
}
|
||||
|
||||
.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path {
|
||||
--docsearch-hit-active-color: theme(colors.medusa.text.subtle.DEFAULT);
|
||||
--docsearch-hit-active-color: theme(colors.medusa.fg.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-active-color: theme(colors.medusa.fg.subtle.dark);
|
||||
}
|
||||
|
||||
.DocSearch-Hit[aria-selected=true] a {
|
||||
@apply !tw-bg-medusa-bg-base-hover dark:!tw-bg-medusa-bg-base-hover-dark;
|
||||
@apply !bg-medusa-bg-base-hover dark:!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;
|
||||
@apply h-1.5 w-1.5 border border-solid border-medusa-border-strong dark:border-medusa-border-strong-dark;
|
||||
@apply rounded bg-medusa-bg-base dark:bg-medusa-bg-base-dark p-0.125 flex justify-center items-center;
|
||||
@apply before:content-[''] before:w-[20px] before:h-[20px] before:bg-search-arrow dark:before:bg-search-arrow-dark before:bg-no-repeat before: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;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
.DocSearch-Hit[aria-selected=true] mark {
|
||||
@apply !tw-no-underline;
|
||||
@apply !no-underline;
|
||||
}
|
||||
|
||||
.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree {
|
||||
@apply tw-text-medusa-border-strong dark:tw-text-medusa-border-strong-dark;
|
||||
@apply text-medusa-border-strong dark:text-medusa-border-strong-dark;
|
||||
}
|
||||
|
||||
.DocSearch-Hit-Tree {
|
||||
@apply tw-text-medusa-border-base dark:tw-text-medusa-border-base-dark;
|
||||
@apply text-medusa-border-base dark: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;
|
||||
@apply z-[100] absolute bottom-0 left-0 w-full h-2.5 !bg-medusa-bg-base dark:!bg-medusa-bg-base-dark;
|
||||
@apply border-0 border-t border-solid border-medusa-border-base dark:border-medusa-border-base-dark;
|
||||
}
|
||||
|
||||
.DocSearch-HitsFooter a {
|
||||
@apply !tw-border-b-0;
|
||||
@apply !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;
|
||||
@apply !rounded transition-all duration-200 ease-ease;
|
||||
@apply hover:bg-medusa-bg-base-hover dark:hover: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;
|
||||
@apply w-[20px] h-[20px] !p-0 flex justify-center items-center mt-0 mb-1 mx-auto;
|
||||
@apply before:content-[''] before:w-full before:h-full before:bg-no-repeat before:bg-center before:bg-contain;
|
||||
@apply before:bg-search-no-result dark:before:bg-search-no-result-dark;
|
||||
}
|
||||
|
||||
.DocSearch-NoResults .DocSearch-Screen-Icon svg {
|
||||
@apply tw-hidden;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
.DocSearch-NoResults .DocSearch-Title {
|
||||
@apply !tw-text-label-small !tw-pl-1;
|
||||
@apply !text-compact-small !pl-1;
|
||||
}
|
||||
|
||||
.DocSearch-NoResults-Prefill-List {
|
||||
@apply tw-text-center !tw-text-label-small-plus !tw-pl-1;
|
||||
@apply text-center !text-compact-small-plus !pl-1;
|
||||
}
|
||||
|
||||
.DocSearch-NoResults-Prefill-List li::marker {
|
||||
@apply tw-content-[''];
|
||||
@apply content-[''];
|
||||
}
|
||||
|
||||
.DocSearch-NoResults-Prefill-List li button {
|
||||
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-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;
|
||||
@apply w-full !h-full !rounded lg:!border lg:!border-solid lg:!border-medusa-border-base lg:dark:!border-medusa-border-base-dark border-0;
|
||||
@apply lg:!bg-medusa-bg-field lg:dark:!bg-medusa-bg-field-dark !bg-transparent;
|
||||
@apply lg:hover:!bg-medusa-bg-field-hover lg:dark:hover:!bg-medusa-bg-field-hover-dark;
|
||||
@apply !py-[6px] !pl-0.5 relative;
|
||||
@apply hover:!border-medusa-border-base hover:dark:!border-medusa-border-base-dark;
|
||||
@apply active:!border-medusa-border-base active:dark:!border-medusa-border-base-dark;
|
||||
@apply focus:!border-medusa-border-base focus:dark:!border-medusa-border-base-dark;
|
||||
}
|
||||
|
||||
.DocSearch-Container {
|
||||
@apply !tw-z-[1001] md:tw-flex md:tw-justify-center md:tw-items-center;
|
||||
@apply !z-[1001] md:flex md:justify-center md:items-center;
|
||||
}
|
||||
|
||||
.DocSearch-Button .DocSearch-Search-Icon {
|
||||
@apply tw-invisible;
|
||||
@apply 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;
|
||||
@apply before:content-[''] before:h-[20px] before:w-[20px] before:absolute before:left-0.5 before:top-[5px];
|
||||
@apply before:bg-magnifying-glass before:bg-no-repeat;
|
||||
}
|
||||
|
||||
.DocSearch-Button-Placeholder {
|
||||
@apply tw-text-medusa-text-muted dark:tw-text-medusa-text-muted-dark;
|
||||
@apply !tw-pl-0.5 !tw-text-label-small lg:!tw-block !tw-hidden;
|
||||
@apply text-medusa-fg-muted dark:text-medusa-fg-muted-dark;
|
||||
@apply !pl-0.5 !text-compact-small lg:!block !hidden;
|
||||
}
|
||||
|
||||
.DocSearch-Button-Keys {
|
||||
@apply tw-w-fit !tw-min-w-[unset] lg:!tw-flex !tw-hidden;
|
||||
@apply w-fit !min-w-[unset] lg:!flex !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;
|
||||
@apply !shadow-none !rounded-md !text-compact-x-small-plus !font-base align-middle !p-0.125;
|
||||
@apply !border !border-solid !border-medusa-tag-neutral-border dark:!border-medusa-tag-neutral-border-dark;
|
||||
@apply [&span]:hidden [&:not(:last-child)]:!mr-0.25 last:!mr-0;
|
||||
}
|
||||
|
||||
[class*=searchBox] {
|
||||
@apply lg:tw-w-[280px] lg:tw-max-w-[280px] lg:!tw-h-2 lg:!tw-p-0;
|
||||
@apply lg:w-[280px] lg:max-w-[280px] lg:!h-2 lg:!p-0 !static;
|
||||
}
|
||||
|
||||
@@ -1,156 +0,0 @@
|
||||
.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-subtle dark:tw-fill-medusa-icon-subtle-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-neutral dark:!tw-bg-medusa-button-neutral-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-brand dark:!tw-bg-medusa-button-brand-dark;
|
||||
@apply !tw-border-medusa-button-brand dark:!tw-border-medusa-button-brand-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-neutral dark:!tw-bg-medusa-button-neutral-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-neutral dark:!tw-bg-medusa-button-neutral-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-neutral dark:!tw-bg-medusa-button-neutral-dark;
|
||||
@apply hover:!tw-bg-medusa-button-neutral-hover dark:hover:!tw-bg-medusa-button-neutral-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-focus dark:focus:!tw-shadow-focus-dark;
|
||||
}
|
||||
|
||||
.redocusaurus [role=menuitem] {
|
||||
@apply hover:!tw-text-medusa-text-subtle dark:hover:!tw-text-medusa-text-subtle-dark;
|
||||
}
|
||||
|
||||
.redocusaurus [data-section-id^="operation/"] {
|
||||
@apply max-[1199px]:[&>*]:!tw-w-auto;
|
||||
}
|
||||
@@ -14,65 +14,65 @@
|
||||
|
||||
.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;
|
||||
@apply 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];
|
||||
@apply content-[''] h-full w-[1px] absolute left-0.5 top-0 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];
|
||||
@apply !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];
|
||||
@apply !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];
|
||||
@apply !bottom-0 !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];
|
||||
@apply !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;
|
||||
@apply !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;
|
||||
@apply bg-medusa-border-base dark: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];
|
||||
@apply bg-medusa-fg-interactive dark:bg-medusa-fg-interactive-dark !z-[2] !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;
|
||||
@apply !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;
|
||||
@apply 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;
|
||||
@apply !pl-0;
|
||||
}
|
||||
|
||||
.theme-doc-sidebar-item-category-level-1.sidebar-group-headline {
|
||||
@apply tw-mb-1;
|
||||
@apply mb-1;
|
||||
}
|
||||
|
||||
[class*="level-2"]:is([class*="theme-doc-sidebar-item"]) .menu__link,
|
||||
@@ -81,87 +81,87 @@
|
||||
[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];
|
||||
@apply 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;
|
||||
@apply 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;
|
||||
@apply 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;
|
||||
@apply 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;
|
||||
@apply !pl-0.5;
|
||||
}
|
||||
|
||||
.menu__list-item-collapsible {
|
||||
@apply !tw-rounded;
|
||||
@apply !rounded;
|
||||
}
|
||||
|
||||
.menu__list-item-collapsible--active {
|
||||
@apply !tw-bg-transparent;
|
||||
@apply !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;
|
||||
@apply !bg-medusa-bg-base-hover dark:!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];
|
||||
@apply !top-0.25;
|
||||
}
|
||||
|
||||
.menu__link--sublist-caret:after {
|
||||
@apply tw-content-none;
|
||||
@apply content-none;
|
||||
}
|
||||
|
||||
.menu__link {
|
||||
@apply tw-cursor-pointer !tw-rounded tw-text-label-small-plus;
|
||||
@apply cursor-pointer !rounded text-compact-small-plus;
|
||||
}
|
||||
|
||||
.theme-doc-sidebar-item-category-level-1 > .menu__list {
|
||||
@apply tw-mb-[4px];
|
||||
@apply mb-0.25;
|
||||
}
|
||||
|
||||
.menu__list:not(.theme-doc-sidebar-menu),
|
||||
.theme-doc-sidebar-item-category-level-1 > .menu__list {
|
||||
@apply !tw-pl-0;
|
||||
@apply !pl-0;
|
||||
}
|
||||
|
||||
.menu__list .menu__list {
|
||||
@apply !tw-mt-0;
|
||||
@apply !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;
|
||||
@apply z-[398] border-0 border-r border-solid border-medusa-border-base dark: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;
|
||||
@apply bg-transparent w-fit top-[unset] pl-0 ml-0 mb-1 text-compact-small-plus;
|
||||
}
|
||||
|
||||
.theme-doc-sidebar-item-link {
|
||||
@apply tw-flex tw-items-center;
|
||||
@apply flex 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;
|
||||
@apply text-medusa-fg-subtle dark:text-medusa-fg-subtle-dark;
|
||||
@apply hover:text-medusa-fg-base dark:hover:text-medusa-fg-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;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
||||
}
|
||||
@@ -1,60 +1,60 @@
|
||||
.theme-doc-toc-desktop {
|
||||
@apply tw-pt-3;
|
||||
@apply 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;
|
||||
@apply !border-l-0 !p-0 text-[12px] relative overflow-y-hidden;
|
||||
@apply before:bg-toc dark:before:bg-toc-dark;
|
||||
@apply before:bg-no-repeat before:bg-[length:14px_10px] before:bg-[center_left];
|
||||
@apply before:pl-[22px] before:content-['On_this_page'] before:pb-0 text-compact-small-plus;
|
||||
@apply after:content-[''] after:absolute after:left-0 after:top-2.5;
|
||||
@apply after:h-full after:w-[1px] after:bg-medusa-border-base dark:after:bg-medusa-border-base-dark;
|
||||
}
|
||||
|
||||
.theme-doc-toc-desktop .table-of-contents .table-of-contents__link {
|
||||
@apply tw-pl-[11px];
|
||||
@apply 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];
|
||||
@apply first:mt-1 [&:not(:first-child)]:mt-0 last:mb-0 [&:not(:last-child)]:mb-0.25;
|
||||
}
|
||||
|
||||
.theme-doc-toc-desktop .table-of-contents li a + ul {
|
||||
@apply tw-mt-[4px];
|
||||
@apply mt-0.25;
|
||||
}
|
||||
|
||||
.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;
|
||||
@apply relative text-compact-x-small-plus;
|
||||
@apply hover:text-medusa-fg-base dark:hover:text-medusa-fg-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;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-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];
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
||||
@apply after:content-[''] after:absolute after:left-0 after:top-0;
|
||||
@apply after:h-full after:w-[1px] after:bg-medusa-fg-base dark:after:bg-medusa-fg-base-dark;
|
||||
@apply 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;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
||||
}
|
||||
|
||||
.theme-doc-toc-desktop .table-of-contents li {
|
||||
@apply tw-mx-0;
|
||||
@apply mx-0;
|
||||
}
|
||||
|
||||
.theme-doc-toc-desktop .table-of-contents ul li {
|
||||
@apply tw-mt-0;
|
||||
@apply mt-0;
|
||||
}
|
||||
|
||||
.table-of-contents ul {
|
||||
@apply tw-pl-0;
|
||||
@apply pl-0;
|
||||
}
|
||||
|
||||
.table-of-contents ul .table-of-contents__link {
|
||||
@apply !tw-pl-[27px];
|
||||
@apply !pl-[27px];
|
||||
}
|
||||
@@ -1,10 +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-tooltip dark:!tw-shadow-tooltip-dark;
|
||||
@apply !tw-py-0.4 !tw-px-1 lg:tw-block tw-hidden;
|
||||
@apply !border !border-solid !border-medusa-border-base dark:!border-medusa-border-base-dark;
|
||||
@apply !rounded !text-compact-x-small-plus !shadow-tooltip dark:!shadow-tooltip-dark;
|
||||
@apply !py-0.4 !px-1 lg:block hidden;
|
||||
}
|
||||
|
||||
.react-tooltip-arrow {
|
||||
@apply tw-hidden;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
|
||||
+67
-60
@@ -4,149 +4,157 @@
|
||||
|
||||
@layer components {
|
||||
.sidebar-title {
|
||||
@apply !tw-m-0 !tw-py-1 !tw-px-0;
|
||||
@apply lg:first:tw-top-0 lg:[&:not(:first-child)]:tw-top-[20px];
|
||||
@apply !m-0 !py-1 !px-0;
|
||||
@apply lg:first:top-0 lg:[&:not(:first-child)]:top-[20px];
|
||||
}
|
||||
|
||||
.sidebar-title .menu__link {
|
||||
@apply !tw-px-0;
|
||||
@apply !px-0;
|
||||
}
|
||||
|
||||
.sidebar-title .menu__link,
|
||||
.sidebar-title span {
|
||||
@apply !tw-text-label-regular-plus tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark;
|
||||
@apply !text-compact-medium-plus text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
||||
}
|
||||
|
||||
.sidebar-title .menu__link--active,
|
||||
.sidebar-title .menu__link:hover {
|
||||
@apply !tw-bg-transparent;
|
||||
@apply !bg-transparent;
|
||||
}
|
||||
|
||||
.sidebar-group-headline {
|
||||
@apply tw-mt-1 tw-py-[6px] tw-px-0;
|
||||
@apply mt-1 py-[6px] px-0;
|
||||
}
|
||||
|
||||
.sidebar-group-headline:not(.theme-doc-sidebar-item-category-level-1) {
|
||||
@apply tw-mb-[6px];
|
||||
@apply mb-[6px];
|
||||
}
|
||||
|
||||
.sidebar-group-headline > .menu__list-item-collapsible > .menu__link {
|
||||
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark !tw-p-0;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark !p-0;
|
||||
}
|
||||
|
||||
.sidebar-group-headline > .menu__list-item-collapsible > .menu__link:not([href]) {
|
||||
@apply tw-cursor-default
|
||||
@apply cursor-default
|
||||
}
|
||||
|
||||
.sidebar-group-headline > .menu__list-item-collapsible > .menu__link:hover,
|
||||
.sidebar-group-headline .menu__list-item-collapsible:hover {
|
||||
@apply !tw-bg-transparent;
|
||||
@apply !bg-transparent;
|
||||
}
|
||||
|
||||
.sidebar-group-headline > .menu__link,
|
||||
.sidebar-group-headline > .menu__list-item-collapsible > .menu__link {
|
||||
@apply tw-font-semibold;
|
||||
@apply font-semibold;
|
||||
}
|
||||
|
||||
.sidebar-group-divider {
|
||||
@apply tw-pb-[6px] tw-uppercase tw-text-medusa-text-muted dark:tw-text-medusa-text-muted-dark tw-text-label-x-small-plus;
|
||||
@apply first:tw-pt-[6px] [&:not(:first-child)]:!tw-pt-1;
|
||||
@apply pb-[6px] uppercase text-medusa-fg-muted dark:text-medusa-fg-muted-dark text-compact-x-small-plus;
|
||||
@apply first:pt-[6px] [&:not(:first-child)]:!pt-1;
|
||||
}
|
||||
|
||||
.sidebar-divider-line {
|
||||
@apply tw-h-[1px] tw-w-full tw-bg-medusa-border-base dark:tw-bg-medusa-border-base-dark tw-my-1 tw-mx-0;
|
||||
@apply h-[1px] w-full bg-medusa-border-base dark:bg-medusa-border-base-dark my-1 mx-0;
|
||||
}
|
||||
|
||||
.sidebar-back-link {
|
||||
@apply tw-cursor-pointer lg:tw-top-0;
|
||||
@apply cursor-pointer lg:top-0;
|
||||
}
|
||||
|
||||
.sidebar-back-link,
|
||||
.sidebar-title {
|
||||
@apply lg:tw-sticky lg:tw-bg-medusa-bg-base dark:lg:tw-bg-medusa-bg-subtle-dark lg:tw-z-[100];
|
||||
@apply lg:sticky lg:bg-medusa-bg-base dark:lg:bg-medusa-bg-subtle-dark lg:z-[100];
|
||||
}
|
||||
|
||||
.sidebar-back-link .menu__link {
|
||||
@apply !tw-p-0 hover:!tw-bg-transparent hover:tw-text-medusa-text-base dark:hover:tw-text-medusa-text-base-dark;
|
||||
@apply !p-0 hover:!bg-transparent hover:text-medusa-fg-base dark:hover:text-medusa-fg-base-dark;
|
||||
}
|
||||
|
||||
.sidebar-back-link .menu__link,
|
||||
.sidebar-back-link span {
|
||||
@apply tw-text-label-small-plus;
|
||||
@apply text-compact-small-plus;
|
||||
}
|
||||
|
||||
.sidebar-back-link .sidebar-item-icon {
|
||||
@apply tw-mr-0.5;
|
||||
@apply mr-0.5;
|
||||
}
|
||||
|
||||
.sidebar-soon-link {
|
||||
@apply tw-pointer-events-none [&_*]:tw-text-medusa-text-disabled dark:[&_*]:tw-text-medusa-text-disabled-dark;
|
||||
@apply pointer-events-none [&_*]:text-medusa-fg-disabled dark:[&_*]:text-medusa-fg-disabled-dark;
|
||||
}
|
||||
|
||||
|
||||
.sidebar-badge-wrapper {
|
||||
@apply tw-flex tw-justify-between tw-items-center;
|
||||
@apply flex justify-between items-center;
|
||||
}
|
||||
|
||||
.search-page-input {
|
||||
@apply tw-rounded tw-border tw-border-solid tw-border-medusa-border-base dark:tw-border-medusa-border-base-dark;
|
||||
@apply tw-font-base tw-text-body-regular tw-p-[12px] tw-w-full tw-bg-medusa-bg-field dark:tw-bg-medusa-bg-field-dark;
|
||||
@apply tw-text-medusa-text-base dark:tw-text-medusa-text-base-dark tw-mb-1;
|
||||
@apply tw-transition-[border] tw-duration-200 tw-ease-ease;
|
||||
@apply focus:tw-border-medusa-border-base dark:focus:tw-border-medusa-border-base-dark;
|
||||
@apply focus:tw-outline-none !tw-shadow-none;
|
||||
@apply rounded border border-solid border-medusa-border-base dark:border-medusa-border-base-dark;
|
||||
@apply font-base text-medium p-0.75 w-full bg-medusa-bg-subtle dark:bg-medusa-bg-subtle-dark;
|
||||
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark mb-1;
|
||||
@apply transition-[border] duration-200 ease-ease;
|
||||
@apply focus:border-medusa-border-base dark:focus:border-medusa-border-base-dark;
|
||||
@apply focus:outline-none !shadow-none;
|
||||
}
|
||||
|
||||
.code-header {
|
||||
@apply tw-py-[12px] tw-px-1 tw-bg-medusa-code-tabs-bg tw-text-medusa-code-text-subtle;
|
||||
@apply tw-flex tw-justify-between tw-items-center;
|
||||
@apply tw-rounded-tl tw-rounded-tr tw-rounded-br-none tw-rounded-bl-none tw-border-b-0;
|
||||
@apply tw-border tw-border-solid tw-border-medusa-code-block-border tw-border-b-0;
|
||||
@apply py-0.75 px-1 bg-medusa-code-bg-header dark:bg-medusa-code-bg-header-dark text-medusa-code-text-subtle dark:text-medusa-code-text-subtle;
|
||||
@apply flex justify-between items-center;
|
||||
@apply rounded-tl rounded-tr rounded-br-none rounded-bl-none border-b-0;
|
||||
@apply border border-solid border-medusa-code-border dark:border-medusa-code-border-dark border-b-0;
|
||||
}
|
||||
|
||||
.no-scrollbar::-webkit-scrollbar {
|
||||
@apply tw-hidden;
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
.animate__fastest {
|
||||
--animate-duration: 0.2s;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
@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-button-neutral dark:tw-bg-button-neutral-dark;
|
||||
@apply hover:!tw-bg-no-image hover:tw-bg-medusa-button-neutral-hover dark:hover:tw-bg-medusa-button-neutral-hover-dark hover:tw-no-underline;
|
||||
@apply active:!tw-bg-no-image active:tw-bg-medusa-button-neutral-pressed dark:active:tw-bg-medusa-button-neutral-pressed-dark;
|
||||
@apply focus:tw-shadow-focus dark:focus:tw-shadow-focus-dark;
|
||||
@apply disabled:!tw-bg-no-image disabled:tw-bg-medusa-button-disabled dark:disabled:tw-bg-medusa-button-disabled-dark;
|
||||
@apply tw-border tw-border-solid tw-border-medusa-border-neutral-buttons dark:tw-border-medusa-border-neutral-buttons-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;
|
||||
.btn-secondary {
|
||||
@apply inline-flex flex-row justify-center items-center;
|
||||
@apply py-[5px] px-0.75 rounded-sm cursor-pointer;
|
||||
@apply bg-button-neutral bg-medusa-button-neutral dark:bg-button-neutral-dark dark:bg-medusa-button-neutral-dark;
|
||||
@apply hover:bg-medusa-button-neutral-hover hover:bg-button-neutral-hover dark:hover:bg-medusa-button-neutral-hover-dark dark:hover:bg-button-neutral-hover-dark hover:no-underline;
|
||||
@apply active:bg-medusa-button-neutral-pressed active:bg-button-neutral-pressed dark:active:bg-medusa-button-neutral-pressed-dark dark:active:bg-button-neutral-pressed-dark;
|
||||
@apply focus:bg-medusa-button-neutral-pressed focus:bg-button-neutral-pressed dark:focus:bg-medusa-button-neutral-pressed-dark dark:focus:bg-button-neutral-pressed-dark;
|
||||
@apply disabled:!bg-no-image disabled:bg-medusa-bg-disabled dark:disabled:bg-medusa-bg-disabled-dark;
|
||||
@apply disabled:cursor-not-allowed;
|
||||
@apply border border-solid border-medusa-border-base dark:border-medusa-border-base-dark;
|
||||
@apply text-compact-small-plus text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
||||
@apply shadow-button-neutral focus:shadow-button-neutral-focused active:shadow-button-neutral-focused transition-shadow;
|
||||
@apply dark:shadow-button-neutral dark:focus:shadow-button-neutral-focused dark:active:shadow-button-neutral-focused;
|
||||
@apply select-none;
|
||||
}
|
||||
|
||||
.btn-inverted {
|
||||
@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-button-inverted dark:tw-bg-button-inverted-dark;
|
||||
@apply hover:!tw-bg-no-image hover:tw-bg-medusa-button-inverted-hover dark:hover:tw-bg-medusa-button-inverted-hover-dark hover:tw-no-underline;
|
||||
@apply active:!tw-bg-no-image active:tw-bg-medusa-button-inverted-pressed dark:active:tw-bg-medusa-button-inverted-pressed-dark;
|
||||
@apply focus:tw-shadow-focus dark:focus:tw-shadow-focus-dark;
|
||||
@apply disabled:!tw-bg-no-image disabled:tw-bg-medusa-button-disabled dark:disabled:tw-bg-medusa-button-disabled-dark;
|
||||
@apply tw-text-label-small-plus tw-text-medusa-text-on-color dark:tw-text-medusa-text-on-inverted-dark;
|
||||
@apply tw-border-transparent tw-border;
|
||||
.btn-primary {
|
||||
@apply inline-flex flex-row justify-center items-center;
|
||||
@apply py-[5px] px-0.75 rounded-sm cursor-pointer;
|
||||
@apply bg-button-inverted bg-medusa-button-inverted dark:bg-button-inverted-dark dark:bg-medusa-button-inverted-dark;
|
||||
@apply hover:bg-medusa-button-inverted-hover hover:bg-button-inverted-hover dark:hover:bg-medusa-button-inverted-hover-dark dark:hover:bg-button-inverted-hover-dark hover:no-underline;
|
||||
@apply active:bg-medusa-button-inverted-pressed active:bg-button-inverted-pressed dark:active:bg-medusa-button-inverted-pressed-dark dark:active:bg-button-inverted-pressed-dark;
|
||||
@apply focus:bg-medusa-button-inverted-pressed focus:bg-button-inverted-pressed dark:focus:bg-medusa-button-inverted-pressed-dark dark:focus:bg-button-inverted-pressed-dark;
|
||||
@apply shadow-button-colored active:shadow-button-colored-focused focus:shadow-button-colored-focused transition-shadow;
|
||||
@apply dark:shadow-button-colored-dark dark:active:shadow-button-colored-focused-dark dark:focus:shadow-button-colored-focused-dark;
|
||||
@apply disabled:!bg-no-image disabled:bg-medusa-button-disabled dark:disabled:bg-medusa-button-disabled-dark;
|
||||
@apply disabled:cursor-not-allowed disabled:border-medusa-border-base dark:disabled:border-medusa-border-base-dark;
|
||||
@apply text-compact-small-plus text-medusa-fg-on-inverted dark:text-medusa-fg-on-inverted-dark;
|
||||
@apply disabled:text-medusa-fg-disabled dark:disabled:text-medusa-fg-disabled-dark;
|
||||
@apply border border-medusa-border-loud dark:border-medusa-border-loud-dark;
|
||||
@apply select-none;
|
||||
}
|
||||
|
||||
.navbar-action-icon-item {
|
||||
@apply tw-bg-button-neutral dark:tw-bg-button-neutral-dark hover:!tw-bg-no-image active:!tw-bg-no-image hover:tw-bg-medusa-button-neutral-hover dark:hover:tw-bg-medusa-button-neutral-hover-dark;
|
||||
@apply active:tw-bg-medusa-button-neutral-pressed dark:active:tw-bg-medusa-button-neutral-pressed-dark;
|
||||
@apply focus:tw-shadow-focus dark:focus:tw-shadow-focus-dark;
|
||||
@apply tw-border tw-border-solid tw-border-medusa-border-neutral-buttons dark:tw-border-medusa-border-neutral-buttons-dark tw-rounded;
|
||||
@apply tw-w-2 tw-h-2 tw-flex tw-justify-center tw-items-center tw-cursor-pointer;
|
||||
@apply bg-docs-button-neutral dark:bg-docs-button-neutral-dark hover:!bg-no-image active:!bg-no-image hover:bg-medusa-button-neutral-hover dark:hover:bg-medusa-button-neutral-hover-dark;
|
||||
@apply active:bg-medusa-button-neutral-pressed dark:active:bg-medusa-button-neutral-pressed-dark;
|
||||
@apply focus:shadow-button-secondary-focus dark:focus:shadow-button-secondary-focus-dark;
|
||||
@apply border border-solid border-medusa-border-loud-muted dark:border-medusa-border-loud-muted-dark rounded;
|
||||
@apply w-2 h-2 flex justify-center items-center cursor-pointer;
|
||||
}
|
||||
|
||||
.transparent-button {
|
||||
@apply tw-bg-transparent tw-border-0 tw-text-inherit tw-cursor-pointer tw-p-0;
|
||||
@apply bg-transparent border-0 text-inherit cursor-pointer p-0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,7 +168,6 @@
|
||||
|
||||
@import url('./_docusaurus.css');
|
||||
@import url('./components/docsearch.css');
|
||||
@import url('./components/redocly.css');
|
||||
@import url('./components/sidebar.css');
|
||||
@import url('./components/toc.css');
|
||||
@import url('./components/tooltip.css');
|
||||
Reference in New Issue
Block a user