Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions mintlify/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,19 @@ html.dark [data-testid="code-group-select"] {
border-radius: 0 !important;
}

/* Mintlify rounds the content area via a `rounded-xt!` utility that lives in
@layer utilities; layered !important beats our unlayered !important no
matter the specificity, so this override must join the same layer. Inside
the layer the extra `div` type wins the specificity tie against the
utility's (0,2,0) selector */
@layer utilities {
.code-group div[data-component-part="code-block-root"],
[data-testid="code-group-select"] div[data-component-part="code-block-root"],
div:has(> [data-component-part="code-block-header"]) div[data-component-part="code-block-root"] {
border-radius: 0 !important;
}
}

/* Restore radius on interactive tabs and pills inside code groups */
.code-group [data-component-part="code-group-tab-bar"] button div[class*="rounded"],
.code-group [data-component-part="code-group-tab-bar"] > div > button > div,
Expand Down Expand Up @@ -1787,6 +1800,11 @@ html.dark .code-group [class*="dark:bg-codeblock"] {
background-color: var(--ls-gray-975) !important;
}

/* Match the scroll fade overlay to the dark code block background */
[data-fade-overlay] {
--fade-color-dark: var(--ls-gray-975) !important;
}

/* API Reference - Try It input fields */
#api-playground-input,
select[class*="text-playground-input"] {
Expand Down