Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 1 | /************************* NAV *************************/ |
| 2 | |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 3 | @import "../bootstrap/bootstrap/_variables.scss"; |
Matteo Scandolo | 6802e07 | 2016-08-16 14:02:02 -0700 | [diff] [blame] | 4 | @import "./_variables.scss"; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 5 | |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 6 | #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 Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 13 | margin: $default-spacing auto; |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 14 | } |
| 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 Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 73 | li{ |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 74 | a { |
| 75 | transition: all .5s ease-in-out; |
| 76 | } |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 77 | ul.dashboard-list{ |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 78 | padding-left: $default-spacing; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 79 | li{ |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 80 | list-style: none; |
| 81 | position: relative; |
| 82 | margin-top: $default-spacing / 4; |
| 83 | margin-bottom: $default-spacing / 4; |
| 84 | margin-left: $default-spacing; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 85 | |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 86 | &: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 Agarwal | fecac78 | 2016-07-18 17:30:32 -0700 | [diff] [blame] | 104 | > img { |
| 105 | width:20px; |
| 106 | } |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 107 | &:hover,&:focus { |
| 108 | padding-left: 15px; |
| 109 | text-decoration: none; |
| 110 | background-color: $nav-link-hover-bg; |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 111 | } |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 112 | } |
Arpit Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 113 | |
Matteo Scandolo | e0b8cc8 | 2016-07-18 16:34:58 -0700 | [diff] [blame] | 114 | // 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 Agarwal | 8168d2e | 2016-07-18 14:01:39 -0700 | [diff] [blame] | 120 | } |
| 121 | } |
| 122 | } |
Matteo Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 123 | [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 Scandolo | 6802e07 | 2016-08-16 14:02:02 -0700 | [diff] [blame] | 133 | .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 Scandolo | 2500e39 | 2016-03-25 17:20:27 -0700 | [diff] [blame] | 160 | } |
| 161 | |
| 162 | /************************* END NAV *************************/ |