fix sidebar

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-18 18:51:01 -03:00
commit f583cee616
2 changed files with 45 additions and 55 deletions

View file

@ -18,10 +18,15 @@
display: none; display: none;
} }
.sidebar.bottom-bar { .sidebar-bottom {
background: #213140; background: #213140;
padding: 1.2rem; padding: 1.2rem;
font-size: 14px; font-size: 14px;
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
height: 65px;
} }
.page, .main { .page, .main {
@ -30,7 +35,7 @@
.main { .main {
height: 92%; height: 92%;
margin-top: 45px; margin-top: 30px;
margin-left: 0; margin-left: 0;
margin-bottom: -30px; margin-bottom: -30px;
padding: 20px 0 80px 0; padding: 20px 0 80px 0;
@ -42,7 +47,6 @@
width: 100%; width: 100%;
z-index: 5; z-index: 5;
background: #3C4E60; background: #3C4E60;
height: 55px;
} }
.bottom-bar { .bottom-bar {
@ -52,15 +56,6 @@
width: 100%; width: 100%;
z-index: 5; z-index: 5;
background: #2C3E50; background: #2C3E50;
height: 65px;
text-align: center;
}
.bar-lock {
background: #213140;
height: 65px;
width: 100%;
text-align: center;
} }
.home, .settings, .createProfile, .import-profile { .home, .settings, .createProfile, .import-profile {
@ -73,20 +68,28 @@
} }
header { header {
height: 45px;
background-color: #213140;
position: fixed;
top: 0;
width: 100%;
line-height: 110%;
padding: 0 0.45rem;
/*
padding: 0.45rem; padding: 0.45rem;
height: 55px;
line-height: 110%; line-height: 110%;
background-color: #213140; background-color: #213140;
position: fixed; position: fixed;
width: 100%; width: 100%;
top: 0; top: 0;
*/
} }
header .photo-container { header .photo-container {
width: 40px; width: 35px;
height: 40px; height: 35px;
margin-right: 10px; margin-right: 10px;
border: 1px solid #7A8C9E; margin-top: 5px;
} }
header h1 { header h1 {
@ -95,8 +98,11 @@
} }
.scroll-section { .scroll-section {
margin: 55px 0 85px; position: absolute;
top: 45px;
bottom: 65px;
overflow: scroll;
width: 100%;
} }
.col3 a { .col3 a {
@ -204,9 +210,8 @@
background-color: #213140; background-color: #213140;
} }
.left-small, .right-small, .tab-bar-section { .left-small {
border-right: none; border-right: none;
padding-top: 0.3rem;
} }
.right-small { .right-small {
@ -250,22 +255,11 @@
padding: 0.15rem 0.2rem; padding: 0.15rem 0.2rem;
} }
.side-nav.wallets { .sidebar-mobile-wallets {
background: #E4E8EC; background: #E4E8EC;
z-index: 100;
overflow-y: inherit;
position: inherit;
height: auto;
border-bottom: none;
} }
.side-nav.wallets li { .sidebar-mobile-wallets li.nav-item.selected {
margin: 0;
padding: 0.8rem .1rem;
border-bottom: 1px solid #D6DBE1;
}
.side-nav li.nav-item.selected {
background-color: #CED5DC; background-color: #CED5DC;
} }
@ -297,17 +291,16 @@
-webkit-tap-highlight-color:rgba(0,0,0,0); -webkit-tap-highlight-color:rgba(0,0,0,0);
} }
.button-addwallet { .button-addwallet a {
background: #D8DEE3; background: #D8DEE3;
border-radius: 4px; border-radius: 4px;
color: #7A8C9E; color: #7A8C9E;
text-transform: uppercase; text-transform: uppercase;
font-weight: 700; font-weight: 700;
font-size: 12px; font-size: 12px;
margin: 20px;
} }
.button-addwallet i { .button-addwallet a i {
background-color: #7A8C9E; background-color: #7A8C9E;
color: #D8DEE3; color: #D8DEE3;
border-radius: 100%; border-radius: 100%;

View file

@ -1,20 +1,17 @@
<div class="pr"> <header ng-click="$root.go('profile')">
<header ng-click="$root.go('profile')"> <div class="photo-container left">
<a class="db nav-item" title="Create new wallet"> <img gravatar-src="'{{$root.iden.getName()}}'" gravatar-size="35">
<div class="photo-container left"> </div>
<img gravatar-src="'{{$root.iden.getName()}}'" gravatar-size="40"> <div class="left m10t">
</div> <div class="text-white">{{$root.iden.getName()}}</div>
<div class="left"> <div class="text-gray size-10"> {{'View My Profile' | translate }} </div>
<p class="text-white m0">{{$root.iden.getName()}}</p> </div>
<span class="db text-gray size-10"> {{'View My Profile' | translate }} </span> <div class="right">
</div> <i class="icon-arrow-right3 size-16 db m15t text-white"></i>
<div class="right"> </div>
<i class="icon-arrow-right3 size-16 db m10t text-white"></i> </header>
</div>
</a>
</header>
<div class="scroll-section"> <div class="scroll-section">
<ul class="side-nav wallets off-canvas-list" ng-show="wallets[0]"> <ul class="sidebar-mobile-wallets oh off-canvas-list m10b" ng-show="wallets[0]">
<li <li
ng-repeat="item in wallets track by $index" ng-repeat="item in wallets track by $index"
ng-class="{'selected': item.id == $root.wallet.id}" ng-class="{'selected': item.id == $root.wallet.id}"
@ -41,7 +38,8 @@
</div> </div>
</li> </li>
</ul> </ul>
<a class="db button-addwallet button" title="Add wallet" ng-click="$root.go('add')">
<a class="button gray expand" title="Add wallet" ng-click="$root.go('add')">
<i class="fi-plus"></i> Add wallet <i class="fi-plus"></i> Add wallet
</a> </a>
@ -49,11 +47,10 @@
<div ng-include="'views/includes/version.html'"></div> <div ng-include="'views/includes/version.html'"></div>
</div> </div>
</div> </div>
<div class="sidebar bottom-bar"> <div class="sidebar-bottom">
<a class="db text-gray tu" title="Close" ng-click="signout()"> <a class="db text-gray tu" title="Close" ng-click="signout()">
<span ng-if="!$root.hasPin"><i class="size-16 m5r fi-power"></i> {{'Close'|translate}}</span> <span ng-if="!$root.hasPin"><i class="size-16 m5r fi-power"></i> {{'Close'|translate}}</span>
<span ng-if="$root.hasPin"><i class="size-16 m5r icon-locked"></i> {{'Lock'|translate}}</span> <span ng-if="$root.hasPin"><i class="size-16 m5r icon-locked"></i> {{'Lock'|translate}}</span>
</a> </a>
</div> </div>
</div>