1+ /* Static Search Results Container */
12.static-search-results {
23 display : flex ;
34 flex-direction : column ;
45 align-content : stretch ;
56 justify-content : flex-start ;
67 position : absolute ;
78 background-color : var (--ast-search-bar-enable-background );
8- width : 630 px ;
9+ width : 39.375 rem ; /* 630px */
910 padding : 1em ;
1011 border : 1px solid var (--ast-search-bar-enable-border );
1112 box-shadow : var (--ast-box-shadow-active );
1213 overflow : auto ;
13- max-height : 500 px ;
14+ max-height : 31.25 rem ; /* 500px */
1415}
1516
17+ /* Individual Result Item */
1618.result-item {
1719 cursor : pointer ;
1820 transition : box-shadow 0.3s ease ;
1921 border-bottom : thin solid var (--ast-search-bar-enable-border );
2022 padding-bottom : 0.5em ;
2123 margin-bottom : 0.5em ;
22- }
2324
24- .result-item : last-child {
25- border-bottom : 0 ;
26- margin-bottom : 0 ;
25+ & :last-child {
26+ border-bottom : 0 ;
27+ margin-bottom : 0 ;
28+ }
29+
30+ & .selected {
31+ box-shadow : var (--ast-ring-shadow-focused );
32+ }
2733}
2834
35+ /* Result Title */
2936.result-title {
3037 font-size : 1em ;
3138 font-weight : var (--ast-font-weight-bold );
3239 font-family : " Open Sans" , sans-serif ;
3340 color : var (--ast-catagory-header-text );
3441}
3542
43+ /* Result Text */
3644.result-text {
37- font-size : 12 px ;
45+ font-size : 0.75 rem ; /* 12px */
3846 font-family : " Open Sans" , sans-serif ;
3947 color : var (--ast-search-bar-enable-text );
4048}
4149
42- .result-item .selected {
43- box-shadow : var (--ast-ring-shadow-focused );
44- }
45-
50+ /* Highlighted Text */
4651html [data-theme = " light" ] .highlight {
4752 color : var (--ast-highlight-color );
4853}
4954
55+ /* Search Input Styles */
5056.bd-search input .form-control ,
5157.bd-search input .form-control :focus ,
5258.bd-search input .form-control :focus-visible ,
@@ -55,98 +61,108 @@ html[data-theme="light"] .highlight {
5561.form-control {
5662 background-color : var (--ast-search-bar-enable-background );
5763 color : var (--ast-search-bar-enable-text );
58- font-size : 14 px ;
64+ font-size : 0.875 rem ; /* 14px */
5965 outline-color : var (--ast-search-bar-enable-border );
60- border : 0 px solid var ( --ast-search-bar-enable-border ) ;
61- width : 300 px ;
66+ border : 0 ;
67+ width : 18.75 rem ; /* 300px */
6268 transition : max-width 0.3s ease ;
6369 max-width : 200% ;
64- height : 40 px ;
70+ height : 2.5 rem ; /* 40px */
6571}
6672
73+ /* Search Button Wrapper */
6774.search-button__wrapper.show input ,
6875.search-button__wrapper.show svg {
69- font-size : 14 px ;
76+ font-size : 0.875 rem ; /* 14px */
7077}
7178
79+ /* Search Button Keyboard Shortcut */
7280.bd-search .search-button__kbd-shortcut {
7381 background-color : var (--ast-search-bar-enable-background ) !important ;
7482 box-shadow : none !important ;
75- height : 36 px ;
83+ height : 2.25 rem ; /* 36px */
7684 display : flex ;
7785 flex-wrap : wrap ;
7886 align-content : center ;
7987}
8088
89+ /* Index Select Dropdown */
8190.index-select {
8291 color : var (--ast-search-bar-enable-text );
8392 background : var (--ast-search-bar-enable-background );
84- height : 40 px ;
85- font-size : 14 px ;
93+ height : 2.5 rem ; /* 40px */
94+ font-size : 0.875 rem ; /* 14px */
8695 font-family : " Open Sans" , sans-serif ;
87- border : 0.5 px solid var (--ast-search-bar-enable-border );
88- border-radius : 4 px ;
96+ border : 0.03125 rem solid var (--ast-search-bar-enable-border ); /* 0.5px */
97+ border-radius : 0.25 rem ; /* 4px */
8998 box-shadow : none ;
90- padding : 0 px 8 px ;
91- margin-left : 2 px ;
99+ padding : 0 0.5 rem ; /* 0 8px */
100+ margin-left : 0.125 rem ; /* 2px */
92101}
102+
103+ /* Focus Visible Outline */
93104:focus-visible {
94105 outline : none ;
95106}
96107
108+ /* Search Icon */
97109#search-icon {
98- font-size : 24 px ;
99- width : 24 px ;
100- height : 24 px ;
110+ font-size : 1.5 rem ; /* 24px */
111+ width : 1.5 rem ; /* 24px */
112+ height : 1.5 rem ; /* 24px */
101113 color : var (--ast-search-bar-enable-text );
102114}
103115
116+ /* Form Control Focus Styles */
104117.form-control :focus ,
105118.bd-search :focus-within {
106119 box-shadow : none ;
107120}
108121
109- /* Button Styling */
122+ /* Search Button Styling */
110123.search-button__button {
111124 transition : width 0.3s ease ;
112- width : 50 px ; /* Initial width */
125+ width : 3.125 rem ; /* 50px */
113126}
114127
115128/* Result Container Styling */
116129.bd-search {
117- gap : 8 px ;
130+ gap : 0.5 rem ; /* 8px */
118131 background-color : var (--ast-search-bar-enable-background );
119- border : 0px solid var (--ast-search-bar-enable-border );
120- margin-bottom : 0px ;
121- }
132+ border : 0 solid var (--ast-search-bar-enable-border );
133+ margin-bottom : 0 ;
122134
123- .bd-search input .form-control .expanded {
124- width : 600px ;
135+ input .form-control.expanded {
136+ width : 37.5rem ; /* 600px */
137+ }
125138}
126139
140+ /* Search Icon Styling */
127141.search-icon {
128142 cursor : pointer ;
129143}
130144
145+ /* Blurred Main Content */
131146.bd-main.blurred {
132147 opacity : 0.5 ;
133148 transition : opacity 0.3s ease ;
134149}
135150
136- @media (max-width : 768px ) {
151+ /* Responsive Styles */
152+ @media (max-width : 48rem ) { /* 768px */
137153 .bd-search input .expanded {
138- width : 100 px ;
154+ width : 6.25 rem ; /* 100px */
139155 }
140156
141157 .form-control {
142- width : 50 px ;
158+ width : 3.125 rem ; /* 50px */
143159 }
144160
145161 .result {
146- width : 100 px ;
162+ width : 6.25 rem ; /* 100px */
147163 }
148164
149165 .bd-search .search-button__kbd-shortcut {
150166 display : none ;
151167 }
152- }
168+ }
0 commit comments