Skip to content

Commit 44097eb

Browse files
authored
Added styling example
1 parent 236ddac commit 44097eb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ All options are optional so the module works out of the box.
102102
The global configured language of your MagicMirror is used by default in this module. Use the `language` config option to
103103
change it. See the Wikimedia Feed API reference for [supported languages](https://api.wikimedia.org/wiki/Feed_API/Language_support#Daily_featured_article).
104104

105+
## Styling
106+
107+
MM wraps the module content in a `div` with the module name as a CSS class, e.g. `<div class="MMM-OnThisDay"> ... </div>`. So you could just add something like this to your `css/custom.css`:
108+
109+
```css
110+
.MMM-OnThisDay {
111+
background: rgba(0, 0, 0, 0.35);
112+
}
113+
```
114+
105115
## Problems
106116

107117
If you have any problems or questions, feel free to open an issue. There are many possible improvements for this module so please let me know if you miss something.

0 commit comments

Comments
 (0)