Skip to content

Commit 0eaa6d0

Browse files
udimbertopwizla
andauthored
Fix code blocks background color (#1593)
* Update CONTRIBUTING.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update CONTRIBUTING.md * Mention content types are private by default (#1587) * Mention content types are private by default * Tweak wording * Fix styles for Code Blocks on Dev Docs Integrations examples * Update styles color tokens 'neutral' overrides * Fix styles for Sidebar theme and close button positioning on mobile view --------- Co-authored-by: Pierre Wizla <[email protected]>
1 parent dcd156f commit 0eaa6d0

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

docusaurus/src/scss/_tokens-overrides.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@
88
--ifm-font-color-base: var(--strapi-neutral-800);
99

1010
--ifm-color-content-secondary: var(--strapi-neutral-600);
11+
--ifm-color-emphasis-100: var(--strapi-neutral-100);
1112
--ifm-color-emphasis-200: var(--strapi-neutral-150);
1213
--ifm-color-emphasis-300: var(--strapi-neutral-200);
14+
--ifm-color-emphasis-400: var(--strapi-neutral-300);
15+
--ifm-color-emphasis-500: var(--strapi-neutral-400);
16+
--ifm-color-emphasis-600: var(--strapi-neutral-500);
17+
--ifm-color-emphasis-700: var(--strapi-neutral-600);
18+
--ifm-color-emphasis-800: var(--strapi-neutral-700);
19+
--ifm-color-emphasis-900: var(--strapi-neutral-800);
20+
--ifm-color-emphasis-1000: var(--strapi-neutral-1000);
1321

1422
--ifm-color-primary: var(--strapi-primary-600);
1523
--ifm-color-primary-dark: #29784c;
@@ -41,6 +49,17 @@
4149
--ifm-color-content: var(--strapi-neutral-800);
4250
--ifm-font-color-base: var(--strapi-neutral-800);
4351

52+
--ifm-color-emphasis-100: var(--strapi-neutral-100);
53+
--ifm-color-emphasis-200: var(--strapi-neutral-150);
54+
--ifm-color-emphasis-300: var(--strapi-neutral-200);
55+
--ifm-color-emphasis-400: var(--strapi-neutral-300);
56+
--ifm-color-emphasis-500: var(--strapi-neutral-400);
57+
--ifm-color-emphasis-600: var(--strapi-neutral-500);
58+
--ifm-color-emphasis-700: var(--strapi-neutral-600);
59+
--ifm-color-emphasis-800: var(--strapi-neutral-700);
60+
--ifm-color-emphasis-900: var(--strapi-neutral-800);
61+
--ifm-color-emphasis-1000: var(--strapi-neutral-1000);
62+
4463
--ifm-color-primary: var(--strapi-primary-500);
4564
--ifm-color-primary-dark: #21af90;
4665
--ifm-color-primary-darker: #1fa588;

docusaurus/src/scss/api-call.scss

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** Component: API Call / Request / Response */
22

3-
.api-call {
3+
:root {
44
--custom-api-call-color: var(--strapi-neutral-0);
55
--custom-api-call-gap: var(--strapi-spacing-4);
66
--custom-api-call-heading-font-size: var(--strapi-font-size-sm);
@@ -12,19 +12,21 @@
1212
--custom-api-call-response-content-background-color: var(--strapi-neutral-900);
1313
--custom-api-call-request-heading-background-color: var(--strapi-neutral-600);
1414
--custom-api-call-request-content-background-color: var(--strapi-neutral-700);
15+
}
1516

17+
.api-call {
1618
display: flex;
1719
flex-direction: column;
1820
align-items: stretch;
1921
gap: var(--custom-api-call-gap);
20-
color: var(--custom-api-call-color);
2122
margin-bottom: var(--custom-api-call-gap);
2223

2324
&__request__content,
2425
&__request__heading,
2526
&__response__content,
2627
&__response__heading {
2728
background-color: var(--custom-api-call-background-color);
29+
color: var(--custom-api-call-color);
2830
}
2931

3032
&__request,
@@ -90,15 +92,15 @@
9092

9193
/** Dark mode */
9294
@include dark {
93-
.api-call {
94-
--custom-api-call-color: var(--strapi-neutral-1000);
95+
--custom-api-call-color: var(--strapi-neutral-1000);
9596

96-
--custom-api-call-request-heading-background-color: var(--strapi-neutral-300);
97-
--custom-api-call-request-content-background-color: var(--strapi-neutral-200);
97+
--custom-api-call-request-heading-background-color: var(--strapi-neutral-300);
98+
--custom-api-call-request-content-background-color: var(--strapi-neutral-200);
9899

99-
--custom-api-call-response-heading-background-color: var(--strapi-neutral-150);
100-
--custom-api-call-response-content-background-color: var(--strapi-neutral-100);
100+
--custom-api-call-response-heading-background-color: var(--strapi-neutral-150);
101+
--custom-api-call-response-content-background-color: var(--strapi-neutral-100);
101102

103+
.api-call {
102104
&__request {
103105
&__content {
104106
pre {

docusaurus/src/scss/sidebar.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
1515
var(--ifm-navbar-padding-vertical)
1616
var(--custom-navbar-sidebar-horizontal-padding)
1717
;
18-
19-
gap: var(--custom-navbar-items-gap);
2018
}
2119

2220
&__back {

0 commit comments

Comments
 (0)