7
7
* visual identity. Many colors are also overridden to use CSS variables.
8
8
*/
9
9
10
+ : root {
11
+ /* Use system font stacks for better performance (no Web fonts required) */
12
+ --system-font-family : system-ui, -apple-system, "Segoe UI" , Roboto, "Helvetica Neue" , Arial, "Noto Sans" , sans-serif, "Apple Color Emoji" , "Segoe UI Emoji" , "Segoe UI Symbol" , "Noto Color Emoji" ;
13
+ --header-font-family : Seravek, 'Gill Sans Nova' , Ubuntu, Calibri, 'DejaVu Sans' , source-sans-pro, sans-serif;
14
+ }
15
+
10
16
body ,
11
17
h1 ,
12
18
h2 ,
@@ -23,8 +29,7 @@ legend,
23
29
.btn ,
24
30
.rst-content .toctree-wrapper p .caption ,
25
31
.rst-versions {
26
- /* Use a system font stack for better performance (no Web fonts required) */
27
- font-family : system-ui, -apple-system, "Segoe UI" , Roboto, "Helvetica Neue" , Arial, "Noto Sans" , sans-serif, "Apple Color Emoji" , "Segoe UI Emoji" , "Segoe UI Symbol" , "Noto Color Emoji" ;
32
+ font-family : var (--system-font-family );
28
33
}
29
34
30
35
h1 ,
35
40
h6 ,
36
41
legend ,
37
42
.rst-content .toctree-wrapper p .caption {
38
- /* Use a lighter font for headers (Medium instead of Bold) */
39
- font-weight : 500 ;
43
+ /* Use a lighter font for headers (Semi-Bold instead of Bold) */
44
+ font-weight : 600 ;
45
+ font-family : var (--header-font-family );
40
46
}
41
47
42
48
.rst-content div .figure p .caption {
@@ -497,6 +503,58 @@ kbd, .kbd,
497
503
border-color : var (--guiitems-border-color );
498
504
}
499
505
506
+ /* heading tweaks to make document hierarchy easier to grasp */
507
+
508
+ .rst-content section > h1 {
509
+ font-weight : 700 ;
510
+ margin-bottom : 2.5rem ;
511
+ position : relative;
512
+ line-height : 1 ;
513
+ z-index : 1 ;
514
+ }
515
+
516
+ .rst-content section > h1 ::before {
517
+ content : '' ;
518
+ position : absolute;
519
+ z-index : -1 ;
520
+ left : 0 ;
521
+ right : 0 ;
522
+ height : 4px ;
523
+ bottom : -1px ;
524
+ background : linear-gradient (to right, var (--admonition-note-title-background-color ), var (--admonition-note-title-background-color ) 50% , var (--admonition-note-background-color ) 80% , transparent); /* Example gradient */
525
+ opacity : 50% ;
526
+ }
527
+
528
+ .rst-content section > h2 ,
529
+ .rst-content section > h3 ,
530
+ .rst-content section > h4 ,
531
+ .rst-content section > h5 {
532
+ font-weight : 500 ;
533
+ padding-inline-start : 8px ;
534
+ margin-inline-start : 0px ;
535
+ border-inline-start : 8px solid;
536
+ padding-top : 0.2em ;
537
+ padding-bottom : 0.2em ;
538
+ }
539
+
540
+ .rst-content section > h2 {
541
+ border-color : var (--admonition-note-title-background-color );
542
+ }
543
+
544
+ .rst-content section > h3 {
545
+ border-color : var (--admonition-note-background-color );
546
+ }
547
+
548
+ .rst-content section > h4 {
549
+ border-color : transparent;
550
+ font-weight : 400 ;
551
+ }
552
+
553
+ .rst-content section > h5 {
554
+ border-color : transparent;
555
+ font-weight : 100 ;
556
+ }
557
+
500
558
/* Buttons */
501
559
502
560
.btn-neutral {
0 commit comments