header.less 2.3 KB

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