@@ -31,71 +31,23 @@ dl.citation > dt {
31
31
outline : 2px solid var (--pst-color-link-hover );
32
32
}
33
33
34
- /* Make the readthedocs-sphinx-search popup adapt to the theme */
35
- /*backdrop*/
36
- html [data-theme ] .search__backdrop {
37
- z-index : 1020 ;
38
- backdrop-filter : saturate (150% ) blur (20px );
39
- }
40
- /*container*/
41
- html [data-theme ] : is (.search__outer , .rtd__search__credits ) {
42
- font-family : var (--pst-font-family-base );
43
- color : var (--pst-color-text-base );
44
- background-color : var (--pst-color-background );
45
- border-color : var (--pst-color-border );
46
- }
47
- html [data-theme ] .search__outer {
48
- border-top-left-radius : var (--bs-border-radius );
49
- border-top-right-radius : var (--bs-border-radius );
50
- }
51
- html [data-theme ] .rtd__search__credits {
52
- border-bottom-left-radius : var (--bs-border-radius );
53
- border-bottom-right-radius : var (--bs-border-radius );
54
- }
55
- html [data-theme ] .rtd__search__credits a {
56
- color : var (--pst-color-link );
57
- }
58
- /*icons*/
59
- html [data-theme ] .search__outer ::before {
60
- /* this can’t be put on .search__outer__input, as <input/> supports no ::before */
61
- position : absolute;
62
- padding : 0.4em 0.3em ;
63
- content : "\f002" ; /* fa-magnifying-glass */
64
- font : var (--fa-font-solid );
65
- color : var (--pst-color-text-muted );
66
- }
67
- html [data-theme ] .search__cross__img polygon {
68
- fill : currentcolor;
69
- }
70
- /*input*/
71
- html [data-theme ] .search__outer__input {
72
- color : var (--pst-color-text-base );
73
- background-image : none; /* hide the default search icon */
74
- background-color : transparent;
75
- border-bottom-color : var (--pst-color-border );
76
- }
77
- html [data-theme ] .search__outer .bar ::before ,
78
- html [data-theme ] .search__outer .bar ::after {
79
- background-color : var (--pst-color-accent );
80
- }
81
- /*results*/
82
- html [data-theme ] : is (.search__result__subheading span , .search__result__single ) {
83
- border-bottom-color : var (--pst-color-border );
84
- }
85
- html [data-theme ] .search__result__single : last-of-type {
86
- border-bottom-width : 0 ;
87
- }
88
- html [data-theme ] : is (.outer_div_page_results : hover , .search__result__box .active ) {
89
- background-color : var (--pst-color-accent-bg );
90
- }
91
- html [data-theme ]
92
- : is (.search__error__box , .search__result__subheading , .search__result__content ) {
93
- color : var (--pst-color-text-base );
94
- }
95
- html [data-theme ]
96
- .search__outer
97
- : is (.search__result__content , .search__result__title )
98
- span {
99
- border-bottom-color : var (--pst-color-border );
100
- background-color : var (--pst-color-target );
34
+ /* Make the readthedocs search popup adapt to the theme.
35
+ * Might break again soon: https://github.com/readthedocs/addons/issues/570
36
+ */
37
+ : root {
38
+ --readthedocs-search-backdrop-color : var (--pst-color-shadow );
39
+ --readthedocs-search-color : var (--pst-color-text-base );
40
+ --readthedocs-search-content-background-color : var (--pst-color-background );
41
+ --readthedocs-search-content-border-color : var (--pst-color-border );
42
+ --readthedocs-search-filters-border-color : var (--pst-color-border );
43
+ --readthedocs-search-font-family : var (--pst-font-family-base );
44
+ --readthedocs-search-font-size : var (--pst-font-size-base );
45
+ --readthedocs-search-footer-background-color : var (--pst-color-on-background );
46
+ --readthedocs-search-footer-code-background-color : var (--pst-color-surface );
47
+ --readthedocs-search-footer-code-border-color : var (--pst-color-border );
48
+ --readthedocs-search-input-background-color : var (--pst-color-surface );
49
+ --readthedocs-search-result-section-border-color : var (--pst-color-border );
50
+ --readthedocs-search-result-section-color : var (--pst-color-link );
51
+ --readthedocs-search-result-section-highlight-color : var (--pst-color-accent );
52
+ --readthedocs-search-result-section-subheading-color : var (--pst-color-text-muted );
101
53
}
0 commit comments