From d05b2f536d6c18025eaa11b78f0916d407da0846 Mon Sep 17 00:00:00 2001 From: Meskat Date: Tue, 30 Apr 2019 12:14:17 +0200 Subject: [PATCH] PAN-290: Responsiveness and switching to mixin based style architecture + minor improvements (#646) - Bemize and fix styles for targeting select component - Remove space between currency symbol and value - When your wallet is equal 0 there should be only 2 decimal values --- ...rgeting-custom-option-input.component.scss | 10 ++- .../targeting-select.component.html | 78 ++++------------- .../targeting-select.component.scss | 86 +++++++++---------- src/app/common/pipes/adshares-token.pipe.ts | 2 +- .../user-wallet/user-wallet.component.html | 7 +- .../user-wallet/user-wallet.component.scss | 4 +- src/styles/_mixins.scss | 10 +-- 7 files changed, 80 insertions(+), 117 deletions(-) diff --git a/src/app/common/components/targeting/targeting-custom-option-input/targeting-custom-option-input.component.scss b/src/app/common/components/targeting/targeting-custom-option-input/targeting-custom-option-input.component.scss index 84fd97a88..449146ccc 100644 --- a/src/app/common/components/targeting/targeting-custom-option-input/targeting-custom-option-input.component.scss +++ b/src/app/common/components/targeting/targeting-custom-option-input/targeting-custom-option-input.component.scss @@ -2,8 +2,15 @@ .targeting-custom-option { &__form { + @include container( + $border-color: pal(gray, light), + $padding-vertical: 8px, + $padding-horizontal: 8px, + $margin-top: 0 + ); + border-top-color: transparent; + cursor: pointer; width: 100%; - padding: 8px; &--input-hidden { display: flex; @@ -25,7 +32,6 @@ } &__btn { - margin-top: 8px; border: none; background: transparent; display: flex; diff --git a/src/app/common/components/targeting/targeting-select/targeting-select.component.html b/src/app/common/components/targeting/targeting-select/targeting-select.component.html index 478e1bb38..acd7cbd94 100644 --- a/src/app/common/components/targeting/targeting-select/targeting-select.component.html +++ b/src/app/common/components/targeting/targeting-select/targeting-select.component.html @@ -4,19 +4,13 @@ [(ngModel)]="searchTerm" (input)="onSearchTermChange()" title="Search for targeting option" - class=" - dwmth-form-input - dwmth-form-input--full" + class="targeting-select__input" data-test="common-targeting-select-search-input" > + class="targeting-select__search-icon">