File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 13
13
/* Use a darker color to ensure contrast, ideally we don't need important */
14
14
--ifm-breadcrumb-color-active : var (--ifm-color-primary-darker ) !important ;
15
15
--ifm-menu-color-active : var (--ifm-color-primary-darker ) !important ;
16
+ --inline-code-bg-color : # fafafa ; /* Light mode background */
17
+ --inline-code-text-color : # aa54bf ; /* Light mode text color */
16
18
}
17
19
18
20
html [data-theme = 'dark' ] {
@@ -50,6 +52,8 @@ html[data-theme='dark'] {
50
52
--ifm-border-color : # 444 ; /* Border color */
51
53
--ifm-hover-color : # 555 ; /* Hover color for interactive elements */
52
54
--docusaurus-highlighted-code-line-bg : rgba (255 , 255 , 255 , 0.1 );
55
+ --inline-code-bg-color : # 464752 ; /* Dark mode background */
56
+ --inline-code-text-color : # eca1ff ; /* Dark mode text color */
53
57
}
54
58
.small-image {
55
59
width : 400px ;
@@ -187,4 +191,17 @@ div.alert {
187
191
188
192
.arcade-container {
189
193
margin-bottom : 24px ;
194
+ }
195
+
196
+ code {
197
+ background-color : var (--inline-code-bg-color );
198
+ color : var (--inline-code-text-color );
199
+ border-radius : 4px ;
200
+ padding : 2px 4px ;
201
+ font-size : 0.9em ;
202
+ }
203
+
204
+ /* Override styles for inline code within admonitions */
205
+ .theme-admonition code {
206
+ background-color : inherit; /* Ensures the background color is inherited */
190
207
}
You can’t perform that action at this time.
0 commit comments