Skip to content

Commit 0c083da

Browse files
committed
SVG display fixes
1 parent 6f70d6f commit 0c083da

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

docusaurus/src/scss/code-block.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ pre.prism-code {
9999

100100
&.method,
101101
&.property-access,
102-
&.function {
102+
&.function,
103+
&.attr-name {
103104
color: var(--custom-code-block-function-color) !important;
104105
}
105106

@@ -134,6 +135,10 @@ pre.prism-code {
134135
[class*="highlighted-line"] {
135136
background-color: var(--custom-code-block-background-color-highlighted);
136137
}
138+
139+
code {
140+
background-color: var(--custom-code-block-background-color);
141+
}
137142
}
138143
}
139144

@@ -155,6 +160,10 @@ pre.prism-code {
155160
}
156161
}
157162
}
163+
164+
svg {
165+
display: initial;
166+
}
158167
}
159168

160169
[class*="codeBlockTitle"] {
@@ -315,6 +324,8 @@ pre.prism-code {
315324
}
316325

317326
.clean-btn {
327+
background-color: transparent;
328+
318329
svg {
319330
color: var(--strapi-neutral-900);
320331
}

docusaurus/src/scss/sidebar.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
346346
content:'\E128';
347347
}
348348
}
349-
svg {
350-
display: none;
351-
}
349+
// svg {
350+
// display: none;
351+
// }
352352
[class*="expandButton"] {
353353
svg {
354354
display: none;

0 commit comments

Comments
 (0)