Read the statement by Michael Teeuw here.
organization of the text next to the icon.
-
Ok, please keep in mind that this is not the best solution (working directly in the code).
If you want to make the changes via custom.css file, try this:
(Now, since the module is called “MMM-homeassistant-sensors” I’m going to assume the element is identifiable with _“.module.MMM-homeassistant-sensors” …)
Tell each 2nd cell to align its content left:
.module.MMM-homeassistant-sensors table tr td:nth-of-type(2) { text-align: left; }
Tell the cells of the 3rd and 6th line to have a bottom border line:
.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; }
If the line is separated, try:
.module.MMM-homeassistant-sensors table { border-spacing: 0; }
EDIT: There was an error, it’s text-align, of course. Not test-align.
-
Let me see if I got it. I need to change the custom.css file. Where is it located?
in the css folder. I only have the main.css file
-
Create a file named “custom.css” and put the code from above inside it.
-
@doubleT said in organization of the text next to the icon.:
.module.MMM-homeassistant-sensors table {
border-spacing: 0;
}nothing happened. This is the same way. He did not create the lines.
-
Yeeeeah … what about the one above that? The 2nd part. ;)
-
@iorifly take the .module prefix off, not needed
-
@sdetweil ok
-
-
The content of the custom.css should be:
.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; }
All of it. Not just the last part.
-
@doubleT said in organization of the text next to the icon.:
.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;
}.MMM-homeassistant-sensors table tr td:nth-of-type(2) { test-align: left; } .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; } .MMM-homeassistant-sensors table { border-spacing: 0; }