1
+ /* Static Search Results Container */
1
2
.static-search-results {
2
3
display : flex ;
3
4
flex-direction : column ;
4
5
align-content : stretch ;
5
6
justify-content : flex-start ;
6
7
position : absolute ;
7
8
background-color : var (--ast-search-bar-enable-background );
8
- width : 630 px ;
9
+ width : 39.375 rem ; /* 630px */
9
10
padding : 1em ;
10
11
border : 1px solid var (--ast-search-bar-enable-border );
11
12
box-shadow : var (--ast-box-shadow-active );
12
13
overflow : auto ;
13
- max-height : 500 px ;
14
+ max-height : 31.25 rem ; /* 500px */
14
15
}
15
16
17
+ /* Individual Result Item */
16
18
.result-item {
17
19
cursor : pointer ;
18
20
transition : box-shadow 0.3s ease ;
19
21
border-bottom : thin solid var (--ast-search-bar-enable-border );
20
22
padding-bottom : 0.5em ;
21
23
margin-bottom : 0.5em ;
22
- }
23
24
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
+ }
27
33
}
28
34
35
+ /* Result Title */
29
36
.result-title {
30
37
font-size : 1em ;
31
38
font-weight : var (--ast-font-weight-bold );
32
39
font-family : " Open Sans" , sans-serif ;
33
40
color : var (--ast-catagory-header-text );
34
41
}
35
42
43
+ /* Result Text */
36
44
.result-text {
37
- font-size : 12 px ;
45
+ font-size : 0.75 rem ; /* 12px */
38
46
font-family : " Open Sans" , sans-serif ;
39
47
color : var (--ast-search-bar-enable-text );
40
48
}
41
49
42
- .result-item .selected {
43
- box-shadow : var (--ast-ring-shadow-focused );
44
- }
45
-
50
+ /* Highlighted Text */
46
51
html [data-theme = " light" ] .highlight {
47
52
color : var (--ast-highlight-color );
48
53
}
49
54
55
+ /* Search Input Styles */
50
56
.bd-search input .form-control ,
51
57
.bd-search input .form-control :focus ,
52
58
.bd-search input .form-control :focus-visible ,
@@ -55,98 +61,108 @@ html[data-theme="light"] .highlight {
55
61
.form-control {
56
62
background-color : var (--ast-search-bar-enable-background );
57
63
color : var (--ast-search-bar-enable-text );
58
- font-size : 14 px ;
64
+ font-size : 0.875 rem ; /* 14px */
59
65
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 */
62
68
transition : max-width 0.3s ease ;
63
69
max-width : 200% ;
64
- height : 40 px ;
70
+ height : 2.5 rem ; /* 40px */
65
71
}
66
72
73
+ /* Search Button Wrapper */
67
74
.search-button__wrapper.show input ,
68
75
.search-button__wrapper.show svg {
69
- font-size : 14 px ;
76
+ font-size : 0.875 rem ; /* 14px */
70
77
}
71
78
79
+ /* Search Button Keyboard Shortcut */
72
80
.bd-search .search-button__kbd-shortcut {
73
81
background-color : var (--ast-search-bar-enable-background ) !important ;
74
82
box-shadow : none !important ;
75
- height : 36 px ;
83
+ height : 2.25 rem ; /* 36px */
76
84
display : flex ;
77
85
flex-wrap : wrap ;
78
86
align-content : center ;
79
87
}
80
88
89
+ /* Index Select Dropdown */
81
90
.index-select {
82
91
color : var (--ast-search-bar-enable-text );
83
92
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 */
86
95
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 */
89
98
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 */
92
101
}
102
+
103
+ /* Focus Visible Outline */
93
104
:focus-visible {
94
105
outline : none ;
95
106
}
96
107
108
+ /* Search Icon */
97
109
#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 */
101
113
color : var (--ast-search-bar-enable-text );
102
114
}
103
115
116
+ /* Form Control Focus Styles */
104
117
.form-control :focus ,
105
118
.bd-search :focus-within {
106
119
box-shadow : none ;
107
120
}
108
121
109
- /* Button Styling */
122
+ /* Search Button Styling */
110
123
.search-button__button {
111
124
transition : width 0.3s ease ;
112
- width : 50 px ; /* Initial width */
125
+ width : 3.125 rem ; /* 50px */
113
126
}
114
127
115
128
/* Result Container Styling */
116
129
.bd-search {
117
- gap : 8 px ;
130
+ gap : 0.5 rem ; /* 8px */
118
131
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 ;
122
134
123
- .bd-search input .form-control .expanded {
124
- width : 600px ;
135
+ input .form-control.expanded {
136
+ width : 37.5rem ; /* 600px */
137
+ }
125
138
}
126
139
140
+ /* Search Icon Styling */
127
141
.search-icon {
128
142
cursor : pointer ;
129
143
}
130
144
145
+ /* Blurred Main Content */
131
146
.bd-main.blurred {
132
147
opacity : 0.5 ;
133
148
transition : opacity 0.3s ease ;
134
149
}
135
150
136
- @media (max-width : 768px ) {
151
+ /* Responsive Styles */
152
+ @media (max-width : 48rem ) { /* 768px */
137
153
.bd-search input .expanded {
138
- width : 100 px ;
154
+ width : 6.25 rem ; /* 100px */
139
155
}
140
156
141
157
.form-control {
142
- width : 50 px ;
158
+ width : 3.125 rem ; /* 50px */
143
159
}
144
160
145
161
.result {
146
- width : 100 px ;
162
+ width : 6.25 rem ; /* 100px */
147
163
}
148
164
149
165
.bd-search .search-button__kbd-shortcut {
150
166
display : none ;
151
167
}
152
- }
168
+ }
0 commit comments