Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b033bfc

Browse files
committedJan 17, 2021
Improve hover action
1 parent 9aec6be commit b033bfc

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed
 

‎src/index.less

+7-12
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
}
1313
}
1414

15-
.search-result-item() {
16-
&:hover {
17-
.search-result-button {
18-
text-decoration: underline;
19-
}
20-
}
21-
}
22-
2315
/* ------------------------------------------------------------------------- */
2416
/* -- Layout --------------------------------------------------------------- */
2517
/* ------------------------------------------------------------------------- */
@@ -148,6 +140,13 @@ header .navbar.navbar-static-top {
148140
}
149141
}
150142

143+
144+
.search-result-button {
145+
&:hover {
146+
text-decoration: underline;
147+
}
148+
}
149+
151150
& > .search-results {
152151
display: flex;
153152
flex-direction: row;
@@ -315,8 +314,6 @@ header .navbar.navbar-static-top {
315314
}
316315

317316
&.package {
318-
.search-result-item();
319-
320317
// short details of a pacakge
321318
& > :nth-child(3) {
322319
color: #666;
@@ -410,8 +407,6 @@ header .navbar.navbar-static-top {
410407
}
411408

412409
&.option {
413-
.search-result-item();
414-
415410
// short details of a pacakge
416411
& > :nth-child(3) {
417412
margin-top: 1em;

0 commit comments

Comments
 (0)
Please sign in to comment.