File tree 2 files changed +17
-4
lines changed
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 47
47
& .search-results {
48
48
list-style-type : none ;
49
49
margin : 0 ;
50
- padding : 0.5rem 0.75 rem ;
50
+ padding : 0.5rem 0 ;
51
51
52
52
li a {
53
53
display : block ;
54
- padding : 0.3rem 0 ;
54
+ position : relative ;
55
+ padding : 0.3rem 5rem 0.3rem 0.75rem ;
56
+
57
+ & :hover {
58
+ background-color : #fafafa ;
59
+ }
55
60
}
56
61
57
62
.country {
63
+ background-color : #eee ;
64
+ border-radius : 5px ;
65
+ color : #000 ;
66
+ position : absolute ;
67
+ top : 5px ;
68
+ right : 0.75rem ;
69
+ font-size : 0.75rem ;
70
+ letter-spacing : 0.02rem ;
71
+ padding : .2rem .5rem ;
58
72
text-transform : capitalize ;
59
- font-style : italic ;
60
73
}
61
74
}
62
75
}
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ <h3 class="title is-4 mt-5">Rating definitions:</h3>
106
106
const match = whiskyName . slice ( matchIndex , matchIndex + query . length ) ;
107
107
const afterMatch = whiskyName . slice ( matchIndex + query . length ) ;
108
108
109
- link . innerHTML = `${ beforeMatch } <span class="highlight">${ match } </span>${ afterMatch } <span class="country">( ${ whisky . country } ) </span>` ;
109
+ link . innerHTML = `${ beforeMatch } <span class="highlight">${ match } </span>${ afterMatch } <span class="country">${ whisky . country } </span>` ;
110
110
} else {
111
111
link . textContent = whiskyName ;
112
112
}
You can’t perform that action at this time.
0 commit comments