Skip to content

Commit 3e696e4

Browse files
committed
Scope dropdown-item styles to search components
Former-commit-id: 5712bc9
1 parent a2c0c45 commit 3e696e4

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

src/styles/_dark.scss

+16-14
Original file line numberDiff line numberDiff line change
@@ -185,21 +185,23 @@ html.dark {
185185
.quick-search-container {
186186
background: $gray-900;
187187
border-top-color: $gray-700;
188+
189+
//highlight
190+
.dropdown-item.arrow-focus {
191+
background-color: rgba($orange,.1);
192+
}
193+
//dropdown item
194+
.dropdown-item,
195+
.search-prompt {
196+
color: $light;
197+
}
198+
.dropdown-item:hover,
199+
.dropdown-item:active {
200+
background-color: $gray-800;
201+
color: $light !important;
202+
}
188203
}
189-
//highlight
190-
.dropdown-item.arrow-focus {
191-
background-color: rgba($orange,.1);
192-
}
193-
//dropdown item
194-
.dropdown-item,
195-
.search-prompt {
196-
color: $light;
197-
}
198-
.dropdown-item:hover,
199-
.dropdown-item:active {
200-
background-color: $gray-800;
201-
color: $light !important;
202-
}
204+
203205
//Marks
204206
.search-content mark {
205207
color: rgba($orange, .5);

src/styles/_search.scss

+11-9
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,18 @@
6161
box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.15);
6262
}
6363

64-
.dropdown-item {
65-
font-size: 1.3rem;
66-
}
64+
.search-pane {
65+
.dropdown-item {
66+
font-size: 1.3rem;
67+
}
6768

68-
.dropdown-item.arrow-focus {
69-
background-color: $gray-100;
70-
}
69+
.dropdown-item.arrow-focus {
70+
background-color: $gray-100;
71+
}
7172

72-
.dropdown-item:hover {
73-
background: $gray-100;
73+
.dropdown-item:hover {
74+
background: $gray-100;
75+
}
7476
}
7577

7678
.search-text-summary {
@@ -90,4 +92,4 @@
9092
.ais-Highlight {
9193
font-size: 1.1rem;
9294
font-weight: 500;
93-
}
95+
}

0 commit comments

Comments
 (0)