I am trying to achieve this
But so far I managed to do this
I am not able to position the transformed square to the left, and I dont know how to create the outer border.
I thought of adding a margin to it but it did not work.
:root {
--primary: #0098fa;
--accent: #effaff;
--dark: #394e67;
--darker: #2f3640;
}
.ts-divider {
position: absolute;
z-index: 1;
width: 21px;
height: 21px;
transform: translateY(100%);
color: var(--primary);
}
.ts-divider:after {
content: '';
position: absolute;
z-index: 1;
width: 100px;
height: 1px;
top: 10px;
background-color: currentColor;
opacity: .6;
}
.ts-divider span:before {
width: 70.75%;
height: 70.75%;
left: 3px;
top: 3px;
border: 1px solid var(--darker);
}
.ts-divider span::after {
width: 41%;
height: 41%;
left: 6px;
top: 6px;
background-color: var(--darker);
content: '';
position: absolute;
z-index: 1;
transform: rotate3d(0, 0, 1, 45deg);
border: 1px solid var(--primary);
}
<span class="ts-divider">
<span></span>
</span>

