1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- .wp-site-blocks {
- position: relative; // This is needed so that the polygon is stretched across the whole site.
- }
- .site-header {
- overflow: inherit;
- padding: 10px var(--wp--custom--post-content--padding--left) 60px; // TODO: Maybe replace with a responsive custom variable?
- @include break-small() {
- padding: var(--wp--custom--post-content--padding--left);
- }
- .wp-block-site-logo {
- margin-right: var(--wp--custom--margin--horizontal);
- @include break-small-only(){
- flex-basis: 100%;
- margin: 20px 0;
- text-align: center;
- }
- a > img {
- height: 64px;
- width: auto;
- }
- }
- .wp-block-site-title {
- margin: 0;
- }
- .wp-block-navigation {
- margin-left: auto;
- padding-right: 0;
- }
- .wp-block-site-tagline {
- margin: 0;
- @include break-small-only() {
- padding-left: 0 !important;
- flex-basis: 100%;
- order: 10;
- }
- }
- &:before {
- content: "";
- background-color: var(--wp--custom--color--secondary);
- position: absolute;
- bottom: 0;
- top: 0;
- left: 0;
- right: 0;
- z-index: -1;
- @include break-small-only() {
- clip-path: polygon(0 0, 100vw 0, 100vw 50vw, 52vw 83vw, 0 20vw);
- }
- @include break-small() {
- clip-path: polygon(0 0, 100vw 0, 100vw 37vw, 52vw 70vw, 0 5vw);
- }
- @include break-large() {
- clip-path: polygon(13vw 0, 100vw 0, 100vw 16vw, 50vw 51vw);
- }
- }
- }
|