_page_header.scss 3.1 KB

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