Is there possibility to achieve it only with gradient property? How it should look like:
I've tried this but it does not split it correctly.
@mixin content-cropped-shape($color, $color2){
background: $color;
background: linear-gradient(135deg,$color 0%, $color 50%, $color2 50%, $color2 100%);
}


to [side] [side]syntax like in this answer instead of angles. That answer also has an explanation on why the angled gradient doesn't always produce a triangle. You may find it helpful :) - Harry