This repository is a collection of vanilla HTML/CSS components written using the BEM methodology for Hactoberfest.
Fork this repository
- Write a comment and
<section>tag in theindex.htmlfile:
<!--
Username
Description of component
Available modifiers
-->
<section class="my-block">
...
</section>- Create a pull request for your HTML!
- Write your CSS block ruleset in
style.css:
/* ====================
My Component
======================*/
/* Block */
.my-block{
...
}- Create a pull request for your CSS!
- Write your CSS __elements in
style.css:
/* Elements */
.my-block__elem1{
...
}
.my-block__elem2{
...
}
...- Create a pull request for your CSS!
- Write your CSS --modifiers in
style.css:
/* Modifier one */
.my-block--mod1{
...
}
.my-block--mod1 .my-block__elem1{
...
}
...- Create a pull request for your CSS!