Read the statement by Michael Teeuw here.
Help with a couple CSS issues
-
@sdetweil Sam!
You’ve been a godsend. I’m going to give this a go when I get home later.
I can’t thank you enough for your time and patience.N
-
@nneuland to close the developer window u can click the close x in the top right, or ctrl-shift-i again
-
@sdetweil
For the NYC-Transit module Changing the font size within the the developers window was smooth as silk.
However, scaling in the custom.css has yielded nothing.
I have attached a screenshot of what I believe is the proper location.Removing the duration of individual albums seems more difficult considering every album in the collection is different, or it doesn’t have a location at all due to not being in the description.
To clarify, I should be modifying the “custom.css” (blank by default) file. not amending the specific mmm-nyc-transit.css or mmm-discogs.css files?
-
@nneuland so, in custom.css you need this pattern
.modulename (space) .classname { stylename: value; }
SO, in this case from the dev window
go up to the module_11_MMM-nyc-transit
remove the module_11_ prefix and add a dot
.MMM-nyc-transit
then we need the class name of the element u want to change
mta__train–list (add a dot in front)
now we have
.MMM-nyc-transit .mta__train--list {
it IS font-size: medium;
in main.css.medium { font-size: 30px; line-height: 35px; }
u want to change that, SO
.MMM-nyc-transit .mta__train--list { font-size: 20px; }
-
YES!!! My spacing was allllllll off.
You’re a genius! Thank you so much.You have the patience of a saint
N
-
@nneuland yes, spacing is critical… it means something else if there are NO spaces between items in the selector list ( stuff before open brace { )
something worth reading
https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works -
@sdetweil
Your so knowledgeable with this realm.
Can I ask, what you know about the hue module?Specifically, is it only displaying what lights are on, or is it interactive?
I’m genuinely curious what your smart mirror looks like.
If you have one, I imagine it’s incredible.N
-
@nneuland i am a moderator… i don’t know much about specific modules…
I know HOW to do some debugging and some limited css…
I also do the scripted installer and upgrader tools
i have 5 single board computers running different things… Pi0, Pi3, Pi4, Jetson Nano, and Odroid Xu4. also a vm with Macos catalina, and my desktop running ubuntu.
and I know how to google for answers…
there are lots of talented folks here… I reference their work. all the time…
-
@sdetweil
That’s great. Can’t thank you enough. -
@sdetweil I wonder if I can ask for some help? I have MMM-ip module that I’d like the change the font size. Following your instructions with dev tools I can see:
So I have put in my custom.css:
.MMM-ip .dimmed { font-size: 16px; }
But it doesn’t seem to take effect. Any advice?
Thanks in advance.
Matt