Improve styling of search component
This commit is contained in:
parent
6342e48742
commit
a0548c0e01
|
@ -4,7 +4,7 @@
|
|||
<div class="dropdown-menu" [class.show]="open">
|
||||
<span *ngIf="hintText()" class="dropdown-item font-italic">{{ hintText() }}
|
||||
</span>
|
||||
<span *ngFor="let result of searchResults; let i=index" class="dropdown-item cursor-pointer" [class.active]="i === 0"
|
||||
<span *ngFor="let result of searchResults; let i=index" class="dropdown-item cursor-pointer" [class.dropdown-item-hover]="i === 0"
|
||||
(click)="onClick(result.id)">{{ result.text }}</span>
|
||||
</div>
|
||||
</div>
|
|
@ -27,6 +27,10 @@ $sizes: (
|
|||
|
||||
@import '~bootstrap/scss/bootstrap.scss';
|
||||
|
||||
.dropdown-item-hover {
|
||||
@extend .dropdown-item:hover;
|
||||
}
|
||||
|
||||
/* Add font awesome */
|
||||
$fa-font-path: "~font-awesome/fonts";
|
||||
@import '~font-awesome/scss/font-awesome';
|
||||
|
|
Loading…
Reference in a new issue