Client: add titles to menu blocks
authorChocobozzz <florian.bigard@gmail.com>
Fri, 21 Apr 2017 14:51:03 +0000 (16:51 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 26 Apr 2017 19:23:19 +0000 (21:23 +0200)
client/src/app/core/menu/menu-admin.component.scss
client/src/app/core/menu/menu.component.html
client/src/sass/_variables.scss

index 04403950e8a074aae1831fb3ac20023b6e1b1d18..5881475f15b8aea9836fc4a86d9ed77ca7639c40 100644 (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 {
index 0b093882f273969f94e9d676d15149daf471da96..63a1c03c53290ccd8d070586e2562e31c5669321 100644 (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
     </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>
index 1b91434ba2859191e2698b156c009b185377ab97..d89fbb5e0c13bdb6a386630921b274bfe532eae7 100644 (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;