* 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
232 lines
8.5 KiB
CSS
232 lines
8.5 KiB
CSS
.DocSearch-Modal {
|
|
@apply border border-solid !border-medusa-border-base dark:!border-medusa-border-base-dark;
|
|
@apply !rounded !relative;
|
|
@apply md:!m-[unset] md:w-[560px];
|
|
}
|
|
|
|
.DocSearch-SearchBar {
|
|
@apply !p-0;
|
|
}
|
|
|
|
.DocSearch-Form {
|
|
--docsearch-spacing: theme(margin[1.5]);
|
|
--docsearch-searchbox-height: 56px;
|
|
--docsearch-searchbox-focus-background: var(--docsearch-modal-background) !important;
|
|
|
|
@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 !w-[20px] !h-[20px];
|
|
}
|
|
|
|
.DocSearch-Input {
|
|
@apply !text-compact-large lg:!text-medium !pl-1;
|
|
@apply placeholder:text-medusa-fg-muted dark:placeholder:text-medusa-fg-muted-dark;
|
|
}
|
|
|
|
.DocSearch-Dropdown {
|
|
@apply !pt-0 !pb-2.5 !px-0;
|
|
@apply !max-h-[416px];
|
|
}
|
|
|
|
.DocSearch-Hit-source {
|
|
@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 !hidden;
|
|
}
|
|
|
|
.DocSearch-Hit {
|
|
@apply !p-0;
|
|
}
|
|
|
|
.DocSearch-Hit:not(.DocSearch-Hit--Child) .DocSearch-Hit-icon {
|
|
@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 hidden;
|
|
}
|
|
|
|
.DocSearch-Hit--Child .DocSearch-Hit-icon {
|
|
@apply hidden;
|
|
}
|
|
|
|
.DocSearch-Hit a {
|
|
@apply !py-0.75 !px-1.5 !shadow-none !rounded-none;
|
|
}
|
|
|
|
.DocSearch-Hit:not(:last-of-type) a {
|
|
@apply border-0 border-b border-solid border-medusa-border-base dark:border-medusa-border-base-dark;
|
|
}
|
|
|
|
.DocSearch-Hit-content-wrapper {
|
|
@apply !mt-0 !mx-1;
|
|
}
|
|
|
|
.DocSearch-Hit-title,
|
|
.DocSearch-Hit-title mark {
|
|
@apply !text-medusa-fg-base dark:!text-medusa-fg-base-dark;
|
|
@apply !text-compact-small-plus;
|
|
}
|
|
|
|
.DocSearch-Hit-path {
|
|
@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.fg.subtle.DEFAULT);
|
|
}
|
|
|
|
html[data-theme="dark"] .DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path {
|
|
--docsearch-hit-active-color: theme(colors.medusa.fg.subtle.dark);
|
|
}
|
|
|
|
.DocSearch-Hit[aria-selected=true] a {
|
|
@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 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 hidden;
|
|
}
|
|
|
|
.DocSearch-Hit[aria-selected=true] mark {
|
|
@apply !no-underline;
|
|
}
|
|
|
|
.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree {
|
|
@apply text-medusa-border-strong dark:text-medusa-border-strong-dark;
|
|
}
|
|
|
|
.DocSearch-Hit-Tree {
|
|
@apply text-medusa-border-base dark:text-medusa-border-base-dark;
|
|
}
|
|
|
|
.DocSearch-HitsFooter {
|
|
@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 !border-b-0;
|
|
}
|
|
|
|
.DocSearch-Reset {
|
|
@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 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 hidden;
|
|
}
|
|
|
|
.DocSearch-NoResults .DocSearch-Title {
|
|
@apply !text-compact-small !pl-1;
|
|
}
|
|
|
|
.DocSearch-NoResults-Prefill-List {
|
|
@apply text-center !text-compact-small-plus !pl-1;
|
|
}
|
|
|
|
.DocSearch-NoResults-Prefill-List li::marker {
|
|
@apply content-[''];
|
|
}
|
|
|
|
.DocSearch-NoResults-Prefill-List li button {
|
|
@apply text-medusa-fg-base dark:text-medusa-fg-base-dark;
|
|
}
|
|
.DocSearch-Button {
|
|
@apply w-full !h-full !rounded lg:!border lg:!border-solid lg:!border-medusa-border-loud-muted 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 lg:disabled:!bg-medusa-bg-disabled lg:dark:disabled:!bg-medusa-bg-disabled-dark;
|
|
@apply p-0 lg:!py-[5px] lg:!px-0.5 relative ml-0;
|
|
@apply hover:!border-medusa-border-loud-muted hover:dark:!border-medusa-border-loud-muted-dark;
|
|
@apply active:!border-medusa-border-interactive active:dark:!border-medusa-border-interactive-dark;
|
|
@apply focus:!border-medusa-border-interactive focus:dark:!border-medusa-border-interactive-dark;
|
|
@apply disabled:!border-medusa-border-base disabled:dark:!border-medusa-border-base-dark;
|
|
@apply lg:!shadow-button-secondary lg:dark:!shadow-button-secondary-dark;
|
|
}
|
|
|
|
.DocSearch-Container {
|
|
@apply !z-[1001] md:flex md:justify-center md:items-center;
|
|
}
|
|
|
|
.DocSearch-Button .DocSearch-Search-Icon {
|
|
@apply invisible;
|
|
}
|
|
|
|
.DocSearch-Button-Container {
|
|
@apply before:content-[''] before:h-[20px] before:w-[20px] before:absolute before:left-0.5 before:top-[5px];
|
|
@apply before:bg-magnifying-glass dark:before:bg-magnifying-glass-dark before:bg-no-repeat;
|
|
}
|
|
|
|
.DocSearch-Button-Placeholder {
|
|
@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 w-fit !min-w-[unset] lg:!flex !hidden;
|
|
}
|
|
|
|
.DocSearch-Button-Key {
|
|
@apply !shadow-none !rounded-md !text-compact-x-small-plus !font-base align-middle !p-0.25;
|
|
@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:w-[280px] lg:max-w-[280px] lg:!h-2 lg:!p-0;
|
|
}
|
|
|
|
|
|
:root {
|
|
--docsearch-searchbox-background: theme(colors.medusa.bg.field.DEFAULT) !important;
|
|
--docsearch-searchbox-focus-background: theme(colors.medusa.bg.field.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.tag.neutral.bg.DEFAULT) !important;
|
|
--docsearch-muted-color: theme(colors.medusa.tag.neutral.text.DEFAULT) !important;
|
|
--docsearch-spacing: 12px theme(spacing[1.5]) !important;
|
|
--docsearch-highlight-color: theme(colors.medusa.fg.muted.DEFAULT) !important;
|
|
--docsearch-text-color: theme(colors.medusa.fg.base.DEFAULT) !important;
|
|
--docsearch-hit-background: var(--docsearch-modal-background) !important;
|
|
--docsearch-hit-height: auto !important;
|
|
--docsearch-hit-active-color: var(--docsearch-text-color) !important;
|
|
--docsearch-footer-height: 40px !important;
|
|
}
|
|
|
|
html[data-theme="dark"] {
|
|
--docsearch-searchbox-background: theme(colors.medusa.bg.field.dark) !important;
|
|
--docsearch-searchbox-focus-background: theme(colors.medusa.bg.field.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.tag.neutral.bg.dark) !important;
|
|
--docsearch-muted-color: theme(colors.medusa.tag.neutral.text.dark) !important;
|
|
--docsearch-highlight-color: theme(colors.medusa.fg.muted.dark) !important;
|
|
--docsearch-text-color: theme(colors.medusa.fg.base.dark) !important;
|
|
} |