36
36
--ifm-color-secondary : var (--ifm-color-primary-light );
37
37
--ifm-color-white : var (--ifm-color-primary );
38
38
39
+ --ifm-menu-link-sublist-icon : url ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjk2OTY3IDE1LjUzMDNDMy42NzY3OCAxNS4yMzc0IDMuNjc2NzggMTQuNzYyNiAzLjk2OTY3IDE0LjQ2OTdMMTEuNDY5NyA2Ljk2OTY3QzExLjc2MjYgNi42NzY3OCAxMi4yMzc0IDYuNjc2NzggMTIuNTMwMyA2Ljk2OTY3TDIwLjAzMDMgMTQuNDY5N0MyMC4zMjMyIDE0Ljc2MjYgMjAuMzIzMiAxNS4yMzc0IDIwLjAzMDMgMTUuNTMwM0MxOS43Mzc0IDE1LjgyMzIgMTkuMjYyNiAxNS44MjMyIDE4Ljk2OTcgMTUuNTMwM0wxMiA4LjU2MDY2TDUuMDMwMzMgMTUuNTMwM0M0LjczNzQ0IDE1LjgyMzIgNC4yNjI1NiAxNS44MjMyIDMuOTY5NjcgMTUuNTMwM1oiIGZpbGw9IiMxQzFDMUMiLz4KPC9zdmc+Cg==" );
39
40
--content-max-w : 50rem ;
40
41
}
41
42
42
43
/* For readability concerns, you should choose a lighter palette in dark mode. */
43
44
[data-theme = "dark" ]: root {
44
45
--ifm-color-primary : white;
46
+ --ifm-color-content-secondary : # a8a8a8 ;
45
47
--ifm-color-primary-dark : # 282828 ;
46
48
--ifm-color-primary-darker : # 1c1c1c ;
47
49
--ifm-color-primary-light : # a8a8a8 ;
@@ -224,6 +226,10 @@ pre code {
224
226
color : var (--ifm-color-primary );
225
227
}
226
228
229
+ .menu__link--sublist-caret : after {
230
+ background : var (--ifm-menu-link-sublist-icon ) 50% / 1.28rem 1.28rem ;
231
+ }
232
+
227
233
/* Breadcrumb */
228
234
.breadcrumbs__item--active .breadcrumbs__link {
229
235
background-color : var (--ifm-navbar-background-color );
@@ -235,10 +241,38 @@ pre code {
235
241
overflow-y : inherit !important ;
236
242
}
237
243
.table-of-contents {
244
+ position : relative;
238
245
background-color : var (--ifm-toc-background-color );
239
246
border-radius : 1rem ;
240
247
border : none !important ;
241
248
box-shadow : var (--ring-offset-shadow , 0 0 # 0000 ), var (--ring-shadow , 0 0 # 0000 ), var (--shadow );
249
+ max-height : calc (100vh - 10rem );
250
+ overflow : scroll;
251
+ -ms-overflow-style : none; /* IE and Edge */
252
+ scrollbar-width : none; /* Firefox */
253
+ }
254
+ .table-of-contents ::-webkit-scrollbar {
255
+ display : none;
256
+ }
257
+
258
+ .theme-doc-toc-desktop ::after {
259
+ content : "" ;
260
+ position : absolute;
261
+ bottom : 0 ;
262
+ left : 0 ;
263
+ width : 100% ;
264
+ height : 2.5ch ;
265
+ border-radius : 1rem ;
266
+ background : linear-gradient (0deg , var (--ifm-toc-background-color ) 0% , transparent);
267
+ pointer-events : none;
268
+ }
269
+
270
+ .table-of-contents__link : hover ,
271
+ .table-of-contents__link : hover code ,
272
+ .table-of-contents__link--active ,
273
+ .table-of-contents__link--active code {
274
+ color : var (--ifm-color-primary );
275
+ text-decoration : none;
242
276
}
243
277
244
278
/* Footer */
@@ -249,6 +283,18 @@ pre code {
249
283
padding-inline : 0.5rem ;
250
284
}
251
285
286
+ a .footer__link-item : after {
287
+ content : "↗" ;
288
+ font-size : 0.9em ;
289
+ display : inline-block;
290
+ vertical-align : top;
291
+ padding-inline-start : 0.2em ;
292
+ padding-block-start : 0.2 ;
293
+ }
294
+ a .footer__link-item > svg {
295
+ display : none;
296
+ }
297
+
252
298
.footer .container {
253
299
max-width : 100% ;
254
300
}
0 commit comments