_navs.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. //
  2. // Navs
  3. // --------------------------------------------------
  4. // BASE CLASS
  5. // ----------
  6. .nav {
  7. margin-left: 0;
  8. margin-bottom: $line-height-base;
  9. list-style: none;
  10. }
  11. // Make links block level
  12. .nav > li > a {
  13. display: block;
  14. }
  15. // Redeclare pull classes because of specifity
  16. .nav > .pull-right {
  17. float: right;
  18. }
  19. // TABS AND PILLS
  20. // -------------
  21. // Common styles
  22. .nav-tabs {
  23. @include clearfix();
  24. }
  25. .nav-tabs > li {
  26. float: left;
  27. }
  28. .nav-tabs > li > a {
  29. padding-right: 12px;
  30. padding-left: 12px;
  31. margin-right: 2px;
  32. line-height: 14px; // keeps the overall height an even number
  33. }
  34. // TABS
  35. // ----
  36. // Give the tabs something to sit on
  37. .nav-tabs {
  38. border-bottom: 1px solid $divider-border-color;
  39. padding-left: 10px;
  40. margin: 0 0 10px 0;
  41. }
  42. // Make the list-items overlay the bottom border
  43. .nav-tabs > li {
  44. margin-bottom: -1px;
  45. }
  46. // Actual tabs (as links)
  47. .nav-tabs > li > a {
  48. color: $text-color;
  49. padding-top: 8px;
  50. padding-bottom: 8px;
  51. line-height: $line-height-base;
  52. border: 1px solid transparent;
  53. @include border-radius(4px 4px 0 0);
  54. &:hover,
  55. &:focus {
  56. border-color: $divider-border-color;
  57. color: $link-color;
  58. }
  59. }
  60. // Active state, and it's :hover/:focus to override normal :hover/:focus
  61. .nav-tabs > .active > a,
  62. .nav-tabs > .active > a:hover,
  63. .nav-tabs > .active > a:focus {
  64. @include border-radius(3px);
  65. border: 1px solid $divider-border-color;
  66. background-color: transparent;
  67. border-bottom: 1px solid $panel-bg;
  68. color: $link-color;
  69. }
  70. // Show/hide tabbable areas
  71. .tab-content > .tab-pane {
  72. display: none;
  73. }
  74. .tab-content > .active {
  75. display: block;
  76. }
  77. // temp hack
  78. .modal-body, .gf-box {
  79. .nav-tabs {
  80. border-bottom: none;
  81. }
  82. .nav-tabs > li > a {
  83. border: none;
  84. border-radius: 0;
  85. &:hover,
  86. &:focus {
  87. border-bottom: 1px solid $blue;
  88. }
  89. }
  90. .nav-tabs > .active > a,
  91. .nav-tabs > .active > a:hover,
  92. .nav-tabs > .active > a:focus {
  93. border: none;
  94. border-bottom: 1px solid $blue;
  95. color: $link-color;
  96. }
  97. }