_header.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .wp-site-blocks {
  2. position: relative; // This is needed so that the polygon is stretched across the whole site.
  3. }
  4. .site-header {
  5. overflow: inherit;
  6. padding: 10px var(--wp--custom--post-content--padding--left) 60px; // TODO: Maybe replace with a responsive custom variable?
  7. @include break-small() {
  8. padding: var(--wp--custom--post-content--padding--left);
  9. }
  10. .wp-block-site-logo {
  11. margin-right: var(--wp--custom--margin--horizontal);
  12. @include break-small-only(){
  13. flex-basis: 100%;
  14. margin: 20px 0;
  15. text-align: center;
  16. }
  17. a > img {
  18. height: 64px;
  19. width: auto;
  20. }
  21. }
  22. .wp-block-site-title {
  23. margin: 0;
  24. }
  25. .wp-block-navigation {
  26. margin-left: auto;
  27. padding-right: 0;
  28. }
  29. .wp-block-site-tagline {
  30. margin: 0;
  31. @include break-small-only() {
  32. padding-left: 0 !important;
  33. flex-basis: 100%;
  34. order: 10;
  35. }
  36. }
  37. &:before {
  38. content: "";
  39. background-color: var(--wp--custom--color--secondary);
  40. position: absolute;
  41. bottom: 0;
  42. top: 0;
  43. left: 0;
  44. right: 0;
  45. z-index: -1;
  46. @include break-small-only() {
  47. clip-path: polygon(0 0, 100vw 0, 100vw 50vw, 52vw 83vw, 0 20vw);
  48. }
  49. @include break-small() {
  50. clip-path: polygon(0 0, 100vw 0, 100vw 37vw, 52vw 70vw, 0 5vw);
  51. }
  52. @include break-large() {
  53. clip-path: polygon(13vw 0, 100vw 0, 100vw 16vw, 50vw 51vw);
  54. }
  55. }
  56. }