updated currency toggle css

This commit is contained in:
Kadir Sekha 2017-12-28 13:55:35 +00:00
commit 12cde9e670
2 changed files with 14 additions and 2 deletions

View file

@ -189,6 +189,18 @@
height: 30px;
}
}
&__currency-toggle-mobile {
border: 1px solid $v-subtle-gray;
color: $v-dark-gray;
border-radius: 3px;
cursor: pointer;
position: relative;
line-height: 1;
@media(max-width: 320px) {
line-height: 30px;
height: 30px;
}
}
&__results {
&--minimize {
font-size: 12px;

View file

@ -65,8 +65,8 @@
</div>
<div class="amount">
<span>
<input type="number" ng-model="amountModel.amount" ng-change="processAmount()" placeholder="Enter amount">
<a class="amount__currency-toggle" ng-click="changeUnit()">{{unit}}</a>
<input type="number" ng-model="amountModel.amount" ng-change="processAmount()" placeholder="Enter amount" focus-me>
<a class="amount__currency-toggle-mobile" ng-click="changeUnit()">{{unit}}</a>
</span>
<span ng-show="globalResult">{{globalResult}} {{unit}}</span>
<span>&asymp; {{alternativeAmount || '0.00'}} {{alternativeUnit}}</span>