What is the most efficient way to create nested square-elements with minimal markup? I am aware that :after/:before cannot be stacked multiple times on the same element, so what would be the best way to achieve a structure like this?
I am also facing challenges in replicating the structure shown (I am using bootstrap4) in general. Flexbox doesn't seem to be the right solution. Any recommendations?