[ADF-1611] Demo shell responsiveness (#2426)

* Reapplying the unreappliable

* Fix buggy search button

* Fix settings

* Last bit of responsive stylings
This commit is contained in:
Popovics András
2017-10-04 17:54:18 +01:00
committed by Eugenio Romano
parent b2452f6097
commit cc1efc9cd6
24 changed files with 464 additions and 452 deletions

View File

@@ -1,7 +1,7 @@
<form #f="ngForm" (ngSubmit)="onSearch(f.value)" class="adf-search-form">
<div class="adf-search-container"
[@transitionMessages]="subscriptAnimationState">
<a md-button
<a md-icon-button
*ngIf="expandable"
id="adf-search-button"
(click)="toggleSearchBar()"

View File

@@ -1,19 +1,11 @@
@mixin mat-search-control-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
.adf {
&-search-button.mat-button {
margin-right: 10px;
border-radius: 50%;
height: 32px;
width: 32px;
min-width: 20px;
padding: 0;
overflow: hidden;
color: inherit;
line-height: normal;
border: none;
&-search-button.mat-icon-button {
margin-right: 5px;
}
&-search-container {

View File

@@ -29,7 +29,7 @@ import { SearchAutocompleteComponent } from './search-autocomplete.component';
animations: [
trigger('transitionMessages', [
state('active', style({transform: 'translateX(0%)'})),
state('inactive', style({transform: 'translateX(86%)'})),
state('inactive', style({transform: 'translateX(83%)'})),
state('no-animation', style({transform: 'translateX(0%)', width: '100%'})),
transition('inactive => active',
animate('300ms cubic-bezier(0.55, 0, 0.55, 0.2)')),