page-header.less 2.8 KB

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