@@ -427,6 +427,182 @@ dl.footnote > dd {
427427 padding-bottom : 2rem ;
428428 font-weight : bold;
429429}
430+ /* Pagefind search styling (custom, no default CSS) */
431+ .pagefind-ui {
432+ --pagefind-ui-primary : var (--colour-links );
433+ --pagefind-ui-text : var (--colour-text );
434+ --pagefind-ui-background : var (--colour-background );
435+ --pagefind-ui-border : var (--colour-background-accent-strong );
436+ font-family : inherit;
437+ width : 100% ;
438+ }
439+
440+ /* Search form */
441+ .pagefind-ui__form {
442+ position : relative;
443+ }
444+
445+ /* Search icon */
446+ .pagefind-ui__form ::before {
447+ background-color : var (--pagefind-ui-text );
448+ width : 14px ;
449+ height : 14px ;
450+ top : 8px ;
451+ left : 8px ;
452+ content : "" ;
453+ position : absolute;
454+ display : block;
455+ opacity : 0.5 ;
456+ -webkit-mask-image : url ("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.7549 11.255H11.9649L11.6849 10.985C12.6649 9.845 13.2549 8.365 13.2549 6.755C13.2549 3.165 10.3449 0.255005 6.75488 0.255005C3.16488 0.255005 0.254883 3.165 0.254883 6.755C0.254883 10.345 3.16488 13.255 6.75488 13.255C8.36488 13.255 9.84488 12.665 10.9849 11.685L11.2549 11.965V12.755L16.2549 17.745L17.7449 16.255L12.7549 11.255ZM6.75488 11.255C4.26488 11.255 2.25488 9.245 2.25488 6.755C2.25488 4.26501 4.26488 2.255 6.75488 2.255C9.24488 2.255 11.2549 4.26501 11.2549 6.755C11.2549 9.245 9.24488 11.255 6.75488 11.255Z' fill='%23000000'/%3E%3C/svg%3E%0A" );
457+ mask-image : url ("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.7549 11.255H11.9649L11.6849 10.985C12.6649 9.845 13.2549 8.365 13.2549 6.755C13.2549 3.165 10.3449 0.255005 6.75488 0.255005C3.16488 0.255005 0.254883 3.165 0.254883 6.755C0.254883 10.345 3.16488 13.255 6.75488 13.255C8.36488 13.255 9.84488 12.665 10.9849 11.685L11.2549 11.965V12.755L16.2549 17.745L17.7449 16.255L12.7549 11.255ZM6.75488 11.255C4.26488 11.255 2.25488 9.245 2.25488 6.755C2.25488 4.26501 4.26488 2.255 6.75488 2.255C9.24488 2.255 11.2549 4.26501 11.2549 6.755C11.2549 9.245 9.24488 11.255 6.75488 11.255Z' fill='%23000000'/%3E%3C/svg%3E%0A" );
458+ -webkit-mask-size : 100% ;
459+ mask-size : 100% ;
460+ z-index : 9 ;
461+ pointer-events : none;
462+ }
463+
464+ /* Search input */
465+ .pagefind-ui__search-input {
466+ height : 30px ;
467+ padding : 4px 28px 4px 28px ;
468+ background-color : var (--pagefind-ui-background );
469+ border : 1px solid var (--pagefind-ui-border );
470+ border-radius : 3px ;
471+ font-size : 0.875rem ;
472+ font-family : inherit;
473+ appearance : none;
474+ -webkit-appearance : none;
475+ width : 100% ;
476+ box-sizing : border-box;
477+ color : var (--pagefind-ui-text );
478+ }
479+ .pagefind-ui__search-input : focus {
480+ outline : none;
481+ border-color : var (--pagefind-ui-primary );
482+ }
483+ .pagefind-ui__search-input ::placeholder {
484+ color : var (--pagefind-ui-text );
485+ opacity : 0.5 ;
486+ }
487+
488+ /* Clear button - fixed position relative to input (30px height, center button) */
489+ .pagefind-ui__search-clear {
490+ position : absolute;
491+ top : 5px ;
492+ right : 4px ;
493+ padding : 2px 6px ;
494+ color : var (--pagefind-ui-text );
495+ font-size : 0.75rem ;
496+ cursor : pointer;
497+ background-color : var (--pagefind-ui-background );
498+ border : none;
499+ opacity : 0.6 ;
500+ }
501+ .pagefind-ui__search-clear : hover {
502+ opacity : 1 ;
503+ }
504+
505+ /* Results container */
506+ .pagefind-ui__results-area {
507+ margin-top : 0.5rem ;
508+ }
509+
510+ /* Results list */
511+ # pep-sidebar .pagefind-ui__results {
512+ list-style : none;
513+ padding : 0 ;
514+ margin : 0 ;
515+ }
516+
517+ /* Individual result */
518+ .pagefind-ui__result {
519+ padding : 0.5rem 0 0.5rem 0.5rem ;
520+ border-bottom : 1px solid var (--colour-rule-light );
521+ }
522+ .pagefind-ui__result : last-child {
523+ border-bottom : none;
524+ }
525+
526+ /* Result link */
527+ .pagefind-ui__result-link {
528+ font-weight : bold;
529+ font-size : 0.9rem ;
530+ text-decoration : none;
531+ color : var (--colour-links );
532+ }
533+ .pagefind-ui__result-link : hover {
534+ text-decoration : underline;
535+ }
536+
537+ /* Result title */
538+ .pagefind-ui__result-title {
539+ margin : 0 ;
540+ }
541+
542+ /* Result excerpt/snippet */
543+ .pagefind-ui__result-excerpt {
544+ font-size : 0.8rem ;
545+ color : var (--colour-text );
546+ margin : 0.25rem 0 0 ;
547+ line-height : 1.4 ;
548+ }
549+
550+ /* Highlight matches in results */
551+ .pagefind-ui__result-excerpt mark ,
552+ mark .pagefind-ui__highlight {
553+ background-color : var (--colour-caution );
554+ color : inherit;
555+ padding : 0 2px ;
556+ }
557+
558+ /* Message when no results */
559+ .pagefind-ui__message {
560+ font-size : 0.85rem ;
561+ color : var (--colour-text );
562+ padding : 0.5rem 0 ;
563+ }
564+
565+ /* Loading state */
566+ .pagefind-ui__loading {
567+ font-size : 0.85rem ;
568+ color : var (--colour-text );
569+ opacity : 0.7 ;
570+ }
571+
572+ /* Sub-results (nested) */
573+ .pagefind-ui__result-nested {
574+ margin-left : 1rem ;
575+ padding : 0.25rem 0 ;
576+ }
577+ .pagefind-ui__result-nested .pagefind-ui__result-link {
578+ font-weight : normal;
579+ font-size : 0.85rem ;
580+ }
581+
582+ /* Button styling */
583+ .pagefind-ui__button {
584+ background : var (--colour-background-accent-light );
585+ border : 1px solid var (--colour-background-accent-strong );
586+ padding : 0.4rem 0.8rem ;
587+ border-radius : 4px ;
588+ cursor : pointer;
589+ font-size : 0.85rem ;
590+ color : var (--colour-text );
591+ margin-top : 0.5rem ;
592+ }
593+ .pagefind-ui__button : hover {
594+ background : var (--colour-background-accent-medium );
595+ }
596+
597+ /* Drawer (expandable results container) */
598+ .pagefind-ui__drawer {
599+ overflow : hidden;
600+ }
601+
602+ /* Suppress unused pagefind elements */
603+ .pagefind-ui__suppressed {
604+ display : none;
605+ }
430606
431607.reference .external > strong {
432608 font-weight : normal; /* Fix strong links for :pep: and :rfc: roles */
0 commit comments