@@ -520,3 +520,56 @@ body {
520520 height : 100% ;
521521 border : 0 ;
522522}
523+
524+ /* AsciiDoc section anchors: visible chain icon on hover, like the default
525+ Asciidoctor stylesheet. Asciidoctor renders <a class="anchor" href="#id">
526+ before each heading when sectanchors:true is set in render-docs.js. */
527+ .asciidoc-content h1 ,
528+ .asciidoc-content h2 ,
529+ .asciidoc-content h3 ,
530+ .asciidoc-content h4 ,
531+ .asciidoc-content h5 ,
532+ .asciidoc-content h6 {
533+ position : relative;
534+ scroll-margin-top : 5rem ;
535+ }
536+
537+ .asciidoc-content h1 > a .anchor ,
538+ .asciidoc-content h2 > a .anchor ,
539+ .asciidoc-content h3 > a .anchor ,
540+ .asciidoc-content h4 > a .anchor ,
541+ .asciidoc-content h5 > a .anchor ,
542+ .asciidoc-content h6 > a .anchor {
543+ position : absolute;
544+ left : -1.25rem ;
545+ top : 0 ;
546+ bottom : 0 ;
547+ display : flex;
548+ align-items : center;
549+ width : 1.25rem ;
550+ opacity : 0 ;
551+ text-decoration : none;
552+ color : var (--color-text-secondary , # 6b7280 );
553+ transition : opacity 0.15s ease-in-out;
554+ }
555+
556+ .asciidoc-content h1 : hover > a .anchor ,
557+ .asciidoc-content h2 : hover > a .anchor ,
558+ .asciidoc-content h3 : hover > a .anchor ,
559+ .asciidoc-content h4 : hover > a .anchor ,
560+ .asciidoc-content h5 : hover > a .anchor ,
561+ .asciidoc-content h6 : hover > a .anchor ,
562+ .asciidoc-content a .anchor : focus {
563+ opacity : 1 ;
564+ }
565+
566+ .asciidoc-content a .anchor ::before {
567+ content : '\00a7' ; /* § — same convention as the default Asciidoctor stylesheet */
568+ font-size : 0.85em ;
569+ font-weight : normal;
570+ }
571+
572+ .asciidoc-content a .anchor : hover {
573+ color : var (--color-link , # 2563eb );
574+ text-decoration : none;
575+ }
0 commit comments