    ul li:not(:first-child):last-child::before { display: none; }

    ul li:only-child::before {
        display: list-item;
        content: " ";
        position: absolute;
        width: 1px;
        background-color: #000;
        top: 5px;
        bottom: 7px;
        height: 7px;
        left: -10px;
    }

    ul li::after {
        content: " ";
        position: absolute;
        left: -10px;
        width: 10px;
        height: 1px;
        background-color: #000;
        top: 12px;
    }



    