transparent calc(50% - 1px),
1px всегда был 1 пикселемdiv:before {
content: "";
position: absolute;
left: 0;
top: 100%;
width: 100%;
height: 2.5vmin;
background: linear-gradient(
to right top,
transparent calc(50% - 1px),
#1e1e1e 50%
);
}