_navs.scss 1.8 KB

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