page-header.less 4.0 KB

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