Merge pull request #1726 from marianorod/new-popup

wallets effect
This commit is contained in:
Matias Alejo Garcia 2014-11-05 19:46:01 -03:00
commit 68208f7610
2 changed files with 171 additions and 16 deletions

View File

@ -1410,6 +1410,159 @@ a.text-warning:hover {color: #FD7262;}
}
/* Animation popup */
/*-----------------------------------------------------------------*/
.w-popup-menu{
padding:0;
}
.w-popup-menu li{
width: 180px;
height: 180px;
overflow: hidden;
position: relative;
float: left;
background: #213140;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
-moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
margin: 20px 26px 0 0;
-webkit-transition: all 300ms linear;
-moz-transition: all 300ms linear;
-o-transition: all 300ms linear;
-ms-transition: all 300ms linear;
transition: all 300ms linear;
}
.w-popup-menu li:last-child{
margin-right: 0px;
}
.w-popup-menu li a{
text-align: center;
width: 100%;
height: 100%;
display: block;
color: #333;
position: relative;
}
.w-popup-icon{
font-family: WebSymbolsRegular,cursive;
color: #c5e4f4 ;
font-size: 90px;
text-shadow: 1px 0 1px rgba(255,255,255,.7);
line-height: 150px;
position: absolute;
width: 58px;
/* height: 60px; */
left: 60px;
top: 14px;
text-align: center;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
-o-transition: all 200ms linear;
-ms-transition: all 200ms linear;
transition: all 200ms linear;
}
.w-popup-content{
position: absolute;
left: 0px;
width: 100%;
height: 50%;
top: 50%;
}
.w-popup-main{
color: #FFFFFF;
opacity: 0.6;
text-align: center;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
-o-transition: all 200ms linear;
-ms-transition: all 200ms linear;
transition: all 200ms linear;
margin-bottom: 5px;
}
.w-popup-sub{
text-align:center;
color: #FFFFFF;
line-height: 20px;
opacity: 0.8;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
-o-transition: all 200ms linear;
-ms-transition: all 200ms linear;
transition: all 200ms linear;
}
.w-popup-menu li:hover{
background-color: #34B191;
}
.w-popup-menu li:hover .w-popup-icon{
text-shadow: 0px 0px 20px #c5e4f4;
color: transparent;
-webkit-animation: moveFromTop 400ms ease;
-moz-animation: moveFromTop 400ms ease;
-ms-animation: moveFromTop 400ms ease;
}
.w-popup-menu li:hover .w-popup-main{
color: #FFFFFF;
-webkit-animation: moveFromTop 300ms ease;
-moz-animation: moveFromTop 300ms ease;
-ms-animation: moveFromTop 300ms ease;
}
.w-popup-menu li:hover .w-popup-sub{
color: #FFFFFF;
-webkit-animation: moveFromBottom 500ms ease;
-moz-animation: moveFromBottom 500ms ease;
-ms-animation: moveFromBottom 500ms ease;
}
@-webkit-keyframes moveFromTop {
from {
-webkit-transform: translateY(-300%);
}
to {
-webkit-transform: translateY(0%);
}
}
@-moz-keyframes moveFromTop {
from {
-moz-transform: translateY(-300%);
}
to {
-moz-transform: translateY(0%);
}
}
@-ms-keyframes moveFromTop {
from {
-ms-transform: translateY(-300%);
}
to {
-ms-transform: translateY(0%);
}
}
@-webkit-keyframes moveFromBottom {
from {
-webkit-transform: translateY(200%);
}
to {
-webkit-transform: translateY(0%);
}
}
@-moz-keyframes moveFromBottom {
from {
-moz-transform: translateY(200%);
}
to {
-moz-transform: translateY(0%);
}
}
@-ms-keyframes moveFromBottom {
from {
-ms-transform: translateY(200%);
}
to {
-ms-transform: translateY(0%);
}
}

View File

@ -1,26 +1,28 @@
<div ng-controller="PaymentIntentController" ng-init="open()">
<script type="text/ng-template" id="myModalContent.html">
<h3>Select a wallet to make the payment</h3>
<ul class="side-nav wallets" ng-show="wallets.0"
<ul class="w-popup-menu" ng-show="wallets.0"
ng-class="{'large':wallets.length > 4, 'medium':wallets.length > 2 && wallets.length < 5}">
<li data-ng-repeat="item in wallets track by $index" class="nav-item">
<div class="col1">
<div class="w-popup-icon">
<div class="avatar-wallet">{{(item.name || item.id) | limitTo: 1}}</div>
</div>
<div class="col2">
<a class="size-12 wallet-item" ng-click="ok(item)">
<div class="oh">
<div class="right size-10 type-wallet">[ {{item.requiredCopayers}} of {{item.totalCopayers}} ]</div>
<div class="ellipsis name-wallet">{{item.name || item.id}}</div>
</div>
<div class="oh">
<span ng-if="item.balanceInfo.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<div ng-if="!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 class="w-popup-content">
<div class="">
<a class="size-12 wallet-item" ng-click="ok(item)">
<div class="">
<div class="w-popup-main">[ {{item.requiredCopayers}} of {{item.totalCopayers}} ]</div>
<div class="w-popup-sub size-18">{{item.name || item.id}}</div>
</div>
</div>
</a>
<div class="w-popup-sub">
<span ng-if="item.balanceInfo.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<div ng-if="!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>
</div>
</a>
</div>
</div>
</li>
</ul>