header.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. //
  2. // Page Header
  3. // --------------------------------------------------
  4. // Generic spacing and stuff
  5. //
  6. //##
  7. .page-header {
  8. border-bottom-width: 2px;
  9. margin-top: @line-height-computed * -1;
  10. }
  11. // Breadcrumb
  12. //
  13. //##
  14. .page-header {
  15. &>.container {
  16. .breadcrumb {
  17. margin-bottom: (@line-height-computed * @headings-line-height) * -1;
  18. color: @breadcrumb-color;
  19. font-size: @font-size-small;
  20. &>li {
  21. + li:before {
  22. /* Tinysh hack to remove BS3's style */
  23. display: none;
  24. }
  25. a:link, a:visited {
  26. color: @breadcrumb-color;
  27. }
  28. a:hover, a:active {
  29. color: @breadcrumb-active-color;
  30. text-decoration: none;
  31. }
  32. span {
  33. margin: 0px 4px 0px 6px;
  34. }
  35. }
  36. }
  37. }
  38. }
  39. // Actions
  40. //
  41. //##
  42. .page-header {
  43. &>.container {
  44. .page-actions {
  45. float: right;
  46. margin-top: (@line-height-computed * @headings-line-height) * -1 - (@line-height-computed * 1.5) + @padding-base-vertical - 1;
  47. .dropdown-menu {
  48. left: auto;
  49. right: 0px;
  50. &:after {
  51. left: auto;
  52. right: 12px;
  53. }
  54. }
  55. }
  56. }
  57. }
  58. /* Small displays */
  59. @media (max-width: @screen-sm-min) {
  60. .page-header {
  61. &>.container {
  62. .page-actions {
  63. clear: both;
  64. float: none;
  65. margin-top: @line-height-computed;
  66. }
  67. }
  68. }
  69. }
  70. // Details
  71. //
  72. //##
  73. .page-header {
  74. &>.container {
  75. .page-details {
  76. display: block;
  77. clear: both;
  78. color: @text-muted;
  79. a:link, a:visited {
  80. color: @text-muted;
  81. }
  82. a:active, a:hover {
  83. color: @text-color;
  84. text-decoration: none;
  85. }
  86. }
  87. }
  88. }
  89. /* Small displays */
  90. @media (max-width: @screen-sm-min) {
  91. .page-header {
  92. &>.container {
  93. .page-details {
  94. margin-top: @line-height-computed;
  95. }
  96. }
  97. }
  98. }
  99. // Pills
  100. //
  101. //##
  102. .page-pills {
  103. border-bottom: 1px solid @page-header-border-color;
  104. margin: @line-height-computed * -1 0px @line-height-computed;
  105. padding: (@line-height-computed / 2) 0px;
  106. .nav-pills {
  107. margin: 0px;
  108. &>li {
  109. &>a {
  110. padding: @page-pills-padding;
  111. font-size: @font-size-large;
  112. &>.badge {
  113. border-radius: @border-radius-small;
  114. position: relative;
  115. bottom: 3px;
  116. }
  117. &:hover {
  118. &>.badge {
  119. background-color: @nav-link-hover-color;
  120. }
  121. }
  122. }
  123. &.active {
  124. &>a {
  125. &:link, &:active, &:visited, &:hover {
  126. &>.badge {
  127. background-color: @nav-link-active-color;
  128. }
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }