page-header.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. .btn-outline {
  25. &, &:hover, &:focus {
  26. background: @page-header-bg;
  27. }
  28. }
  29. }
  30. // Stats
  31. .header-stats {
  32. color: @page-header-text-color;
  33. text-shadow: 0px 1px 1px @page-header-bg;
  34. li {
  35. a, a:link, a:visited {
  36. color: @page-header-link-color;
  37. }
  38. a:hover, a:focus, a:active {
  39. color: @page-header-link-hover-color;
  40. }
  41. }
  42. }
  43. // Go back
  44. .page-header .go-back-sm {
  45. text-shadow: 0px 1px 1px @page-header-bg;
  46. &, &:link, &:visited {
  47. color: @page-header-text-color;
  48. }
  49. &:hover, &:focus, &:active {
  50. color: @page-header-link-hover-color;
  51. }
  52. }
  53. // Breadcrumbs
  54. .page-header .breadcrumb {
  55. color: @page-header-text-color;
  56. text-shadow: 0px 1px 1px @page-header-bg;
  57. a, a:link, a:visited {
  58. color: @page-header-text-color;
  59. }
  60. a:hover, a:focus, a:active {
  61. color: @page-header-link-color;
  62. }
  63. li:before {
  64. color: @page-header-text-color;
  65. text-shadow: 0px 1px 1px @page-header-bg;
  66. }
  67. }
  68. // Header tabs
  69. .page-tabs {
  70. background-color: @page-tabs-bg;
  71. li a {
  72. padding-bottom: 7px;
  73. &, &:link, &:visited {
  74. background-color: @page-tabs-link-bg;
  75. border-bottom: 3px solid transparent;
  76. color: @page-tabs-link-color;
  77. }
  78. &:hover, &:focus {
  79. background-color: @page-tabs-link-hover-bg;
  80. border-bottom: 3px solid lighten(@page-tabs-link-hover-color, 75%);
  81. color: @page-tabs-link-hover-color;
  82. @media screen and (max-width: @screen-sm-max) {
  83. // sticky hover on touch devices is confusing, so don.t add it
  84. background-color: @page-tabs-link-bg;
  85. border-bottom: 3px solid transparent;
  86. color: @page-tabs-link-color;
  87. }
  88. }
  89. }
  90. li.active a {
  91. &, &:link, &:active, &:visited, &:hover, &:focus {
  92. background-color: @page-tabs-link-active-bg;
  93. border-bottom: 3px solid @page-tabs-link-active-color;
  94. color: @page-tabs-link-active-color;
  95. }
  96. }
  97. }