@@ -132,6 +132,17 @@ html[data-theme="dark"] {
132132 margin-top : 1.25rem ;
133133}
134134
135+ /* Remove vertical line from right sidebar */
136+ .bd-sidebar-secondary .toc-entry ,
137+ .bd-sidebar-secondary nav .page-toc {
138+ border-left : none;
139+ }
140+
141+ /* Fixed position for right sidebar */
142+ .bd-sidebar-secondary {
143+ min-width : 200px ;
144+ }
145+
135146.pst-page-navigation-heading {
136147 margin-bottom : 0.5rem ;
137148}
@@ -930,14 +941,43 @@ hr {
930941}
931942
932943/* ============================================
933- Section Headers - Clean without decorative underlines
944+ Section Headers - Subtle styling
934945 ============================================ */
935- h2 {
946+
947+ /* Page titles (h1 from ===) - subtle background highlight */
948+ /* Exclude home page by targeting pages with h1 that aren't in the hero */
949+ article h1 : not (.hero-title ) {
950+ background-color : rgba (93 , 93 , 122 , 0.2 );
951+ padding : 0.5rem 0.75rem ;
952+ border-radius : 4px ;
953+ width : fit-content;
954+ }
955+
956+ /* Home page h1s get h2 styling (underline, not background) */
957+ /* Target pages that contain .hero-section */
958+ article : has (.hero-section ) h1 {
959+ background-color : transparent;
960+ padding : 0 ;
961+ border-radius : 0 ;
962+ width : auto;
963+ padding-bottom : 0.4rem ;
964+ border-bottom : 1px solid var (--pst-color-border );
965+ }
966+
967+ /* Remove headerlink from affecting h1 width */
968+ article h1 a .headerlink {
969+ position : absolute;
970+ margin-left : 0.5rem ;
971+ }
972+
973+ /* Section titles (h2 from ---) - subtle underline */
974+ article h2 {
936975 position : relative;
937- padding-bottom : 0 ;
976+ padding-bottom : 0.4rem ;
977+ border-bottom : 1px solid var (--pst-color-border );
938978}
939979
940- /* Remove the short underline pseudo-element */
980+ /* Remove any pseudo-element underlines */
941981h2 ::after {
942982 display : none;
943983}
0 commit comments