Read the statement by Michael Teeuw here.
Docker and custom.css
-
I’ve a docker installation… where I need to put my custom.css file?
I need to generally downsize the font size a little.Thanks in advance.
-
@technofab see the doc(README.md) of the docker container
https://github.com/bastilimbach/docker-MagicMirror
/opt/magic_mirror/css/custom.css Mount this file to add your own custom css into the docker container. Important: You need to create the file before you run the container. Otherwise Docker will create a custom.css folder. -
I did’nt find that path in the container, but I follow the gh container instructions… so? 🤔
-
@technofab correct, its not IN the container, you need to CREATE a docker mount point at that path
-
This post is deleted! -
@technofab
docker takes a --volume=source:dest or a --mount src=,dest= to map a local folder/file into the container at a particular file system locationso, as this container wants the custom.css at /opt/magic_mirror/css/custom.css
the parm on docker run would be
--volume=local_path_to_custom_css:/opt/magic_mirror/css/custom.cssnotice the : between the source and dest
in a Windows environment where : also appears in driveletter:\path
u must use the --mount type parameter -
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 specifiedin 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… 🤔
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login