blob: 28973866ce8200db2f75162a59ae77ff28d7c654 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
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 Scandolo2500e392016-03-25 17:20:27 -070019/************************* NAV *************************/
20
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070021@import "../bootstrap/bootstrap/_variables.scss";
Matteo Scandolo6802e072016-08-16 14:02:02 -070022@import "./_variables.scss";
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070023
Matteo Scandolo2500e392016-03-25 17:20:27 -070024#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 Scandoloe0b8cc82016-07-18 16:34:58 -070031 margin: $default-spacing auto;
Matteo Scandolo2500e392016-03-25 17:20:27 -070032 }
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 Agarwal8168d2e2016-07-18 14:01:39 -070091 li{
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070092 a {
93 transition: all .5s ease-in-out;
94 }
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070095 ul.dashboard-list{
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070096 padding-left: $default-spacing;
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070097 li{
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070098 list-style: none;
99 position: relative;
100 margin-top: $default-spacing / 4;
101 margin-bottom: $default-spacing / 4;
102 margin-left: $default-spacing;
Arpit Agarwal8168d2e2016-07-18 14:01:39 -0700103
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -0700104 &: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 Agarwalfecac782016-07-18 17:30:32 -0700122 > img {
123 width:20px;
124 }
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -0700125 &:hover,&:focus {
126 padding-left: 15px;
127 text-decoration: none;
128 background-color: $nav-link-hover-bg;
Arpit Agarwal8168d2e2016-07-18 14:01:39 -0700129 }
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -0700130 }
Arpit Agarwal8168d2e2016-07-18 14:01:39 -0700131
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -0700132 // 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 Agarwal8168d2e2016-07-18 14:01:39 -0700138 }
139 }
140 }
Matteo Scandolo2500e392016-03-25 17:20:27 -0700141 [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 Scandolo6802e072016-08-16 14:02:02 -0700151 .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 Scandolo2500e392016-03-25 17:20:27 -0700178}
179
180/************************* END NAV *************************/