I am learning about BEM (CSS) methodology and am not sure about the following example:
Suppose I am building a navigation block which I want to use in a navigation bar and also on other places on the page.
<div class="navbar">
<ul class="nav">
<li class="nav__item"><a href="#" class="nav__link"><?php _e( 'My account', 'phytoreform' ); ?></a></li>
<li class="nav__item"><a href="#" class="nav__link"><?php _e( 'Log in', 'phytoreform' ); ?></a></li>
</ul><!--End .nav-->
</div><!--End .navbar-->
In the example above you can see the .nav
block is placed inside the .navbar
. Which classes should I add to style the .nav
, .nav__item
and .nav__link
inside the .navbar
bar specifically?