JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>Кабинет</li>
<li>Двухстрочный<br>кабинет</li>
<li><input type="text"></li>
<li>Кабинет</li>
<li>Кабинет</li>
<li><textarea></textarea></li>
</ul>
CSS
* { margin: 0; padding: 0; list-style: none; }
ul {
/* border-left: 1px dotted #000; */
margin-left: 25px;
}
li {
padding: 10px 0;
padding-left: 20px;
line-height: 20px;
position: relative;
}
li:before {
content: '';
position: absolute;
width: 15px;
margin-right: 5px;
left: 0;
height: 1px;
border-top: 1px dotted #000;
top: 50%;
}
li:after{
content: '';
position: absolute;
border-left: 1px dotted #000;
height: 100%;
width: 1px;
left: 0px;
top: 0px;
}
li:last-child:after{
height: 50%;
}
li:first-child:after{
height: 50%;
top: 50%;
}