A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Docker and custom.css
-
Thanks and merry Christmas
-
OK I finally put my custom empty file custom.css now: i edit to limit default module calendart in witdh so:
body { } .module.calendar { width:50px; }
Stop and restart container but nothing change. What I’m missing?
-
well, two things
- do not use ‘.module’ in front of the module name
- there is no single style that will set the width…
there are these classes (from the calendar README)
| `symbolClass` | Add a class to the cell of symbol. default 'symbol' | `titleClass` | Add a class to the title's cell. default 'title' | `timeClass` | Add a class to the time's cell. default 'time' and 'tableClass' which might be usable to contain the overall width, default not specified
in a sample I did this in custom.css
.calendar .title { color : blue; } .calendar .fribble { background-color:rgba(32,32,32,0.6); border-radius:8px; padding:8px; }
and in config.js for the calendar module
config:{ tableClass:'fribble' }
-
@technofab you can also confirm your custom.css is in the right place by doing
docker exec container_id (or name) cat /opt/magic_mirror/css/custom.css
that should match yours
-
@sdetweil ok I was assuming is necessary add .module, now works.
I find some example that use that keyword… 🤔