@@ -72,6 +72,11 @@ html {
72
72
--card-shadow : rgba (0 , 0 , 0 , 0.1 );
73
73
--inline-code-bg : # f0f0f0 ;
74
74
--inline-code-color : # 171717 ;
75
+ --toc-background-color : # FCFAF7 ;
76
+ --toc-border-color : # e0e0e0 ;
77
+ --toc-text-color : # 333 ;
78
+ --toc-hover-color : # 7964d3 ;
79
+ --toc-font-family : 'Cofosans' , Arial, sans-serif;
75
80
--ifm-font-family-base : 'Cofosans' , Arial, sans-serif;
76
81
--ifm-font-family-monospace : 'Cofosansmono' , Menlo, monospace;
77
82
--ifm-h1-font-size : 2.25 rem;
@@ -96,6 +101,10 @@ html {
96
101
--card-shadow : rgba (0 , 0 , 0 , 0.3 );
97
102
--inline-code-bg : # 2d2d2d ;
98
103
--inline-code-color : # e0e0e0 ;
104
+ --toc-background-color : # 282a36 ;
105
+ --toc-border-color : # 3d3d3d ;
106
+ --toc-text-color : # e0e0e0 ;
107
+ --toc-hover-color : # 7964d3 ;
99
108
}
100
109
101
110
[data-theme = 'light' ] .navbar {
@@ -105,6 +114,7 @@ html {
105
114
background-color : # FCFAF7 ;
106
115
}
107
116
117
+
108
118
.docusaurus-highlight-code-line {
109
119
background-color : rgba (0 , 0 , 0 , 0.1 );
110
120
display : block;
@@ -177,7 +187,7 @@ sup {
177
187
.theme-doc-sidebar-menu > .theme-doc-sidebar-item-category {
178
188
margin-bottom : 1rem ;
179
189
padding-bottom : 0.3rem ;
180
- border-bottom : 1 px solid var (--ifm-sidebar-border-color );
190
+ border-bottom : 0 px solid var (--ifm-sidebar-border-color );
181
191
}
182
192
183
193
.theme-doc-sidebar-menu > .theme-doc-sidebar-item-category : last-child {
@@ -231,20 +241,32 @@ sup {
231
241
color : var (--ifm-color-gray-600 );
232
242
233
243
/* Make the text a bit smaller */
234
- font-size : 0.7 rem ;
244
+ font-size : 0.75 rem ;
235
245
236
246
/* Optional: Add some additional styling */
237
247
font-weight : 600 ;
238
248
text-transform : uppercase;
239
249
padding-top : 0.1rem ;
240
250
padding-bottom : 0.1rem ;
251
+
252
+ /* Remove hover effects */
253
+ background-color : transparent !important ;
241
254
}
242
255
243
- /* Ensure the color doesn't change on hover or when active */
244
- .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link : hover ,
245
- .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link--active {
246
- color : var (--ifm-color-gray-600 );
247
- background : none;
256
+ .theme-doc-sidebar-item-category-level-2 > .menu__list-item-collapsible > .menu__link ,
257
+ .theme-doc-sidebar-item-link-level-2 > .menu__link {
258
+ padding-left : 0 ;
259
+ }
260
+
261
+
262
+ /* Remove hover effects for the parent element as well */
263
+ .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible : hover {
264
+ background-color : transparent !important ;
265
+ }
266
+
267
+ /* Ensure the text color doesn't change on hover */
268
+ .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link : hover {
269
+ color : var (--ifm-color-gray-600 ) !important ;
248
270
}
249
271
250
272
/* For dark mode */
@@ -327,3 +349,46 @@ code {
327
349
font-size : 0.7em ; /* Adjust this value as needed */
328
350
}
329
351
}
352
+
353
+ /* Adjust these values as needed */
354
+ h1 {
355
+ font-size : 2rem ;
356
+ }
357
+
358
+ h2 {
359
+ font-size : 1.5rem ;
360
+ }
361
+
362
+ h3 {
363
+ font-size : 1.25rem ;
364
+ }
365
+
366
+ h4 {
367
+ font-size : 1rem ;
368
+ }
369
+
370
+ /* Style the Table of Contents */
371
+ .table-of-contents {
372
+ border-left : none !important ;
373
+ background-color : var (--toc-background-color );
374
+ border-radius : 8px ; /* Rounded corners */
375
+ padding : 16px ; /* Add some padding inside the box */
376
+ }
377
+
378
+ /* Style the TOC links */
379
+ .table-of-contents__link {
380
+ color : var (--toc-text-color );
381
+ }
382
+
383
+ .table-of-contents__link--active {
384
+ font-weight : bold;
385
+ color : var (--toc-hover-color )
386
+ }
387
+
388
+ .theme-doc-sidebar-container {
389
+ border-right : none !important ;
390
+ }
391
+
392
+ img {
393
+ box-shadow : 0 1px 2px rgba (0 , 0 , 0 , 0.1 );
394
+ }
0 commit comments