side bar - wallet select

This commit is contained in:
bechi 2014-10-17 11:37:41 -03:00 committed by Matias Alejo Garcia
commit 8acb4d6676
2 changed files with 97 additions and 23 deletions

View file

@ -109,22 +109,28 @@ body, html{
}
header {
padding: 1rem;
padding: 0.7rem;
background-color: #1ABC9C;
}
header .wfooter {
font-size: 12px;
header:hover {
cursor: pointer;
background-color: #23C9A9;
}
header .creation {
color: white;
background: red;
font-weight: bold;
}
header .alt-currency {
padding: 0.05rem 0.2rem;
border-radius: 2px;
background: #16A085;
font-size: 10px;
}
.off-canvas-wrap, .inner-wrap{
height:100%;
}
@ -140,6 +146,25 @@ a {
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill, input:-webkit-autofill:focus, textarea:-webkit-autofill:focus, select:-webkit-autofill:focus {
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
ul.side-nav.wallets .avatar-wallet{
background-color: #7A8C9E;
color: #213140;
padding: 0.35rem 0.7rem;
margin-top: 13px;
margin-left: 14px;
}
.avatar-wallet {
font-size: 20px;
font-weight: 700;
margin-top: 4px;
float: left;
padding: 0.5rem 0.8rem;
background-color: #fff;
color: #1ABC9C;
border-radius: 3px;
line-height: 24px;
}
.status {
font-weight: 700;
@ -407,6 +432,18 @@ table.last-transactions-content {
margin-bottom: 10px;
}
a.button-setup.add-wallet {
opacity: .5;
margin: 1rem auto;
width: 146px;
font-size: 14px;
padding: .3rem 0.7rem;
}
a.button-setup.add-wallet:hover {
opacity: 1;
}
a.button-setup {
border-radius: 3px;
border: 1px solid #B7C2CE;
@ -425,6 +462,7 @@ a.button-setup {
.m0 {margin: 0;}
.p0 {padding: 0 !important;}
.db {display: block;}
.size-10 { font-size: 10px; }
.size-12 { font-size: 12px; }
.size-14 { font-size: 14px; }
.size-16 { font-size: 16px; }
@ -469,7 +507,6 @@ a.button-setup {
.br100 {border-radius: 100%;}
.lh {line-height: 0;}
.oh {overflow:hidden;}
.lh {line-height: 0;}
.small {
font-size: 60%;
@ -528,7 +565,7 @@ a.button-setup {
.founds {
font-weight: 100;
color: #7A8C9E;
color: #B6E9DF;
}
.hidden {
@ -966,6 +1003,30 @@ button.gray:focus,
text-transform: uppercase;
}
.side-nav.wallets {
background-color: #213140 ;
padding: 0.7rem;
border-bottom: 1px solid #3A4E61;
}
.side-nav.wallets a {
color: #7A8C9E !important;
line-height: 18px;
}
.side-nav.wallets p {
color: #AAB1B9 !important;
}
.side-nav .wallet-item {
padding: 10px 0;
}
.side-nav .wallet-item a:hover {
background-color: #3C4E60;
}
.side-nav {padding: 0;}
.side-nav li {

View file

@ -1,15 +1,20 @@
<div ng-controller="SidebarController">
<header>
<header ng-click="toggleWalletSelection()">
<!-- <div ng&#45;show="$root.wallet.isShared()" ng&#45;include="'views/includes/peer&#45;list.html'"></div> -->
<div>
<a ng-click="toggleWalletSelection()"><i class="fi-plus"></i></a>
<a href="#!/receive" class="name-wallet" tooltip-placement="bottom" tooltip="ID: {{$root.wallet.id}}"> {{$root.wallet.getName()}} </a>
<a class="button gray small side-bar right" title="{{'Manual Update'|translate}}" ng-disabled="$root.loading" ng-click="refresh()"><i class="size-16 fi-refresh"></i></a>
<div class="avatar-wallet m10r">
<span>P</span>
</div>
<div class="founds size-14 m10v">
{{'Balance'|translate}}
<div>
<a href="#!/receive" class="name-wallet" tooltip-placement="bottom" tooltip="ID: {{$root.wallet.id}}"> <b>{{$root.wallet.getName()}} </b></a>
<a class="m10t side-bar right" title="{{'Manual Update'|translate}}" ng-disabled="$root.loading" ng-click="refresh()"> v </a>
</div>
<div class="founds size-12">
<!-- {{'Balance'|translate}} -->
<span ng-if="$root.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<span ng-if="$root.wallet && !$root.updatingBalance" class="has-tip size-16" data-options="disable_for_touch:true" tooltip-popup-delay='500' tooltip="{{totalBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}" tooltip-trigger="mouseenter" tooltip-placement="bottom">{{totalBalance || 0 |noFractionNumber}} {{$root.wallet.settings.unitName}}</span>
<div ng-if="$root.wallet && !$root.updatingBalance" data-options="disable_for_touch:true">
<b class="m5r">{{totalBalance || 0 |noFractionNumber}} {{$root.wallet.settings.unitName}}</b>
<span class="alt-currency">{{totalBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}</span>
</div>
<div class="m10t" ng-show="lockedBalance">
{{'Locked'|translate}} &nbsp;
<span ng-if="$root.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
@ -28,12 +33,23 @@
</div>
</header>
<ul class="side-nav" ng-if="walletSelection">
<li data-ng-repeat="item in $root.iden.listWallets() track by $index" class="nav-item">
<a ng-click="switchWallet(item.id)" ng-if="item.id != $root.wallet.id ">{{item.name || item.id}}</a>
</li>
</ul>
<div ng-if="walletSelection">
<ul class="side-nav wallets">
<li data-ng-repeat="item in $root.iden.listWallets() track by $index" class="nav-item" ng-if="item.id != $root.wallet.id">
<div class="avatar-wallet m10r">
<span>P</span>
</div>
<a class="size-12 wallet-item" ng-click="switchWallet(item.id)">
<p class="m0 size-14">{{item.name || item.id}} </p>
<span ng-if="$root.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<span ng-if="$root.wallet && !$root.updatingBalance" data-options="disable_for_touch:true">
<span class="m5r">{{totalBalance || 0 |noFractionNumber}} {{$root.wallet.settings.unitName}}</span>
</span>
</a>
</li>
</ul>
<a ui-route="{{create}}" href="#!/manage" class="button-setup add-wallet db p20h" title="Create"><i class="m5r fi-plus"></i> {{'Manage Wallets' | translate }} </a>
</div>
<ul class="side-nav" ng-if="!walletSelection && $root.wallet.isReady()">
<li data-ng-repeat="item in menu" ui-route="{{item.link}}" class="nav-item" data-ng-class="{active: isActive(item)}">
@ -44,9 +60,6 @@
</span>
</a>
</li>
<li class="nav-item" ui-route="{{create}}">
<a href="#!/manage" class="db p20h" title="Create"><i class="size-21 m20r fi-plus"></i> {{'Manage Wallets' | translate }} </a>
</li>
<li>
<a href="#!/" class="db p20h" title="Close" ng-click="signout()"><i class="size-21 m20r fi-power"></i> {{'Close'|translate}}</a>