Skip to content

Commit e7f8f3e

Browse files
css updates
center dropdown, better scrollbar search page margins normalized
1 parent 1fd9d34 commit e7f8f3e

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

frontend/src/styles/search/search.scss

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
.search-dropdown {
5151
position: absolute;
5252
top: 100%;
53-
left: 0;
53+
left: 50%;
54+
transform: translateX(-50%);
5455
width: 350px;
55-
max-height: 400px;
56+
max-height: 600px;
5657
overflow-y: auto;
5758
background-color: var(--background-color);
5859
border: 1px solid var(--input-border-color);
@@ -63,6 +64,25 @@
6364
padding: 10px;
6465

6566
@include global.glassmorphic-background;
67+
68+
// Custom scrollbar styling
69+
&::-webkit-scrollbar {
70+
width: 8px;
71+
}
72+
73+
&::-webkit-scrollbar-track {
74+
background: rgba(0, 0, 0, 0.05);
75+
border-radius: 4px;
76+
}
77+
78+
&::-webkit-scrollbar-thumb {
79+
background: rgba(0, 0, 0, 0.2);
80+
border-radius: 4px;
81+
82+
&:hover {
83+
background: rgba(0, 0, 0, 0.3);
84+
}
85+
}
6686
}
6787

6888
.search-section {
@@ -127,10 +147,8 @@
127147
// Search Results Page
128148
.search-results-page {
129149
width: 100%;
130-
max-width: 1200px;
131150
margin: 0 auto;
132151
padding: 20px;
133-
padding-top: 80px;
134152
}
135153

136154
.search-results-title {

0 commit comments

Comments
 (0)