You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.0 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //
  2. // Header
  3. // --------------------------------------------------
  4. #page-header {
  5. position: relative;
  6. margin: 0 auto;
  7. width: 100%;
  8. background-color: $header-bg;
  9. }
  10. // Header overlay (used for various reasons eg: loading or search)
  11. .overlay-header {
  12. position: absolute;
  13. top: 0;
  14. right: 0;
  15. bottom: 0;
  16. left: 0;
  17. background-color: $white;
  18. opacity: 0;
  19. transition: transform .2s ease-in-out, opacity .2s ease-in-out;
  20. transform: translateY(-100%);
  21. will-change: opacity, transform;
  22. z-index: 1;
  23. &.show {
  24. opacity: 1;
  25. transform: translateY(0);
  26. }
  27. }
  28. // Content header sections
  29. .content-header {
  30. display: flex;
  31. justify-content: space-between;
  32. align-items: center;
  33. margin: 0 auto;
  34. height: $header-height;
  35. @at-root #page-header & {
  36. padding-left: $space-mobile;
  37. padding-right: $space-mobile;
  38. @include media-breakpoint-up(md) {
  39. padding-left: $space-base;
  40. padding-right: $space-base;
  41. }
  42. }
  43. @at-root #sidebar &,
  44. #side-overlay & {
  45. padding-left: $space-side;
  46. padding-right: $space-side;
  47. }
  48. }