added button to launch search

This commit is contained in:
Nicolas Constant 2018-11-02 23:54:19 -04:00
parent bb62c8262b
commit db0debb359
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 33 additions and 2 deletions

View File

@ -1,9 +1,10 @@
<div class="panel"> <div class="panel">
<h3 class="panel__title">search</h3> <h3 class="panel__title">search</h3>
<form (ngSubmit)="onSubmit()"> <form class="form-section" (ngSubmit)="onSubmit()">
<input type="text" class="form-control form-control-sm" [(ngModel)]="searchHandle" name="searchHandle" <input type="text" class="form-control form-control-sm form-with-button" [(ngModel)]="searchHandle" name="searchHandle"
placeholder="Search" autocomplete="off" /> placeholder="Search" autocomplete="off" />
<button class="form-button" type="submit" title="search">GO</button>
</form> </form>
<app-waiting-animation *ngIf="isLoading" class="waiting-icon"></app-waiting-animation> <app-waiting-animation *ngIf="isLoading" class="waiting-icon"></app-waiting-animation>

View File

@ -4,6 +4,36 @@
@import "commons"; @import "commons";
$separator-color:$color-primary; $separator-color:$color-primary;
$button-size: 30px;
.form-section {
overflow: auto;
width: 100%;
}
.form-with-button {
width: calc(100% - #{$button-size});
float: left;
}
.form-button {
width: $button-size;
height: 29px;
border: none;
outline: none;
cursor: pointer;
background-color: $color-primary;
color: darken(white, 30);
// font-weight: bold;
transition: all .2s;
&:hover {
background-color: lighten($color-primary, 20);
color: white;
// transform: scale(1.2);
}
}
.search-results { .search-results {
// outline: 1px solid greenyellow; // outline: 1px solid greenyellow;