_page_header.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. .page-header-canvas {
  2. background: $page-header-bg;
  3. box-shadow: $page-header-shadow;
  4. border-bottom: 1px solid $page-header-border-color;
  5. }
  6. .page-header {
  7. padding: 2.5rem 0 0 0;
  8. .btn {
  9. float: right;
  10. margin-left: 1rem;
  11. // better align icons
  12. .fa {
  13. position: relative;
  14. top: 1px;
  15. }
  16. }
  17. }
  18. .page-header__inner {
  19. flex-grow: 1;
  20. display: flex;
  21. margin-bottom: 2.5rem;
  22. }
  23. .page-header__title {
  24. font-size: $font-size-h2;
  25. margin-bottom: 1px;
  26. padding-top: $spacer;
  27. }
  28. .page-header__img {
  29. border-radius: 50%;
  30. position: relative;
  31. top: 10px;
  32. width: 50px;
  33. height: 50px;
  34. }
  35. .page-header__icon {
  36. font-size: 50px;
  37. width: 50px;
  38. height: 50px;
  39. position: relative;
  40. &.fa {
  41. top: 10px;
  42. }
  43. &.gicon {
  44. top: 10px;
  45. }
  46. &.icon-gf {
  47. top: 3px;
  48. }
  49. }
  50. .page-header__logo {
  51. margin: 0 $spacer;
  52. }
  53. .page-header__sub-title {
  54. color: $text-muted;
  55. }
  56. .page-header-stamps-type {
  57. color: $link-color-disabled;
  58. text-transform: uppercase;
  59. }
  60. .page-breadcrumbs {
  61. display: flex;
  62. padding: 10px 0;
  63. line-height: 0.5;
  64. }
  65. .breadcrumb {
  66. display: inline-block;
  67. box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.35);
  68. overflow: hidden;
  69. border-radius: 5px;
  70. counter-reset: flag;
  71. }
  72. .breadcrumb-item {
  73. @include gradientBar($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color);
  74. text-decoration: none;
  75. outline: none;
  76. display: block;
  77. float: left;
  78. font-size: 12px;
  79. line-height: 30px;
  80. padding: 0 7px 0 37px;
  81. position: relative;
  82. box-shadow: $card-shadow;
  83. &:first-child {
  84. padding-left: 10px;
  85. border-radius: 5px 0 0 5px; /*to match with the parent's radius*/
  86. font-size: 18px;
  87. }
  88. &:first-child::before {
  89. left: 14px;
  90. }
  91. &:last-child {
  92. border-radius: 0 5px 5px 0; /*this was to prevent glitches on hover*/
  93. padding-right: 20px;
  94. }
  95. &.active,
  96. &:hover {
  97. background: #333;
  98. background: linear-gradient(#333, #000);
  99. }
  100. &.active::after,
  101. &:hover::after {
  102. background: #333;
  103. background: linear-gradient(135deg, #333, #000);
  104. }
  105. &::after {
  106. content: '';
  107. position: absolute;
  108. top: 0;
  109. right: -14px; // half of square's length
  110. // same dimension as the line-height of .breadcrumb-item
  111. width: 30px;
  112. height: 30px;
  113. transform: scale(0.707) rotate(45deg);
  114. // we need to prevent the arrows from getting buried under the next link
  115. z-index: 1;
  116. // background same as links but the gradient will be rotated to compensate with the transform applied
  117. background: linear-gradient(135deg, $btn-inverse-bg, $btn-inverse-bg-hl);
  118. // stylish arrow design using box shadow
  119. box-shadow: 2px -2px 0 2px rgb(35, 31, 31), 3px -3px 0 2px rgba(255, 255, 255, 0.1);
  120. // 5px - for rounded arrows and
  121. // 50px - to prevent hover glitches on the border created using shadows*/
  122. border-radius: 0 5px 0 50px;
  123. }
  124. // we dont need an arrow after the last link
  125. &:last-child::after {
  126. content: none;
  127. }
  128. }