blob: 0579ced376c8b3107baef0c5618790281f029a38 [file] [log] [blame]
Matteo Scandolo2500e392016-03-25 17:20:27 -07001/************************* NAV *************************/
2
Arpit Agarwal8168d2e2016-07-18 14:01:39 -07003@import "../bootstrap/bootstrap/_variables.scss";
Matteo Scandolo6802e072016-08-16 14:02:02 -07004@import "./_variables.scss";
Arpit Agarwal8168d2e2016-07-18 14:01:39 -07005
Matteo Scandolo2500e392016-03-25 17:20:27 -07006#sidebar-wrapper {
7 -webkit-box-shadow: 3px 0px 5px 0px rgba(50, 50, 50, 0.75);
8 -moz-box-shadow: 3px 0px 5px 0px rgba(50, 50, 50, 0.75);
9 box-shadow: 3px 0px 5px 0px rgba(50, 50, 50, 0.75);
10
11 .logo{
12 max-width: 100%;
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070013 margin: $default-spacing auto;
Matteo Scandolo2500e392016-03-25 17:20:27 -070014 }
15
16 a {
17 font-weight: bold;
18 }
19
20 // ICONS
21 .icon-app {
22 background-image: url("opencloudApp.png");
23 }
24 .icon-home {
25 /* Going with darker standard color nav -- so using over png's background-image: url("Home.png"); */
26 background-image: url("Home.png");
27 }
28 .icon-deployment{
29 background-image: url("Deployments.png");
30 }
31 .icon-site{
32 background-image: url("Sites.png");
33 }
34 .icon-slice{
35 background-image: url("Slices.png");
36 }
37 .icon-user{
38 background-image: url("Users.png");
39 }
40 .icon-reservation{
41 background-image: url("Reservations.png");
42 }
43 .icon-cog{
44 background-image: url("Services.png");
45 }
46
47 // ACTIVE ICONS
48 li.active a,
49 li.focus a {
50 .icon-home{
51 background-image: url("Home_over.png");
52 }
53 .icon-deployment{
54 background-image: url("Deployments_over.png");
55 }
56 .icon-site{
57 background-image: url("Sites_over.png");
58 }
59 .icon-slice{
60 background-image: url("Slices_over.png");
61 }
62 .icon-user{
63 background-image: url("Users_over.png");
64 }
65 .icon-reservation{
66 background-image: url("Reservations_over.png");
67 }
68 .icon-cog{
69 background-image: url("Services_over.png");
70 }
71 }
72
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070073 li{
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070074 a {
75 transition: all .5s ease-in-out;
76 }
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070077 ul.dashboard-list{
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070078 padding-left: $default-spacing;
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070079 li{
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070080 list-style: none;
81 position: relative;
82 margin-top: $default-spacing / 4;
83 margin-bottom: $default-spacing / 4;
84 margin-left: $default-spacing;
Arpit Agarwal8168d2e2016-07-18 14:01:39 -070085
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -070086 &:before {
87 display: inline-block;
88 font-size: 2em;
89 font-weight: 200;
90 position: absolute;
91 top: 15px;
92 left: -15px;
93 line-height: 0;
94 content: '-';
95 background-color: $nav-pills-active-link-hover-bg;
96 }
97 // Actual tabs (as links)
98 > a {
99 cursor: pointer;
100 display: block;
101 padding: 5px 0px;
102 margin-right: 0;
103 border-radius: $nav-pills-border-radius;
Arpit Agarwalfecac782016-07-18 17:30:32 -0700104 > img {
105 width:20px;
106 }
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -0700107 &:hover,&:focus {
108 padding-left: 15px;
109 text-decoration: none;
110 background-color: $nav-link-hover-bg;
Arpit Agarwal8168d2e2016-07-18 14:01:39 -0700111 }
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -0700112 }
Arpit Agarwal8168d2e2016-07-18 14:01:39 -0700113
Matteo Scandoloe0b8cc82016-07-18 16:34:58 -0700114 // Active state, and its :hover to override normal :hover
115 &.active > a {
116 padding-left: 15px;
117 color: $nav-pills-active-link-hover-color;
118 background-color: lighten($nav-pills-active-link-hover-bg, 5%);
119 }
Arpit Agarwal8168d2e2016-07-18 14:01:39 -0700120 }
121 }
122 }
Matteo Scandolo2500e392016-03-25 17:20:27 -0700123 [class^="icon-"]{
124 background-position: left center;
125 width:22px;
126 height:22px;
127 display: inline-block;
128 margin-right: 10px;
129 position: relative;
130 top: 5px;
131 }
132
Matteo Scandolo6802e072016-08-16 14:02:02 -0700133 .glyphicon-arrow-right{
134 display: none;
135 }
136}
137
138#wrapper.collapsed {
139
140 padding-left: 60px;
141
142 #sidebar-wrapper {
143 width: 60px;
144
145 a>span, .logo, .dashboard-list{
146 display: none;
147 }
148
149 a{
150 padding: 10px;
151 }
152
153 .glyphicon-arrow-left{
154 display: none;
155 }
156 .glyphicon-arrow-right{
157 display: block;
158 }
159 }
Matteo Scandolo2500e392016-03-25 17:20:27 -0700160}
161
162/************************* END NAV *************************/