navbar.less 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882
  1. //
  2. // Navbars
  3. // --------------------------------------------------
  4. // Wrapper and base class
  5. //
  6. // Provide a static navbar from which we expand to create full-width, fixed, and
  7. // other navbar variations.
  8. .navbar {
  9. font-size: floor((@component-font-size-base * 1.067)); // ~16px
  10. min-height: @navbar-height-base;
  11. margin-bottom: @navbar-margin-bottom;
  12. border: none;
  13. border-radius: @navbar-border-radius;
  14. }
  15. // Navbar heading
  16. //
  17. // Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
  18. // styling of responsive aspects.
  19. .navbar-header {
  20. @media (min-width: @grid-float-breakpoint) {
  21. float: left;
  22. }
  23. }
  24. // Navbar collapse (body)
  25. //
  26. // Group your navbar content into this for easy collapsing and expanding across
  27. // various device sizes. By default, this content is collapsed when <768px, but
  28. // will expand past that for a horizontal display.
  29. //
  30. // To start (on mobile devices) the navbar links, forms, and buttons are stacked
  31. // vertically and include a `max-height` to overflow in case you have too much
  32. // content for the user's viewport.
  33. .navbar-collapse {
  34. box-shadow: none;
  35. padding-right: 21px;
  36. padding-left: 21px;
  37. .navbar-form:first-child {
  38. border:none;
  39. }
  40. @media (min-width: @grid-float-breakpoint) {
  41. // Account for first and last children spacing
  42. .navbar-nav.navbar-left:first-child {
  43. margin-left: -21px;
  44. > li:first-child a {
  45. .border-left-radius(@navbar-border-radius);
  46. }
  47. }
  48. .navbar-nav.navbar-right:last-child {
  49. margin-right: -21px;
  50. > .dropdown:last-child > a {
  51. border-radius: 0 @navbar-border-radius @navbar-border-radius 0;
  52. }
  53. }
  54. .navbar-form.navbar-right:last-child {
  55. .navbar-fixed-top &,
  56. .navbar-fixed-bottom & {
  57. margin-right: 0;
  58. }
  59. }
  60. }
  61. @media (max-width: @grid-float-breakpoint-max) {
  62. .navbar-nav.navbar-right:last-child {
  63. margin-bottom: 3px;
  64. }
  65. }
  66. }
  67. // Both navbar header and collapse
  68. //
  69. // When a container is present, change the behavior of the header and collapse.
  70. .navbar {
  71. .container,
  72. .container-fluid {
  73. padding-left: 21px;
  74. padding-right: 21px;
  75. > .navbar-header,
  76. > .navbar-collapse {
  77. margin-right: -21px;
  78. margin-left: -21px;
  79. @media (min-width: @grid-float-breakpoint) {
  80. margin-right: 0;
  81. margin-left: 0;
  82. }
  83. }
  84. }
  85. }
  86. //
  87. // Navbar alignment options
  88. //
  89. // Display the navbar across the entirety of the page or fixed it to the top or
  90. // bottom of the page.
  91. // Static top (unfixed, but 100% wide) navbar
  92. .navbar-static-top {
  93. z-index: @zindex-navbar;
  94. border-width: 0;
  95. border-radius: 0;
  96. }
  97. // Fix the top/bottom navbars when screen real estate supports it
  98. .navbar-fixed-top,
  99. .navbar-fixed-bottom {
  100. z-index: @zindex-navbar-fixed;
  101. border-radius: 0;
  102. }
  103. .navbar-fixed-top {
  104. border-width: 0;
  105. }
  106. .navbar-fixed-bottom {
  107. margin-bottom: 0; // override .navbar defaults
  108. border-width: 0;
  109. }
  110. // Brand/project name
  111. .navbar-brand {
  112. font-size: floor((@component-font-size-base * 1.6)); // ~24px
  113. line-height: 1.042; // ~25px
  114. height: @navbar-height-base;
  115. font-weight: 700;
  116. padding: ((@navbar-height-base - 25px) / 2) 21px;
  117. > [class*="fui-"] {
  118. font-size: floor((@component-font-size-base * 1.267)); // ~19px
  119. line-height: 1.263; // ~24px
  120. vertical-align: top;
  121. }
  122. @media (min-width: @grid-float-breakpoint) {
  123. .navbar > .container &,
  124. .navbar > .container-fluid & {
  125. margin-left: -21px;
  126. }
  127. }
  128. }
  129. // Navbar toggle
  130. //
  131. // Custom button for toggling the `.navbar-collapse`, powered by the collapse
  132. // JavaScript plugin.
  133. .navbar-toggle {
  134. border: none;
  135. color: @brand-primary;
  136. margin: 0 0 0 21px;
  137. padding: 0 21px;
  138. height: @navbar-height-base;
  139. line-height: @navbar-height-base;
  140. &:before {
  141. color: @link-color;
  142. content: "\e61a";
  143. font-family: "Flat-UI-Icons";
  144. font-size: floor((@component-font-size-base * 1.467)); // ~22px
  145. font-style: normal;
  146. font-weight: normal;
  147. -webkit-font-smoothing: antialiased;
  148. -moz-osx-font-smoothing: grayscale;
  149. transition: color .25s linear;
  150. }
  151. &:hover,
  152. &:focus {
  153. outline: none;
  154. &:before {
  155. color: @link-hover-color;
  156. }
  157. }
  158. .icon-bar {
  159. display: none;
  160. }
  161. @media (min-width: @grid-float-breakpoint) {
  162. display: none;
  163. }
  164. }
  165. // Navbar nav links
  166. //
  167. // Builds on top of the `.nav` components with it's own modifier class to make
  168. // the nav the full height of the horizontal nav (above 768px).
  169. .navbar-nav {
  170. margin: 0;
  171. > li > a {
  172. font-size: floor((@component-font-size-base * 1.067)); // ~16px
  173. padding: ((@navbar-height-base - 23px) / 2) 21px;
  174. line-height: 23px;
  175. font-weight: 700;
  176. }
  177. > li > a:hover,
  178. > li > a:focus,
  179. .open > a:focus,
  180. .open > a:hover {
  181. background-color: transparent;
  182. }
  183. [class^="fui-"] {
  184. line-height: 20px;
  185. position: relative;
  186. top: 1px;
  187. }
  188. .visible-sm,
  189. .visible-xs {
  190. > [class^="fui-"] {
  191. margin-left: 12px;
  192. }
  193. }
  194. @media (max-width: @grid-float-breakpoint-max) {
  195. margin: 0 -21px;
  196. // Dropdowns get custom display when collapsed
  197. .open .dropdown-menu {
  198. > li > a,
  199. .dropdown-header {
  200. padding: 7px 15px 7px 31px !important;
  201. }
  202. > li > a {
  203. line-height: 23px;
  204. }
  205. }
  206. > li > a {
  207. padding-top: 7px;
  208. padding-bottom: 7px;
  209. }
  210. }
  211. }
  212. // Navbar form
  213. //
  214. // Extension of the `.form-inline` with some extra flavor for optimum display in
  215. // our navbars.
  216. .navbar-input {
  217. .input-size(@input-height-sm; 5px; 10px; @input-font-size-sm; @navbar-input-line-height);
  218. }
  219. .navbar-form {
  220. box-shadow: none;
  221. margin-top: 0;
  222. margin-bottom: 0;
  223. padding-right: 19px;
  224. padding-left: 19px;
  225. // Vertically center in expanded, horizontal navbar
  226. .navbar-vertical-align(@input-height-sm);
  227. @media (max-width: @grid-float-breakpoint-max) {
  228. margin: 3px -21px;
  229. width: auto;
  230. }
  231. // Controls sizing
  232. .form-control,
  233. .input-group-addon,
  234. .btn { .navbar-input(); }
  235. .btn {
  236. margin: 0;
  237. }
  238. // Reset rounded corners
  239. .form-controls-corners-reset();
  240. .form-control {
  241. font-size: @component-font-size-base;
  242. border-radius: 5px;
  243. display: table-cell;
  244. }
  245. .form-group ~ .btn {
  246. font-size: @component-font-size-base;
  247. border-radius: 5px;
  248. margin-left: 5px;
  249. }
  250. .form-group + .btn {
  251. margin-right: 5px;
  252. }
  253. @media (min-width: @grid-float-breakpoint) {
  254. .input-group { // Width fix for Webkit and IE11
  255. width: 195px;
  256. }
  257. }
  258. @media (max-width: @grid-float-breakpoint-max) {
  259. .form-group {
  260. margin-bottom: 7px;
  261. &:last-child {
  262. margin-bottom: 0;
  263. }
  264. }
  265. .form-group + .btn {
  266. margin-left: 0;
  267. }
  268. }
  269. }
  270. // Dropdown menus
  271. // Menu position and menu carets
  272. .navbar-nav > li {
  273. > .dropdown-menu {
  274. min-width: 100%;
  275. margin-top: 9px;
  276. border-radius: @border-radius-base;
  277. }
  278. &.open > .dropdown-menu {
  279. @media (max-width: @grid-float-breakpoint-max) {
  280. margin-top: 0 !important;
  281. }
  282. }
  283. }
  284. // Menu position and menu caret support for dropups via extra dropup class
  285. .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
  286. .border-bottom-radius(@border-radius-base);
  287. }
  288. .navbar-nav > .open > .dropdown-toggle,
  289. .navbar-nav > .open > .dropdown-toggle:focus,
  290. .navbar-nav > .open > .dropdown-toggle:hover {
  291. background-color: transparent;
  292. }
  293. // Text in navbars
  294. //
  295. // Add a class to make any element properly align itself vertically within the navbars.
  296. .navbar-text {
  297. font-size: floor((@component-font-size-base * 1.067)); // ~16px
  298. line-height: 1.438; // ~23px
  299. color: @brand-primary;
  300. margin-top: 0;
  301. margin-bottom: 0;
  302. .navbar-vertical-align(23px, @navbar-height-base);
  303. @media (min-width: @grid-float-breakpoint) {
  304. margin-left: 21px;
  305. margin-right: 21px;
  306. // Outdent the form if last child to line up with content down the page
  307. &.navbar-right:last-child {
  308. margin-right: 0;
  309. }
  310. }
  311. }
  312. // Buttons in navbars
  313. //
  314. // Vertically center a button within a navbar (when *not* in a form).
  315. .navbar-btn {
  316. margin-top: ((@navbar-height-base - @input-height-base) / 2);
  317. margin-bottom: ((@navbar-height-base - @input-height-base) / 2);
  318. &.btn-sm {
  319. margin-top: ((@navbar-height-base - @input-height-sm) / 2);
  320. margin-bottom: (((@navbar-height-base - @input-height-sm) / 2) - 1);
  321. }
  322. &.btn-xs {
  323. margin-top: ((@navbar-height-base - 25) / 2);
  324. margin-bottom: ((@navbar-height-base - 25) / 2);
  325. }
  326. }
  327. // Unread icon
  328. //
  329. .navbar-unread,
  330. .navbar-new {
  331. font-family: @font-family-base;
  332. background-color: @brand-secondary;
  333. border-radius: 50%;
  334. color: @inverse;
  335. font-size: 0;
  336. font-weight: 700;
  337. height: 6px;
  338. line-height: 1;
  339. position: absolute;
  340. right: 12px;
  341. text-align: center;
  342. top: 35%;
  343. width: 6px;
  344. z-index: 10;
  345. @media (max-width: @grid-float-breakpoint) {
  346. position: static;
  347. float: right;
  348. margin: 0 0 0 10px;
  349. }
  350. .active & {
  351. background-color: @inverse;
  352. display: none;
  353. }
  354. }
  355. .navbar-new {
  356. background-color: @brand-danger;
  357. font-size: 12px;
  358. height: 18px;
  359. line-height: 17px;
  360. margin: -6px -10px;
  361. min-width: 18px;
  362. padding: 0 1px;
  363. width: auto;
  364. -webkit-font-smoothing: subpixel-antialiased;
  365. }
  366. // Alternate navbars
  367. // --------------------------------------------------
  368. // Default navbar
  369. .navbar-default {
  370. background-color: @navbar-default-bg;
  371. .navbar-brand {
  372. color: @navbar-default-brand-color;
  373. &:hover,
  374. &:focus {
  375. color: @navbar-default-brand-hover-color;
  376. background-color: @navbar-default-brand-hover-bg;
  377. }
  378. }
  379. .navbar-toggle {
  380. &:before {
  381. color: @navbar-default-toggle-color;
  382. }
  383. &:hover,
  384. &:focus {
  385. background-color: transparent;
  386. &:before {
  387. color: @navbar-default-toggle-hover-color;
  388. }
  389. }
  390. }
  391. .navbar-collapse,
  392. .navbar-form {
  393. border-color: @navbar-default-form-border;
  394. border-width: 2px;
  395. }
  396. .navbar-nav {
  397. > li > a {
  398. color: @navbar-default-link-color;
  399. &:hover,
  400. &:focus {
  401. color: @navbar-default-link-hover-color;
  402. background-color: @navbar-default-link-hover-bg;
  403. }
  404. }
  405. > .active > a {
  406. &,
  407. &:hover,
  408. &:focus {
  409. color: @navbar-default-link-active-color;
  410. background-color: @navbar-default-link-active-bg;
  411. }
  412. }
  413. > .disabled > a {
  414. &,
  415. &:hover,
  416. &:focus {
  417. color: @navbar-default-link-disabled-color;
  418. background-color: @navbar-default-link-disabled-bg;
  419. }
  420. }
  421. }
  422. // Dropdown menu items and carets
  423. .navbar-nav {
  424. // Caret text color
  425. > .dropdown > a .caret {
  426. border-top-color: @navbar-default-caret-color;
  427. border-bottom-color: @navbar-default-caret-color;
  428. }
  429. // Caret should match text color on active
  430. > .active > a .caret {
  431. border-top-color: @navbar-default-caret-active-color;
  432. border-bottom-color: @navbar-default-caret-active-color;
  433. }
  434. // Caret should match text color on hover
  435. > .dropdown > a:hover .caret,
  436. > .dropdown > a:focus .caret {
  437. border-top-color: @navbar-default-caret-hover-color;
  438. border-bottom-color: @navbar-default-caret-hover-color;
  439. }
  440. // Remove background color from open dropdown
  441. > .open > a {
  442. &,
  443. &:hover,
  444. &:focus {
  445. background-color: @navbar-default-link-active-bg;
  446. color: @navbar-default-link-active-color;
  447. .caret {
  448. border-top-color: @navbar-default-caret-active-color;
  449. border-bottom-color: @navbar-default-caret-active-color;
  450. }
  451. }
  452. }
  453. @media (max-width: @grid-float-breakpoint-max) {
  454. // Dropdowns get custom display when collapsed
  455. .open .dropdown-menu {
  456. > li > a {
  457. color: @navbar-default-link-color;
  458. &:hover,
  459. &:focus {
  460. color: @navbar-default-link-hover-color;
  461. background-color: @navbar-default-link-hover-bg;
  462. }
  463. }
  464. > .active > a {
  465. &,
  466. &:hover,
  467. &:focus {
  468. color: @navbar-default-link-active-color;
  469. background-color: @navbar-default-link-active-bg;
  470. }
  471. }
  472. > .disabled > a {
  473. &,
  474. &:hover,
  475. &:focus {
  476. color: @navbar-default-link-disabled-color;
  477. background-color: @navbar-default-link-disabled-bg;
  478. }
  479. }
  480. }
  481. }
  482. }
  483. .navbar-form {
  484. .form-control {
  485. border-color: transparent;
  486. .placeholder(@navbar-default-form-placeholder);
  487. &:focus {
  488. border-color: @brand-secondary;
  489. color: @brand-secondary;
  490. }
  491. }
  492. .input-group-btn .btn {
  493. border-color: transparent;
  494. color: @navbar-default-form-icon;
  495. }
  496. .input-group.focus {
  497. .form-control,
  498. .input-group-btn .btn {
  499. border-color: @brand-secondary;
  500. color: @brand-secondary;
  501. }
  502. }
  503. }
  504. .navbar-text {
  505. color: @brand-primary;
  506. }
  507. // Links in navbars
  508. //
  509. // Add a class to ensure links outside the navbar nav are colored correctly.
  510. .navbar-link {
  511. color: @navbar-default-link-color;
  512. &:hover {
  513. color: @navbar-default-link-hover-color;
  514. }
  515. }
  516. .btn-link {
  517. color: @navbar-default-link-color;
  518. &:hover,
  519. &:focus {
  520. color: @navbar-default-link-hover-color;
  521. }
  522. &[disabled],
  523. fieldset[disabled] & {
  524. &:hover,
  525. &:focus {
  526. color: @navbar-default-link-disabled-color;
  527. }
  528. }
  529. }
  530. }
  531. // Inverse navbar
  532. .navbar-inverse {
  533. background-color: @navbar-inverse-bg;
  534. .navbar-brand {
  535. color: @navbar-inverse-brand-color;
  536. &:hover,
  537. &:focus {
  538. color: @navbar-inverse-brand-hover-color;
  539. background-color: @navbar-inverse-brand-hover-bg;
  540. }
  541. }
  542. .navbar-toggle {
  543. &:before {
  544. color: @navbar-inverse-toggle-color;
  545. }
  546. &:hover,
  547. &:focus {
  548. background-color: transparent;
  549. &:before {
  550. color: @navbar-inverse-toggle-hover-color;
  551. }
  552. }
  553. }
  554. .navbar-collapse {
  555. border-color: @navbar-inverse-form-border;
  556. border-width: 2px;
  557. }
  558. .navbar-nav {
  559. > li > a {
  560. color: @navbar-inverse-link-color;
  561. &:hover,
  562. &:focus {
  563. color: @navbar-inverse-link-hover-color;
  564. background-color: @navbar-inverse-link-hover-bg;
  565. }
  566. }
  567. > .active > a {
  568. &,
  569. &:hover,
  570. &:focus {
  571. color: @navbar-inverse-link-active-color;
  572. background-color: @navbar-inverse-link-active-bg;
  573. }
  574. }
  575. > .disabled > a {
  576. &,
  577. &:hover,
  578. &:focus {
  579. color: @navbar-inverse-link-disabled-color;
  580. background-color: @navbar-inverse-link-disabled-bg;
  581. }
  582. }
  583. }
  584. // Dropdown menu items and carets
  585. .navbar-nav {
  586. // Caret should match text color on hover
  587. > .dropdown > a:hover .caret,
  588. > .dropdown > a:focus .caret {
  589. border-top-color: @navbar-inverse-caret-hover-color;
  590. border-bottom-color: @navbar-inverse-caret-hover-color;
  591. }
  592. // Remove background color from open dropdown
  593. > .open > a {
  594. &,
  595. &:hover,
  596. &:focus {
  597. background-color: @navbar-inverse-link-active-bg;
  598. color: @navbar-inverse-link-active-color;
  599. border-left-color: transparent;
  600. .caret {
  601. border-top-color: @navbar-inverse-link-active-color;
  602. border-bottom-color: @navbar-inverse-link-active-color;
  603. }
  604. }
  605. }
  606. > .dropdown > a .caret {
  607. border-top-color: @navbar-inverse-caret-color;
  608. border-bottom-color: @navbar-inverse-caret-color;
  609. }
  610. > .open {
  611. > .dropdown-menu {
  612. background-color: @navbar-inverse-dropdown-bg;
  613. padding: 3px 4px;
  614. > li > a {
  615. color: @navbar-inverse-dropdown-link-color;
  616. border-radius: @border-radius-base;
  617. padding: 6px 9px;
  618. &:hover,
  619. &:focus {
  620. color: @navbar-inverse-dropdown-link-hover-color;
  621. background-color: @navbar-inverse-dropdown-link-hover-bg;
  622. }
  623. }
  624. > .divider {
  625. background-color: @navbar-inverse-divider;
  626. height: 2px;
  627. margin-left: -4px;
  628. margin-right: -4px;
  629. }
  630. }
  631. }
  632. @media (max-width: @grid-float-breakpoint-max) {
  633. > li > a {
  634. border-left-width: 0;
  635. }
  636. // Dropdowns get custom display when collapsed
  637. .open .dropdown-menu {
  638. > li > a {
  639. color: @navbar-inverse-link-color;
  640. &:hover,
  641. &:focus {
  642. color: @navbar-inverse-link-hover-color;
  643. background-color: @navbar-inverse-link-hover-bg;
  644. }
  645. }
  646. > .active > a {
  647. &,
  648. &:hover,
  649. &:focus {
  650. color: @navbar-inverse-link-active-color;
  651. background-color: @navbar-inverse-link-active-bg;
  652. }
  653. }
  654. > .disabled > a {
  655. &,
  656. &:hover,
  657. &:focus {
  658. color: @navbar-inverse-link-disabled-color;
  659. background-color: @navbar-inverse-link-disabled-bg;
  660. }
  661. }
  662. }
  663. // Custom background for dividers when collapsed
  664. .dropdown-menu .divider {
  665. background-color: @navbar-inverse-divider;
  666. }
  667. }
  668. }
  669. .navbar-form {
  670. .form-control {
  671. color: @navbar-inverse-form-placeholder;
  672. border-color: transparent;
  673. background-color: @navbar-inverse-form-bg;
  674. .placeholder(@navbar-inverse-form-placeholder);
  675. &:focus {
  676. border-color: @brand-secondary;
  677. color: @brand-secondary;
  678. }
  679. }
  680. .btn {
  681. .button-variant(@btn-default-color, @brand-secondary, @btn-primary-hover-bg, @btn-primary-active-bg);
  682. }
  683. .input-group-btn .btn {
  684. border-color: transparent;
  685. background-color: @navbar-inverse-form-bg;
  686. color: @navbar-inverse-form-icon;
  687. }
  688. .input-group.focus {
  689. .form-control,
  690. .input-group-btn .btn {
  691. border-color: @brand-secondary;
  692. color: @brand-secondary;
  693. }
  694. }
  695. @media (max-width: @grid-float-breakpoint-max) {
  696. border-color: @navbar-inverse-form-border;
  697. border-width: 2px 0;
  698. }
  699. }
  700. .navbar-text {
  701. color: @inverse;
  702. a {
  703. color: @navbar-inverse-link-color;
  704. &:hover,
  705. &:focus {
  706. color: @navbar-inverse-link-hover-color;
  707. }
  708. }
  709. }
  710. .navbar-btn {
  711. .button-variant(@btn-default-color, @brand-secondary, @btn-primary-hover-bg, @btn-primary-active-bg);
  712. }
  713. }
  714. // Embossed navbar
  715. .navbar-embossed {
  716. @media (min-width: @grid-float-breakpoint) {
  717. > .navbar-collapse {
  718. border-radius: @navbar-border-radius;
  719. box-shadow: inset 0 -2px 0 fade(black, 15%);
  720. }
  721. &.navbar-inverse .navbar-nav {
  722. .active > a,
  723. .open > a {
  724. box-shadow: inset 0 -2px 0 fade(black, 15%);
  725. }
  726. }
  727. }
  728. }
  729. // Large navbar
  730. .navbar-lg {
  731. min-height: @navbar-height-large;
  732. .navbar-brand {
  733. line-height: 1;
  734. height: @navbar-height-large;
  735. padding-top: ((@navbar-height-large - 24px) / 2);
  736. padding-bottom: ((@navbar-height-large - 24px) / 2);
  737. > [class*="fui-"] {
  738. font-size: floor((@component-font-size-base * 1.6)); // ~24px
  739. line-height: 1;
  740. }
  741. }
  742. .navbar-nav {
  743. > li > a {
  744. font-size: @component-font-size-base;
  745. line-height: 1.6;
  746. @media (min-width: @grid-float-breakpoint) {
  747. padding-top: ((@navbar-height-large - 24px) / 2);
  748. padding-bottom: ((@navbar-height-large - 24px) / 2);
  749. }
  750. }
  751. }
  752. .navbar-toggle {
  753. height: @navbar-height-large;
  754. line-height: @navbar-height-large;
  755. }
  756. .navbar-form {
  757. .navbar-vertical-align(@input-height-sm; @navbar-height-large);
  758. }
  759. .navbar-text {
  760. .navbar-vertical-align(23px; @navbar-height-large);
  761. }
  762. .navbar-btn {
  763. margin-top: ((@navbar-height-large - @input-height-base) / 2);
  764. margin-bottom: ((@navbar-height-large - @input-height-base) / 2);
  765. &.btn-sm {
  766. margin-top: ((@navbar-height-large - @input-height-sm) / 2);
  767. margin-bottom: ((@navbar-height-large - @input-height-sm) / 2);
  768. }
  769. &.btn-xs {
  770. margin-top: ((@navbar-height-large - 25px) / 2);
  771. margin-bottom: ((@navbar-height-large - 25px) / 2);
  772. }
  773. }
  774. }