_page_header.scss 3.1 KB

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