page-header.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. //
  2. // Flavor Header
  3. // --------------------------------------------------
  4. // Graphic background
  5. .page-header {
  6. background: none; // we'll use header handler for that
  7. border-bottom: none;
  8. }
  9. .page-header-bg {
  10. background-color: @page-header-bg;
  11. background-position: center center;
  12. @media screen and (max-width: 640px) {
  13. background-image: url('../img/page-header/640.jpg');
  14. }
  15. @media screen and (min-width: 641px) and (max-width: 800px) {
  16. background-image: url('../img/page-header/800.jpg');
  17. }
  18. @media screen and (min-width: 801px) and (max-width: 1280px) {
  19. background-image: url('../img/page-header/1280.jpg');
  20. }
  21. @media screen and (min-width: 1281px) and (max-width: 1440px) {
  22. background-image: url('../img/page-header/1440.jpg');
  23. }
  24. @media screen and (min-width: 1441px) and (max-width: 1920px) {
  25. background-image: url('../img/page-header/1920.jpg');
  26. }
  27. @media screen and (min-width: 1921px) and (max-width: 2600px) {
  28. background-image: url('../img/page-header/2600.jpg');
  29. }
  30. @media screen and (min-width: 2601px) and (max-width: 3000px) {
  31. background-image: url('../img/page-header/3000.jpg');
  32. }
  33. @media screen and (min-width: 3001px) {
  34. background-image: url('../img/page-header/4k.jpg');
  35. }
  36. }
  37. // Item colors
  38. .page-header {
  39. h1 {
  40. color: @page-header-color;
  41. font-weight: 400;
  42. text-shadow: 0px 1px 1px @page-header-bg;
  43. }
  44. }
  45. // Buttons
  46. .page-header .btn-outline {
  47. background: transparent;
  48. &.btn-default {
  49. background: @page-header-btn-default-bg;
  50. border-color: @page-header-btn-default-border;
  51. color: @page-header-btn-default-color;
  52. text-shadow: 0px 1px 1px @page-header-bg;
  53. &:focus, &:hover {
  54. background: @page-header-btn-default-hover-bg;
  55. border-color: @page-header-btn-default-hover-border;
  56. color: @page-header-btn-default-hover-color;
  57. text-shadow: none;
  58. }
  59. &:active {
  60. background: @page-header-btn-default-active-bg;
  61. border-color: @page-header-btn-default-active-border;
  62. color: @page-header-btn-default-active-color;
  63. text-shadow: none;
  64. }
  65. }
  66. &.btn-success {
  67. background: @page-header-btn-success-bg;
  68. border-color: @page-header-btn-success-border;
  69. color: @page-header-btn-success-color;
  70. text-shadow: 0px 1px 1px @page-header-bg;
  71. &:focus, &:hover {
  72. background: @page-header-btn-success-hover-bg;
  73. border-color: @page-header-btn-success-hover-border;
  74. color: @page-header-btn-success-hover-color;
  75. text-shadow: none;
  76. }
  77. &:active {
  78. background: @page-header-btn-success-active-bg;
  79. border-color: @page-header-btn-success-active-border;
  80. color: @page-header-btn-success-active-color;
  81. text-shadow: none;
  82. }
  83. }
  84. }
  85. // Stats
  86. .header-stats {
  87. color: @page-header-text-color;
  88. text-shadow: 0px 1px 1px @page-header-bg;
  89. li {
  90. a, a:link, a:visited {
  91. color: @page-header-link-color;
  92. }
  93. a:hover, a:focus, a:active {
  94. color: @page-header-link-hover-color;
  95. }
  96. }
  97. }
  98. // Go back
  99. .page-header .go-back-sm {
  100. text-shadow: 0px 1px 1px @page-header-bg;
  101. &, &:link, &:visited {
  102. color: @page-header-text-color;
  103. }
  104. &:hover, &:focus, &:active {
  105. color: @page-header-link-hover-color;
  106. }
  107. }
  108. // Breadcrumbs
  109. .page-header .breadcrumb {
  110. color: @page-header-text-color;
  111. text-shadow: 0px 1px 1px @page-header-bg;
  112. a, a:link, a:visited {
  113. color: @page-header-text-color;
  114. }
  115. a:hover, a:focus, a:active {
  116. color: @page-header-link-color;
  117. }
  118. li:before {
  119. color: @page-header-text-color;
  120. text-shadow: 0px 1px 1px @page-header-bg;
  121. }
  122. }
  123. // Header tabs
  124. .page-tabs {
  125. background-color: fadeOut(@gray-darker, 60%);
  126. li a {
  127. &, &:link, &:visited {
  128. background-color: @page-tabs-link-bg;
  129. color: @page-tabs-link-color;
  130. }
  131. &:hover, &:focus {
  132. background-color: @page-tabs-link-hover-bg;
  133. color: @page-tabs-link-hover-color;
  134. }
  135. &:active {
  136. background-color: @page-tabs-link-focus-bg;
  137. color: @page-tabs-link-focus-color;
  138. }
  139. }
  140. li.active a {
  141. &, &:link, &:active, &:visited, &:hover, &:focus {
  142. background-color: @page-tabs-link-active-bg;
  143. color: @page-tabs-link-active-color;
  144. }
  145. }
  146. }