page-header.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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: url('../img/page-header.png');
  12. .shadow-4dp();
  13. @media screen and (min-width: @screen-md-min) {
  14. margin-bottom: @line-height-computed * 2;
  15. }
  16. }
  17. // Item colors
  18. .page-header {
  19. h1 {
  20. color: @page-header-color;
  21. font-weight: 400;
  22. text-shadow: 0px 1px 1px @page-header-bg;
  23. }
  24. }
  25. // Stats
  26. .header-stats {
  27. color: @page-header-text-color;
  28. text-shadow: 0px 1px 1px @page-header-bg;
  29. li {
  30. a, a:link, a:visited {
  31. color: @page-header-link-color;
  32. }
  33. a:hover, a:focus, a:active {
  34. color: @page-header-link-hover-color;
  35. }
  36. }
  37. }
  38. // Go back
  39. .page-header .go-back-sm {
  40. text-shadow: 0px 1px 1px @page-header-bg;
  41. &, &:link, &:visited {
  42. color: @page-header-text-color;
  43. }
  44. &:hover, &:focus, &:active {
  45. color: @page-header-link-hover-color;
  46. }
  47. }
  48. // Breadcrumbs
  49. .page-header .breadcrumb {
  50. color: @page-header-text-color;
  51. text-shadow: 0px 1px 1px @page-header-bg;
  52. a, a:link, a:visited {
  53. color: @page-header-text-color;
  54. }
  55. a:hover, a:focus, a:active {
  56. color: @page-header-link-color;
  57. }
  58. li:before {
  59. color: @page-header-text-color;
  60. text-shadow: 0px 1px 1px @page-header-bg;
  61. }
  62. }
  63. // Header tabs
  64. .page-tabs {
  65. background-color: @page-tabs-bg;
  66. li a {
  67. padding-bottom: 7px;
  68. &, &:link, &:visited {
  69. background-color: @page-tabs-link-bg;
  70. border-bottom: 3px solid transparent;
  71. color: @page-tabs-link-color;
  72. }
  73. &:hover, &:focus {
  74. background-color: @page-tabs-link-hover-bg;
  75. border-bottom: 3px solid lighten(@page-tabs-link-hover-color, 75%);
  76. color: @page-tabs-link-hover-color;
  77. @media screen and (max-width: @screen-sm-max) {
  78. // sticky hover on touch devices is confusing, so don.t add it
  79. background-color: @page-tabs-link-bg;
  80. border-bottom: 3px solid transparent;
  81. color: @page-tabs-link-color;
  82. }
  83. }
  84. }
  85. li.active a {
  86. &, &:link, &:active, &:visited, &:hover, &:focus {
  87. background-color: @page-tabs-link-active-bg;
  88. border-bottom: 3px solid @page-tabs-link-active-color;
  89. color: @page-tabs-link-active-color;
  90. }
  91. }
  92. }