-
Notifications
You must be signed in to change notification settings - Fork 9
Styling a module
Edmund edited this page Mar 25, 2018
·
8 revisions
It's important to distinguish between styling a module, and structuring a module with CSS. Styling a module in this context is to change its look and feel without altering position or layout.
Click here to learn how to edit a module's layout and position
To style a module, you can pass CSS values as configuration (learn more about module configuration):
{
"myModule": {
"font-size": "14px",
"background-color": "#424242",
"some-other-property": true
}
}
.myModule, [class*="myModule-"] {
font-size: 14px;
background-color: #424242;
}
See the
Components
section
See the
Modifiers
section
Whilst it is certainly possible to pass layout and structural CSS to a module through configuration, it is not recommended.