Read the statement by Michael Teeuw here.
How add transparent background to modules
-
-
@sean
Thank you for the examples. However neither of the two worked. If you think of anything else to try, I will implement.
Again, thank you for all of your help.
Johnny
-
@johnny_swindle
Ok. Let’s start from the first step. What did you mean ‘transparency’ of module? You said for readability, but in that case which you need is ‘non-transparency’ of modules. What did you expect and what have you got really?
Then, all fails of your pervious trial seems somewhat weird. because those css statements are very simple so it is hard not to work.
Other CSS worked? Likeborder: 1px solid #F00;
? Only background transparency didn’t? -
@sean
I have attached a screen shot of the output of one of my calendars:
I would like to be able to have the “background” of the calendar a shade of a transparent gray so that I am able to read the text but still be able to tell what is under the gray “background”.
I hope I did a better job of explaining what I am attempting to do. I know it is very important that the appropriate verbiage is used when attempting to explain an issue. Otherwise everyone remains confused.
Again…
Thanks for all you help.
Johnny
-
@johnny_swindle
(Sorry, my captured image was too huge to upload, so I resized, but image became somewhat blurred)add this into your
~/MagicMirror/css/custom.css
.module.calendar { background-color:rgba(0,0,0,0.6); border-radius:8px; padding:8px; }
If it work,
Instead you can use this also..module { background-color:rgba(0,0,0,0.6); border-radius:8px; padding:8px; }
-
This bg css is working great @Sean .
I actually used this in the @shbatm mmm-carousel as a custom css class.
-
@sean
Thank you…that did the trick.
-
I have the same problem.
Was searching for this on the forum.
Will try Sean’s solution tonight. -
@Sean said in How add transparent background to modules:
.module.calendar {
background-color:rgba(0,0,0,0.6);
border-radius:8px;
padding:8px;
}I have tried this format …
.module.calendar { background-color:rgba(0,0,0,0.6); border-radius:8px; padding:8px; }
and it works perfect for most modules but simply will not work for currentweather, weatherforecast or compliments?
Any ideas folks? -
Show us your css code that you are trying to use
@JonoGee said in How add transparent background to modules:
I have tried this format …
.module.calendar { background-color:rgba(0,0,0,0.6); border-radius:8px; padding:8px; }
and it works perfect for most modules but simply will not work for currentweather, weatherforecast or compliments?
Any ideas folks?