Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 19 | /************************* NAV *************************/ |
| 20 | |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 21 | @import "../bootstrap/bootstrap/_variables.scss"; |
Matteo Scandolo | 6802e07 | 2016-08-16 14:02:02 -0700 | [diff] [blame] | 22 | @import "./_variables.scss"; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 23 | |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 24 | #sidebar-wrapper { |
| 25 | -webkit-box-shadow: 3px 0px 5px 0px rgba(50, 50, 50, 0.75); |
| 26 | -moz-box-shadow: 3px 0px 5px 0px rgba(50, 50, 50, 0.75); |
| 27 | box-shadow: 3px 0px 5px 0px rgba(50, 50, 50, 0.75); |
| 28 | |
| 29 | .logo{ |
| 30 | max-width: 100%; |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 31 | margin: $default-spacing auto; |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | a { |
| 35 | font-weight: bold; |
| 36 | } |
| 37 | |
| 38 | // ICONS |
| 39 | .icon-app { |
| 40 | background-image: url("opencloudApp.png"); |
| 41 | } |
| 42 | .icon-home { |
| 43 | /* Going with darker standard color nav -- so using over png's background-image: url("Home.png"); */ |
| 44 | background-image: url("Home.png"); |
| 45 | } |
| 46 | .icon-deployment{ |
| 47 | background-image: url("Deployments.png"); |
| 48 | } |
| 49 | .icon-site{ |
| 50 | background-image: url("Sites.png"); |
| 51 | } |
| 52 | .icon-slice{ |
| 53 | background-image: url("Slices.png"); |
| 54 | } |
| 55 | .icon-user{ |
| 56 | background-image: url("Users.png"); |
| 57 | } |
| 58 | .icon-reservation{ |
| 59 | background-image: url("Reservations.png"); |
| 60 | } |
| 61 | .icon-cog{ |
| 62 | background-image: url("Services.png"); |
| 63 | } |
| 64 | |
| 65 | // ACTIVE ICONS |
| 66 | li.active a, |
| 67 | li.focus a { |
| 68 | .icon-home{ |
| 69 | background-image: url("Home_over.png"); |
| 70 | } |
| 71 | .icon-deployment{ |
| 72 | background-image: url("Deployments_over.png"); |
| 73 | } |
| 74 | .icon-site{ |
| 75 | background-image: url("Sites_over.png"); |
| 76 | } |
| 77 | .icon-slice{ |
| 78 | background-image: url("Slices_over.png"); |
| 79 | } |
| 80 | .icon-user{ |
| 81 | background-image: url("Users_over.png"); |
| 82 | } |
| 83 | .icon-reservation{ |
| 84 | background-image: url("Reservations_over.png"); |
| 85 | } |
| 86 | .icon-cog{ |
| 87 | background-image: url("Services_over.png"); |
| 88 | } |
| 89 | } |
| 90 | |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 91 | li{ |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 92 | a { |
| 93 | transition: all .5s ease-in-out; |
| 94 | } |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 95 | ul.dashboard-list{ |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 96 | padding-left: $default-spacing; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 97 | li{ |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 98 | list-style: none; |
| 99 | position: relative; |
| 100 | margin-top: $default-spacing / 4; |
| 101 | margin-bottom: $default-spacing / 4; |
| 102 | margin-left: $default-spacing; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 103 | |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 104 | &:before { |
| 105 | display: inline-block; |
| 106 | font-size: 2em; |
| 107 | font-weight: 200; |
| 108 | position: absolute; |
| 109 | top: 15px; |
| 110 | left: -15px; |
| 111 | line-height: 0; |
| 112 | content: '-'; |
| 113 | background-color: $nav-pills-active-link-hover-bg; |
| 114 | } |
| 115 | // Actual tabs (as links) |
| 116 | > a { |
| 117 | cursor: pointer; |
| 118 | display: block; |
| 119 | padding: 5px 0px; |
| 120 | margin-right: 0; |
| 121 | border-radius: $nav-pills-border-radius; |
Arpit Agarwal | fecac78 | 2016-07-18 17:30:32 -0700 | [diff] [blame] | 122 | > img { |
| 123 | width:20px; |
| 124 | } |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 125 | &:hover,&:focus { |
| 126 | padding-left: 15px; |
| 127 | text-decoration: none; |
| 128 | background-color: $nav-link-hover-bg; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 129 | } |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 130 | } |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 131 | |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 132 | // Active state, and its :hover to override normal :hover |
| 133 | &.active > a { |
| 134 | padding-left: 15px; |
| 135 | color: $nav-pills-active-link-hover-color; |
| 136 | background-color: lighten($nav-pills-active-link-hover-bg, 5%); |
| 137 | } |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 138 | } |
| 139 | } |
| 140 | } |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 141 | [class^="icon-"]{ |
| 142 | background-position: left center; |
| 143 | width:22px; |
| 144 | height:22px; |
| 145 | display: inline-block; |
| 146 | margin-right: 10px; |
| 147 | position: relative; |
| 148 | top: 5px; |
| 149 | } |
| 150 | |
Matteo Scandolo | 6802e07 | 2016-08-16 14:02:02 -0700 | [diff] [blame] | 151 | .glyphicon-arrow-right{ |
| 152 | display: none; |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | #wrapper.collapsed { |
| 157 | |
| 158 | padding-left: 60px; |
| 159 | |
| 160 | #sidebar-wrapper { |
| 161 | width: 60px; |
| 162 | |
| 163 | a>span, .logo, .dashboard-list{ |
| 164 | display: none; |
| 165 | } |
| 166 | |
| 167 | a{ |
| 168 | padding: 10px; |
| 169 | } |
| 170 | |
| 171 | .glyphicon-arrow-left{ |
| 172 | display: none; |
| 173 | } |
| 174 | .glyphicon-arrow-right{ |
| 175 | display: block; |
| 176 | } |
| 177 | } |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | /************************* END NAV *************************/ |