docs: fix design issues (#5252)
* docs: fix design issues * fix commands in installation tabs
This commit is contained in:
1 parent
18a05dee86
commit
7016c8940c
4 files changed
+12
-18
No files matched your search
@@ -50,18 +50,4 @@
|
|||||||
body[data-modal="opened"] {
|
body[data-modal="opened"] {
|
||||||
@apply !overflow-hidden;
|
@apply !overflow-hidden;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@layer utilities {
|
|
||||||
.clip {
|
|
||||||
clip-path: inset(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-marker {
|
|
||||||
@apply marker:content-none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-marker::-webkit-details-marker {
|
|
||||||
@apply hidden;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -23,8 +23,8 @@ const PackageInstall = ({
|
|||||||
return (
|
return (
|
||||||
<CodeTabs
|
<CodeTabs
|
||||||
tabs={[
|
tabs={[
|
||||||
{ code: { lang: "bash", source: yarn }, label: "npm", value: "npm" },
|
{ code: { lang: "bash", source: npm }, label: "npm", value: "npm" },
|
||||||
{ code: { lang: "bash", source: npm }, label: "yarn", value: "yarn" },
|
{ code: { lang: "bash", source: yarn }, label: "yarn", value: "yarn" },
|
||||||
{ code: { lang: "bash", source: pnpm }, label: "pnpm", value: "pnpm" },
|
{ code: { lang: "bash", source: pnpm }, label: "pnpm", value: "pnpm" },
|
||||||
]}
|
]}
|
||||||
className={clx("my-4", className)}
|
className={clx("my-4", className)}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export const CodeTabs = ({
|
|||||||
<span
|
<span
|
||||||
className={clsx(
|
className={clsx(
|
||||||
"xs:absolute xs:border xs:border-solid xs:border-medusa-code-border xs:bg-medusa-code-bg-base",
|
"xs:absolute xs:border xs:border-solid xs:border-medusa-code-border xs:bg-medusa-code-bg-base",
|
||||||
"xs:transition-all xs:duration-200 xs:ease-ease xs:top-[13px] xs:z-[1] xs:rounded-full"
|
"xs:transition-all xs:duration-200 xs:ease-ease xs:top-[13px] xs:rounded-full"
|
||||||
)}
|
)}
|
||||||
ref={codeTabSelectorRef}
|
ref={codeTabSelectorRef}
|
||||||
></span>
|
></span>
|
||||||
@@ -87,7 +87,7 @@ export const CodeTabs = ({
|
|||||||
<li key={index}>
|
<li key={index}>
|
||||||
<button
|
<button
|
||||||
className={clsx(
|
className={clsx(
|
||||||
"text-compact-small-plus xs:border-0 py-docs_0.25 px-docs_0.75 relative z-[2] rounded-full border",
|
"text-compact-small-plus xs:border-0 py-docs_0.25 px-docs_0.75 relative rounded-full border",
|
||||||
(!selectedTab || selectedTab.value !== tab.value) && [
|
(!selectedTab || selectedTab.value !== tab.value) && [
|
||||||
"text-medusa-code-text-subtle border-transparent",
|
"text-medusa-code-text-subtle border-transparent",
|
||||||
"hover:bg-medusa-code-bg-base",
|
"hover:bg-medusa-code-bg-base",
|
||||||
|
|||||||
@@ -570,6 +570,14 @@ module.exports = {
|
|||||||
".animate-fast": {
|
".animate-fast": {
|
||||||
animationDuration: "300ms",
|
animationDuration: "300ms",
|
||||||
},
|
},
|
||||||
|
".clip": {
|
||||||
|
clipPath: "inset(0)",
|
||||||
|
},
|
||||||
|
".no-marker": {
|
||||||
|
"&::-webkit-details-marker": {
|
||||||
|
display: "none",
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
addComponents({
|
addComponents({
|
||||||
".btn-secondary-icon": {
|
".btn-secondary-icon": {
|
||||||
|
|||||||
Reference in new issue
Block a user