Add block generator logic.

Now we are able to generate new blocks with yeoman.
This commit is contained in:
2022-04-30 01:04:36 +03:00
parent d3b25e2ef5
commit 82362b3ab2
23 changed files with 26579 additions and 12478 deletions
@@ -0,0 +1,40 @@
/**
* Use "rem" instead of pixels. 1rem = 16pixels
* No need to use rem in situations of "1px". (usually used for borders width).
*
* Use BEM naming system for class names: http://getbem.com/naming/
*
* Use Mobile First approach.
* Start with mobile device styling and then focus on other screen sizes by using @media (min-width: ...px).
*
*/
.<%= blockClassName %> {
&__header {
// Header Mobile.
@media (min-width: 1024px) {
// Header Desktop.
}
&-heading {
// Child Element.
}
}
&__visual {
&-image {
// Example of BEM usage.
}
}
&__content {
}
&__footer {
}
}