ux: minor search style improvements

This commit is contained in:
Torkel Ödegaard 2017-06-08 13:56:51 +02:00
parent 50b09f4f10
commit 95c8a76aa6
3 changed files with 22 additions and 6 deletions

View File

@ -8,7 +8,7 @@
<i class="fa fa-chevron-left"></i>
</a>
<a class="navbar-page-btn" ng-click="ctrl.showSearch()">
<a class="navbar-page-btn navbar-page-btn--search" ng-click="ctrl.showSearch()">
<i class="fa fa-search"></i>
</a>

View File

@ -137,6 +137,10 @@
max-width: 27px;
max-height: 27px;
}
&--search {
padding: 1rem 1.5rem 0.75rem 1.5rem;
}
}
.navbar-page-btn-wrapper {

View File

@ -13,8 +13,9 @@
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: ($zindex-modal-backdrop + 10);
position: absolute;
position: fixed;
.label-tag {
margin-left: 6px;
@ -46,6 +47,7 @@
.search-field-spacer {
flex-grow: 1;
}
.search-switches {
flex-grow: 1;
padding: 1rem 1rem 0.75rem 1rem;
@ -54,7 +56,7 @@
.search-field-icon {
font-size: $font-size-lg;
padding: 1rem 1rem 0.75rem 1rem;
padding: 1rem 1rem 0.75rem 1.5rem;
}
.search-dropdown {
@ -63,6 +65,7 @@
max-width: 1100px;
visibility: none;
opacity: 0;
height: 100%;
&--fade-in {
visibility: visible;
@ -72,7 +75,7 @@
}
.search-results-container {
height: 450px;
height: 90%;
overflow: auto;
display: block;
line-height: 28px;
@ -143,8 +146,10 @@
.search-button-row {
padding: $spacer*2;
display: flex;
flex-direction: column;
flex-direction: row;
align-items: flex-start;
justify-content: space-around;
height: 30%;
button, a {
margin-bottom: $spacer;
@ -164,10 +169,17 @@
}
}
@include media-breakpoint-up(md) {
@include media-breakpoint-up(lg) {
.search-dropdown {
flex-direction: row;
}
.search-button-row {
flex-direction: column;
justify-content: flex-start;
}
}
@include media-breakpoint-up(md) {
.search-container {
left: 78px;
}