page-header.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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: @page-header-bg;
  11. background-image: url('../img/page-header.svg');
  12. background-size: cover;
  13. @media screen and (min-width: @screen-md-min) {
  14. margin-bottom: @line-height-computed * 2;
  15. }
  16. }
  17. // Min-height the line on headless pages
  18. .page-header-bg {
  19. min-height: @page-header-min-height;
  20. }
  21. // Item colors
  22. .page-header {
  23. h1 {
  24. color: @page-header-color;
  25. font-weight: 400;
  26. text-shadow: 0px 1px 1px @page-header-bg;
  27. }
  28. }
  29. // Buttons
  30. .page-header .btn-outline {
  31. &.btn-default {
  32. .misago-btn(
  33. @page-header-btn-default-color,
  34. @page-header-btn-default-bg,
  35. @page-header-btn-default-hover-color,
  36. @page-header-btn-default-hover-bg,
  37. @page-header-btn-default-active-color,
  38. @page-header-btn-default-active-bg
  39. );
  40. }
  41. &.btn-primary {
  42. .misago-btn(
  43. @page-header-btn-primary-color,
  44. @page-header-btn-primary-bg,
  45. @page-header-btn-primary-hover-color,
  46. @page-header-btn-primary-hover-bg,
  47. @page-header-btn-primary-active-color,
  48. @page-header-btn-primary-active-bg
  49. );
  50. }
  51. }
  52. // Stats
  53. .header-stats {
  54. color: @page-header-text-color;
  55. text-shadow: 0px 1px 1px @page-header-bg;
  56. li {
  57. a, a:link, a:visited {
  58. color: @page-header-link-color;
  59. }
  60. a:hover, a:focus, a:active {
  61. color: @page-header-link-hover-color;
  62. }
  63. .user-status.user-banned,
  64. .user-status.user-online,
  65. .user-status.user-offline {
  66. .status-icon {
  67. color: @page-header-text-color;
  68. }
  69. }
  70. .item-title {
  71. color: @page-header-link-color !important;
  72. }
  73. }
  74. }
  75. // Go back
  76. .page-header .go-back-sm {
  77. text-shadow: 0px 1px 1px @page-header-bg;
  78. &, &:link, &:visited {
  79. color: @page-header-text-color;
  80. }
  81. &:hover, &:focus, &:active {
  82. color: @page-header-link-hover-color;
  83. }
  84. }
  85. // Breadcrumbs
  86. .page-header .breadcrumb {
  87. color: @page-header-text-color;
  88. text-shadow: 0px 1px 1px @page-header-bg;
  89. a, a:link, a:visited {
  90. color: @page-header-text-color;
  91. }
  92. a:hover, a:focus, a:active {
  93. color: @page-header-link-color;
  94. }
  95. li:before {
  96. color: @page-header-text-color;
  97. text-shadow: 0px 1px 1px @page-header-bg;
  98. }
  99. }
  100. // Header tabs
  101. .page-header .page-tabs {
  102. background-color: @page-tabs-bg;
  103. margin-top: @line-height-computed * 1.66;
  104. li a {
  105. font-weight: bold;
  106. &, &:link, &:visited {
  107. background-color: @page-tabs-link-bg;
  108. border-radius: @border-radius-small @border-radius-small 0 0;
  109. color: @page-tabs-link-color;
  110. }
  111. &:hover, &:focus {
  112. background-color: @page-tabs-link-hover-bg;
  113. color: @page-tabs-link-hover-color;
  114. @media screen and (max-width: @screen-sm-max) {
  115. // sticky hover on touch devices is confusing, so don.t add it
  116. background-color: @page-tabs-link-bg;
  117. color: @page-tabs-link-color;
  118. }
  119. }
  120. }
  121. li.active a {
  122. &, &:link, &:active, &:visited, &:hover, &:focus {
  123. background-color: @page-tabs-link-active-bg;
  124. color: @page-tabs-link-active-color;
  125. }
  126. }
  127. }