Warning, /webapps/ocs-webserver/httpdocs/theme/flatui/less/modules/navbar.less is written in an unsupported language. File is not indexed.
0001 //
0002 // Navbar
0003 // --------------------------------------------------
0004
0005 .navbar {
0006 font-size: @base-font-size * 1.142; /* 16px */
0007
0008 .brand {
0009 border-radius: 6px 0 0 6px;
0010 color: mix(@base, white, 85%);
0011 font-size: @base-font-size * 1.714; /* 24px */
0012 font-weight: 700;
0013 margin-left: 0;
0014 padding: 23px 28px 24px 32px;
0015 text-shadow: none;
0016 &:hover, &:focus {
0017 color: @firm;
0018 }
0019 &[class*="fui-"] {
0020 font-weight: normal;
0021 }
0022 }
0023
0024 .nav {
0025 margin-right: 0;
0026
0027 // First level nav
0028 > li {
0029 position: relative;
0030
0031 &:hover {
0032 > ul {
0033 opacity: 1;
0034 top: 100%;
0035 visibility: visible;
0036 z-index: 100;
0037 -webkit-transform: scale(1, 1);
0038 // Show on hover
0039 display: block\9;
0040 }
0041 }
0042 &.active {
0043 > a,
0044 > a:hover,
0045 > a:focus {
0046 background: none;
0047 color: @firm;
0048 .box-shadow(none);
0049 }
0050 }
0051
0052 // Second level nav
0053 > ul {
0054 padding-top: 13px;
0055 top: 80%;
0056 .dropdown-arrow(@base);
0057
0058 // Third level nav
0059 li {
0060 &:hover {
0061 ul {
0062 opacity: 1;
0063 -webkit-transform: scale(1, 1);
0064 visibility: visible;
0065 display: block\9;
0066 }
0067 }
0068 ul {
0069 left: 100%;
0070 }
0071 }
0072 }
0073
0074 // First level link
0075 > a {
0076 color: mix(@base, white, 85%);
0077 font-weight: 700;
0078 font-size: @base-font-size * 1.071; /* 15px */
0079 padding: 29px @navbar-link-space 27px;
0080 text-shadow: none;
0081 .transition(~"background-color .25s, color .25s, border-bottom-color .25s");
0082
0083 &:hover, &:focus {
0084 color: @firm;
0085 }
0086 &[class*="fui-"] {
0087 font-size: 24px;
0088 font-weight: normal;
0089 }
0090
0091 > [class*="fui-"] {
0092 font-size: 24px;
0093 margin: -4px 0 0;
0094 position: relative;
0095 top: 4px;
0096 }
0097
0098 > [class*="fui-"] + * {
0099 margin-left: 12px;
0100 }
0101 }
0102 }
0103
0104 > li:first-child {
0105 > a {
0106 .border-radius(0 0 0 6px);
0107 }
0108 }
0109
0110 // Sub menu
0111 ul {
0112 border-radius: 4px;
0113 left: 0;
0114 list-style-type: none;
0115 margin-left: 0;
0116 opacity: 0;
0117 position: absolute;
0118 top: 0;
0119 width: 234px;
0120 z-index: -100;
0121 // Trigger transform to hide nav completely without 'ghost' bug (when switching from :hover to initial)
0122 -webkit-transform: scale(1, 0.99);
0123 -webkit-transform-origin: 0 0;
0124 // Don't show it at all by default since IE doesn't get modern transitions
0125 visibility: hidden;
0126 .transition(0.3s ease-out);
0127
0128 // Deep level sub menu
0129 ul {
0130 left: 95%;
0131 padding-left: 5px;
0132 }
0133
0134 // Sub menu item
0135 li {
0136 background-color: @base;
0137 padding: 0 3px 3px;
0138 position: relative;
0139
0140 &:first-child {
0141 border-radius: 6px 6px 0 0;
0142 padding-top: 3px;
0143 }
0144 &:last-child {
0145 border-radius: 0 0 6px 6px;
0146 }
0147 &.active {
0148 > a,
0149 > a:hover,
0150 > a:focus {
0151 background-color: @firm;
0152 color: @inverse;
0153 padding-left: @navbar-sublink-space;
0154 padding-right: @navbar-sublink-space;
0155 }
0156 & + li {
0157 > a {
0158 padding-left: @navbar-sublink-space;
0159 padding-right: @navbar-sublink-space;
0160 }
0161 }
0162 }
0163 }
0164
0165 // Sub menu link
0166 a {
0167 border-radius: 2px;
0168 color: @inverse;
0169 display: block;
0170 font-size: @base-font-size;
0171 padding: 6px @navbar-sublink-space;
0172 text-decoration: none;
0173
0174 &:hover {
0175 background-color: @firm;
0176 }
0177 }
0178 }
0179 }
0180
0181 // Expand/collapse button
0182 .btn-navbar {
0183 background: none;
0184 border: none;
0185 color: @base;
0186 margin: 21px 15px 17px;
0187 text-shadow: none;
0188 .box-shadow(none);
0189
0190 &:hover, &:focus {
0191 background: none;
0192 color: @firm;
0193 }
0194 &:before {
0195 content: "\e00c";
0196 font-family: "Flat-UI-Icons";
0197 font-size: @base-font-size * 1.571;
0198 font-style: normal;
0199 font-weight: normal;
0200 -webkit-font-smoothing: antialiased;
0201 }
0202 .icon-bar {
0203 display: none;
0204 }
0205 }
0206 }
0207
0208 .navbar-inner {
0209 background: mix(@base, white, 9.5%);
0210 border: none;
0211 padding-left: 0;
0212 padding-right: 0;
0213 .border-radius(6px);
0214 .drop-ie-gradient();
0215 .box-shadow(none);
0216 }
0217
0218 // Alternate Color
0219 // --------------------------------------------------
0220 .navbar-inverse {
0221 font-size: @base-font-size * 1.214; /* 17px */
0222
0223 .navbar-inner {
0224 background: @base;
0225 .drop-ie-gradient();
0226 }
0227 .brand {
0228 border-bottom: 2px solid mix(@base, black, 85%);
0229 border-right: 2px solid mix(@base, black, 85%);
0230 color: @inverse;
0231 padding: 10px 28px 11px 32px;
0232 }
0233 .btn-navbar {
0234 color: @inverse;
0235 margin: 7px 10px;
0236 }
0237 .nav {
0238 > li {
0239 &:first-child {
0240 &.active {
0241 > a {
0242 padding-left: @navbar-link-space;
0243 }
0244 }
0245 > a {
0246 border-left: none;
0247 }
0248 }
0249
0250 // Active item
0251 &.active {
0252 > a {
0253 &, &:hover, &:focus {
0254 background-color: @firm;
0255 border-bottom-color: mix(@firm, black, 85%);
0256 border-left: none;
0257 color: @inverse;
0258 padding-left: @navbar-link-space + 2;
0259 .box-shadow(none);
0260 }
0261 }
0262 & + li {
0263 > a {
0264 border-left: none;
0265 padding-left: @navbar-link-space + 2;
0266 }
0267 }
0268 }
0269
0270 // Link styling
0271 > a {
0272 font-size: @base-font-size * 1.143; /* 16px */
0273 border-bottom: 2px solid mix(@base, black, 85%);
0274 border-left: 2px solid mix(@base, black, 85%);
0275 color: @inverse;
0276 padding: 16px @navbar-link-space 15px;
0277 }
0278 }
0279 }
0280
0281 // Round corders of the pull-right dropdown
0282 .nav.pull-right > li {
0283 > a {
0284 border-radius: 0 6px 6px 0;
0285 }
0286 }
0287 }
0288
0289 // Unread icon
0290 .navbar-unread,
0291 .navbar-new {
0292 font-family: @base-font-family;
0293 background-color: @firm;
0294 border-radius: 50%;
0295 color: @inverse;
0296 font-size: 0;
0297 font-weight: 700;
0298 height: 6px;
0299 line-height: @base-font-size;
0300 position: absolute;
0301 right: 12px;
0302 text-align: center;
0303 top: 28px;
0304 width: 6px;
0305 z-index: 10;
0306
0307 .active & {
0308 background-color: @inverse;
0309 display: none;
0310 }
0311 .navbar-inverse & {
0312 top: 15px;
0313 }
0314 }
0315
0316 .navbar-new {
0317 background-color: @danger;
0318 font-size: 12px;
0319 line-height: 17px;
0320 height: 18px;
0321 margin: -9px -1px;
0322 min-width: 16px;
0323 padding: 0 1px;
0324 width: auto;
0325 -webkit-font-smoothing: subpixel-antialiased;
0326 }
0327
0328 // DROPDOWN LIST
0329 // -----------
0330 .navbar {
0331 // Inverse navbar dropdown styling
0332 &.navbar-inverse {
0333 .nav li.dropdown {
0334 &.open {
0335 > .dropdown-toggle {
0336 background-color: @firm;
0337 border-bottom-color: mix(@firm, black, 85%);
0338 color: @inverse;
0339
0340 .caret {
0341 border-bottom-color: @inverse !important;
0342 border-top-color: @inverse !important;
0343 }
0344 }
0345 }
0346 }
0347 }
0348
0349 // Default navbar dropdown styling
0350 .nav li.dropdown {
0351 &.open {
0352 > .dropdown-toggle {
0353 background: none;
0354 color: @firm;
0355
0356 .caret {
0357 border-bottom-color: @firm !important;
0358 border-top-color: @firm !important;
0359 }
0360 }
0361 .dropdown-menu {
0362 opacity: 1;
0363 top: 100%;
0364 visibility: visible;
0365 z-index: 1000;
0366 -webkit-transform: none;
0367 }
0368 }
0369 > .dropdown-toggle {
0370 outline: none;
0371
0372 &:hover, &:focus {
0373 .caret {
0374 border-bottom-color: @firm;
0375 border-top-color: @firm;
0376 }
0377 }
0378 .caret {
0379 border-left-width: 6px;
0380 border-right-width: 6px;
0381 border-top-width: 8px;
0382 border-bottom-color: lighten(@base, 13%);
0383 border-top-color: lighten(@base, 13%);
0384 margin-left: 10px;
0385 margin-top: 7px;
0386 }
0387 }
0388 .dropdown-menu {
0389 background-color: @base;
0390 opacity: 0;
0391 padding: 0;
0392 visibility: hidden;
0393
0394 &:before {
0395 display: none;
0396 }
0397 &:after {
0398 border-bottom-color: @base;
0399 }
0400 > li {
0401 > a {
0402 border-radius: 3px;
0403 color: @inverse;
0404 padding: 6px 8px 8px;
0405 }
0406 }
0407 .divider {
0408 background-color: mix(@base, black, 85%);
0409 border-bottom: none;
0410 margin: 2px 0 5px;
0411 padding: 0;
0412 height: 2px;
0413 }
0414 }
0415 }
0416 }