How can I create this nav style?

Can someone tell me how to create this nav menu with the line but set at a px width. The hover color must change the text and the line.

Thank you