Eugenio Romano 2036e026f3
[no-issue] remove annoying dot at the end of search animation (#4226)
* remove annoying dot at the end of animation

* bypass protractor for click search bar
2019-02-01 13:19:56 +00:00

74 lines
2.0 KiB
SCSS

@mixin adf-search-control-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$mat-menu-border-radius: 2px !default;
$mat-menu-overlay-min-width: 112px !default; // 56 * 2
$mat-menu-overlay-max-width: 280px !default; // 56 * 5
.adf-search-container {
overflow: hidden !important;
}
.adf-search-button {
left: -13px;
}
.adf {
&-search-fixed-text {
line-height: normal;
}
&-input-form-field-divider {
.mat-form-field-underline {
background-color: mat-color($primary, 50);
.mat-form-field-ripple {
background-color: mat-color($primary, 50);
}
}
font-size: 16px;
}
&-search-result-autocomplete {
@include mat-overridable-elevation(2);
min-width: $mat-menu-overlay-min-width;
max-width: $mat-menu-overlay-max-width;
overflow: auto;
-webkit-overflow-scrolling: touch;
transform-origin: top left;
transform:translateX(-40px);
position: absolute;
max-height: 400px;
margin-left: 45px;
margin-top: -22px;
font-size: 15px;
z-index: 5;
color: mat-color($foreground, text);
background-color: mat-color($background, card);
border-radius: $mat-menu-border-radius;
@media screen and ($mat-small) {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
&-search-autocomplete-item {
&:hover {
background-color: mat-color($background, 'hover');
opacity: 1;
}
}
}
.adf-highlight {
color: mat-color($primary, 900);
}
}