Client: add titles to menu blocks

This commit is contained in:
Chocobozzz 2017-04-21 16:51:03 +02:00
parent 09223546a4
commit 6562f1f727
3 changed files with 26 additions and 5 deletions

View File

@ -1,13 +1,25 @@
menu {
background-color: $black-background;
padding: 20px;
padding: 25px;
margin: 0;
height: 100%;
.panel-block {
margin-bottom: 15px;
}
.block-title {
text-transform: uppercase;
font-weight: bold;
color: $menu-color-block;
margin-bottom: 10px;
}
a {
display: block;
margin-left: 5px;
height: 30px;
color: #9cabb8;
color: $menu-color-link;
cursor: pointer;
transition: color 0.3s;
@ -17,7 +29,7 @@ menu {
}
.glyphicon {
margin-right: 20px;
margin-right: 15px;
}
&:hover, &.active {

View File

@ -1,5 +1,7 @@
<menu>
<div class="panel-block">
<div class="block-title">Account</div>
<div id="panel-user-login" class="panel-button">
<a *ngIf="!isLoggedIn" routerLink="/login" routerLinkActive="active">
<span class="hidden-xs glyphicon glyphicon-log-in"></span>
@ -24,6 +26,8 @@
</div>
<div class="panel-block">
<div class="block-title">Videos</div>
<a routerLink="/videos/list" routerLinkActive="active">
<span class="hidden-xs glyphicon glyphicon-list"></span>
See videos
@ -35,8 +39,10 @@
</a>
</div>
<div class="panel-block">
<a *ngIf="isUserAdmin()" routerLink="/admin" routerLinkActive="active">
<div *ngIf="isUserAdmin()" class="panel-block">
<div class="block-title">Other</div>
<a routerLink="/admin" routerLinkActive="active">
<span class="hidden-xs glyphicon glyphicon-cog"></span>
Administration
</a>

View File

@ -3,6 +3,9 @@ $grey-color: #555;
$black-background: #1d2125;
$grey-background: #f6f2f2;
$menu-color-link: #9cabb8;
$menu-color-block: #686f77;
$header-height: 65px;
$header-border-color: #e9eff6;