Created
October 11, 2013 06:11
-
-
Save fatuk/6930268 to your computer and use it in GitHub Desktop.
Class naming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Class naming</title> | |
</head> | |
<style> | |
/* LESS */ | |
.main-menu { | |
&__list { | |
&:extend(.clearfix all); | |
list-style: none; | |
} | |
&__item { | |
float: left; | |
padding: 10px; | |
} | |
&__link { | |
.active { | |
} | |
&:hover { | |
} | |
} | |
} | |
</style> | |
<body> | |
<nav class="main-menu"> | |
<ul class="main-menu__list"> | |
<li class="main-menu__item"> | |
<a href="#" class="main-menu__link active">Item</a> | |
</li> | |
<li class="main-menu__item"> | |
<a href="#" class="main-menu__link">Item</a> | |
</li> | |
<li class="main-menu__item"> | |
<a href="#" class="main-menu__link">Item</a> | |
</li> | |
</ul> | |
</nav> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment