fix sidebar

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

View File

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

View File

@ -1,20 +1,17 @@
<div class="pr">
<header ng-click="$root.go('profile')">
<a class="db nav-item" title="Create new wallet">
<div class="photo-container left">
<img gravatar-src="'{{$root.iden.getName()}}'" gravatar-size="40">
</div>
<div class="left">
<p class="text-white m0">{{$root.iden.getName()}}</p>
<span class="db text-gray size-10"> {{'View My Profile' | translate }} </span>
</div>
<div class="right">
<i class="icon-arrow-right3 size-16 db m10t text-white"></i>
</div>
</a>
</header>
<header ng-click="$root.go('profile')">
<div class="photo-container left">
<img gravatar-src="'{{$root.iden.getName()}}'" gravatar-size="35">
</div>
<div class="left m10t">
<div class="text-white">{{$root.iden.getName()}}</div>
<div class="text-gray size-10"> {{'View My Profile' | translate }} </div>
</div>
<div class="right">
<i class="icon-arrow-right3 size-16 db m15t text-white"></i>
</div>
</header>
<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
ng-repeat="item in wallets track by $index"
ng-class="{'selected': item.id == $root.wallet.id}"
@ -41,7 +38,8 @@
</div>
</li>
</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
</a>
@ -49,11 +47,10 @@
<div ng-include="'views/includes/version.html'"></div>
</div>
</div>
<div class="sidebar bottom-bar">
<div class="sidebar-bottom">
<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 icon-locked"></i> {{'Lock'|translate}}</span>
</a>
</div>
</div>