Simplify clip-path calculation
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
25b8ef7dc5
commit
4d86f502b1
|
@ -27,7 +27,7 @@ body {
|
||||||
@media screen and (min-width: $small) {
|
@media screen and (min-width: $small) {
|
||||||
&::before {
|
&::before {
|
||||||
background: url(/stars.svg) repeat-x top;
|
background: url(/stars.svg) repeat-x top;
|
||||||
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, calc(100% - (100% - 1000px) / 2) 100%, calc(100% - (100% - 1000px) / 2) $header-spacing, calc((100% - 1000px) / 2) $header-spacing, calc((100% - 1000px) / 2) 100%, 0% 100%);
|
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, calc(50% + 500px) 100%, calc(50% + 500px) $header-spacing, calc(50% - 500px) $header-spacing, calc(50% - 500px) 100%, 0% 100%);
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
height: $stars-height;
|
height: $stars-height;
|
||||||
|
|
Loading…
Reference in New Issue