Responsive and modularity rules
Modularity rules
Sizes rules :
/* DON'T */
.gm-block {
width: 25%;
/*
* 25% of what ? we should not be aware
* of our context in order to be reusable
*/
}/* DO, when it make sense */
.ga-icon {
width: 16px;
/* some blocks require fixed sizes */
}/* DO */
.ga-button {
display: inline-block /* or inline, or inline-flex */;
/* natural content's size */
&--full {
/* a modifier to set it to 100% */
width: 100%;
}
}Positioning rules :
Last updated