mirror of https://github.com/BTCPrivate/copay.git
side bar & change wallets
This commit is contained in:
parent
37526b554e
commit
71784798f8
|
@ -111,11 +111,7 @@ body, html{
|
|||
header {
|
||||
padding: 0.7rem;
|
||||
background-color: #1ABC9C;
|
||||
}
|
||||
|
||||
header:hover {
|
||||
cursor: pointer;
|
||||
background-color: #23C9A9;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
header .creation {
|
||||
|
@ -125,12 +121,48 @@ header .creation {
|
|||
}
|
||||
|
||||
header .alt-currency {
|
||||
background: #16A085;
|
||||
}
|
||||
|
||||
.alt-currency {
|
||||
background: #2C3E50;
|
||||
padding: 0.05rem 0.2rem;
|
||||
border-radius: 2px;
|
||||
background: #16A085;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.col1 {
|
||||
width: 38px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col2 {
|
||||
width: 150px;
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.col3 {
|
||||
position: absolute;
|
||||
width: 30px;
|
||||
height: 68px;
|
||||
float: right;
|
||||
background-color: #23C9A9;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 19px 12px;
|
||||
}
|
||||
|
||||
.col3:hover {
|
||||
cursor: pointer;
|
||||
background-color: #16A085;
|
||||
}
|
||||
|
||||
.col3:active {
|
||||
cursor: pointer;
|
||||
background-color: #213140;
|
||||
}
|
||||
|
||||
.off-canvas-wrap, .inner-wrap{
|
||||
height:100%;
|
||||
}
|
||||
|
@ -158,7 +190,6 @@ ul.side-nav.wallets .avatar-wallet{
|
|||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
margin-top: 4px;
|
||||
float: left;
|
||||
padding: 0.5rem 0.8rem;
|
||||
background-color: #fff;
|
||||
color: #1ABC9C;
|
||||
|
@ -435,7 +466,7 @@ table.last-transactions-content {
|
|||
a.button-setup.add-wallet {
|
||||
opacity: .5;
|
||||
margin: 1rem auto;
|
||||
width: 146px;
|
||||
width: 125px;
|
||||
font-size: 14px;
|
||||
padding: .3rem 0.7rem;
|
||||
}
|
||||
|
@ -553,8 +584,11 @@ a.button-setup {
|
|||
}
|
||||
|
||||
.name-wallet {
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
width: 75%;
|
||||
float: left;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.box-livenet {
|
||||
|
@ -1011,7 +1045,7 @@ button.gray:focus,
|
|||
|
||||
.side-nav.wallets a {
|
||||
color: #7A8C9E !important;
|
||||
line-height: 18px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.side-nav.wallets p {
|
||||
|
@ -1021,9 +1055,13 @@ button.gray:focus,
|
|||
.side-nav .wallet-item {
|
||||
padding: 10px 0;
|
||||
}
|
||||
.side-nav li.nav-item {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.side-nav .wallet-item a:hover {
|
||||
.side-nav li.nav-item:hover {
|
||||
background-color: #3C4E60;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
<div ng-controller="SidebarController">
|
||||
<header ng-click="toggleWalletSelection()">
|
||||
<!-- <div ng-show="$root.wallet.isShared()" ng-include="'views/includes/peer-list.html'"></div> -->
|
||||
<div class="avatar-wallet m10r">
|
||||
<div class="col1 avatar-wallet m10r">
|
||||
<span>P</span>
|
||||
</div>
|
||||
<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 class="col2">
|
||||
<div href="#!/receive">
|
||||
<b class="ellipsis name-wallet">{{$root.wallet.getName()}} </b>
|
||||
<p class="right size-10">[ {{$root.wallet.totalCopayers}} of {{$root.wallet.requiredCopayers}} ]</p>
|
||||
</div>
|
||||
<div class="founds size-12">
|
||||
<!-- {{'Balance'|translate}} -->
|
||||
|
@ -22,7 +23,7 @@
|
|||
</span>
|
||||
<i class="fi-info medium" tooltip="{{'Balance locked in pending transaction proposals'|translate}}" tooltip-placement="bottom"></i>
|
||||
</div>
|
||||
<!-- <div class="wfooter">
|
||||
<!-- <div class="wfooter">
|
||||
<span ng-if="$root.wallet.isShared()">
|
||||
{{$root.wallet.requiredCopayers}} <span translate>of</span> {{$root.wallet.totalCopayers}} wallet
|
||||
<span ng-if="!$root.wallet.isReady()">
|
||||
|
@ -31,26 +32,35 @@
|
|||
</span>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<a class="side-bar" title="{{'Manual Update'|translate}}" ng-disabled="$root.loading" ng-click="refresh()"> v </a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div ng-if="walletSelection">
|
||||
<ul class="side-nav wallets">
|
||||
<li data-ng-repeat="item in wallets track by $index" class="nav-item" ng-if="item.id != $root.wallet.id">
|
||||
<div class="avatar-wallet m10r">
|
||||
<div class="col1 avatar-wallet m10r">
|
||||
<span>P</span>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<a class="size-12 wallet-item" ng-click="switchWallet(item.id)">
|
||||
<p class="m0 size-14">{{item.name || item.id}} </p>
|
||||
<div>
|
||||
<span class="ellipsis name-wallet">{{item.name || item.id}} </span>
|
||||
<p class="m0 size-10">[ {{item.totalCopayers}} of {{item.requiredCopayers}} ]</p>
|
||||
</div>
|
||||
<span ng-if="item.isReady() && item.balanceInfo.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
|
||||
<span ng-if="item.isReady() && !item.balanceInfo.updatingBalance" data-options="disable_for_touch:true">
|
||||
<b class="m5r">{{item.balanceInfo.totalBalance || 0 |noFractionNumber}} {{item.settings.unitName}}</b>
|
||||
<span class="alt-currency">{{item.balanceInfo.totalBalanceAlternative |noFractionNumber:2}} {{item.balanceInfo.alternativeIsoCode}}</span>
|
||||
</span>
|
||||
<div ng-if="item.isReady() && !item.balanceInfo.updatingBalance" data-options="disable_for_touch:true">
|
||||
<b class="m5r size-12">{{item.balanceInfo.totalBalance || 0 |noFractionNumber}} {{item.settings.unitName}}</b>
|
||||
<span class="alt-currency size-10">{{item.balanceInfo.totalBalanceAlternative |noFractionNumber:2}} {{item.balanceInfo.alternativeIsoCode}}</span>
|
||||
</div>
|
||||
<span ng-if="!item.isReady()">Waiting for copayers...</span>
|
||||
</a>
|
||||
</div>
|
||||
</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>
|
||||
<a ui-route="{{create}}" href="#!/manage" class="button-setup add-wallet db p20h" title="Create"><i class="m5r fi-plus"></i> {{'Add Wallets' | translate }} </a>
|
||||
</div>
|
||||
|
||||
<ul class="side-nav" ng-if="!walletSelection && $root.wallet.isReady()">
|
||||
|
|
Loading…
Reference in New Issue