For the ::before and ::after pseudo-elements to function properly, they must have a defined content property.
::before
::after
content
https://codepen.io/yidajiabei/full/PobmpXy
source