eddiexing / f1-3-c2p1-colmar-academy

0 stars 0 forks source link

class naming convention #5

Open rimmesbe opened 6 years ago

rimmesbe commented 6 years ago

Try to avoid naming selectors with version numbers or letters and positional descriptions like left/right. Like long selector chains, this will also make your code rigid and hard to change. You want your classes to be modular and descriptive of the component being styled. Take a look at the BEM CSS naming convention: http://getbem.com/introduction/

https://github.com/eddiexxx/f1-3-c2p1-colmar-academy/blob/master/Colmar%20Academy/resources/css/style.css#L72