Modify to cover pseudo element :before with display = block