Read the statement by Michael Teeuw here.
organization of the text next to the icon.
-
@sdetweil I don’t have any modules with uper case letters (MMM- …) at the moment. Can you confirm the module class name is with uper case letters or is it changed to lower case?
In this situation, with a unique module name, it’s ok to identfy the module without the
.modulebut in general I’d say it’s best practice that if you want to address a specific module, you describe it as precise as possible.
E.g. there might be a module “image_frame” that you want to address but there’s also a module that somewhere within its structure has one div with the class “image_frame” that you don’t want to address. Then it’s absolutely necessary to address the target with.module.image_frame -
added “.modulo” before .MMM
-
And that worked? :thinking_face:
-
I noticed that the font color is erased. Why that ? the other modules have the strongest colors!
-
Because the creator of that module gave the wrapper the class name “dimmed” in line 38 …
-
@doubleT Unfortunately not.
-
@doubleT said in organization of the text next to the icon.:
esmaecido
what I put in place to make it clearer (alive)
-
Can you show me what your custom.css file looks like now?
-
.module.MMM-homeassistant-sensors table tr td:nth-of-type(2) { test-align: left; } .module.MMM-homeassistant-sensors table tr:nth-of-type(3) td, .module.MMM-homeassistant-sensors table tr:nth-of-type(6) td { border-bottom: 1px solid white; } .module.MMM-homeassistant-sensors table { border-spacing: 0; }note: I’m slow to answer because I have to wait 120s to post.
-
Oh, I noticed a typo – even though that’s not the reason it’s not working. Change te_s_t-align to text-align, please. ;)
What’s the name of the module in your config file?
-
@doubleT said in organization of the text next to the icon.:
x t-align
MMM-homeassistant-sensors
hitting the text did not appear the line either.
-
In that case the css should work. And the css file is named
custom.css? Exactly like that? And you restarted the mirror?Since we’re already working directly in the code: In the module js there’s a line
var tableElement = document.createElement("table");You can write a line directly after that:
tableElement.className = "homeassistant-table";Then you should be able to address the table in the cusom.css like this:
.homeassistant-table tr td:nth-of-type(2) { text-align: left; } .homeassistant-table tr:nth-of-type(3) td, .homeassistant-table tr:nth-of-type(6) td { border-bottom: 1px solid white; } .homeassistant-table { border-spacing: 0; }Is the text brighter now?
EDIT: tableElement, not table.Element
-
@doubleT said in organization of the text next to the icon.:
.homeassistant-table tr td:nth-of-type(2) {
text-align: left;
}
.homeassistant-table tr:nth-of-type(3) td,
.homeassistant-table tr:nth-of-type(6) td {
border-bottom: 1px solid white;
}
.homeassistant-table {
border-spacing: 0;
}do I delete the text from what was in the custom? or leave and put this?
-
Delete the previous code in custom.css if you added that className line in the module’s js.
-
If I put this line:
table.Element.className = "homeassistant-table";after
var tableElement = document.createElement("table");the module does not load
Another thing the text is still gray.
-
Oh, sorry, “tableElement” – remove the dot. Sorry.
-
The module loaded but without the lines yet.
Before you get tired LOL … please tell me how to make the text of the module more alive!
-
Remove the “dimmed” in line 38 of the code.
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