• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

organization of the text next to the icon.

Scheduled Pinned Locked Moved Custom CSS
48 Posts 3 Posters 15.0k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    doubleT Module Developer
    last edited by doubleT Jan 18, 2020, 8:34 PM Jan 18, 2020, 7:55 PM

    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.

    1 Reply Last reply Reply Quote 0
    • I Offline
      iorifly
      last edited by Jan 18, 2020, 7:57 PM

      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

      1 Reply Last reply Reply Quote 0
      • D Offline
        doubleT Module Developer
        last edited by Jan 18, 2020, 7:58 PM

        Create a file named “custom.css” and put the code from above inside it.

        1 Reply Last reply Reply Quote 0
        • I Offline
          iorifly
          last edited by Jan 18, 2020, 8:01 PM

          @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.

          S 1 Reply Last reply Jan 18, 2020, 8:03 PM Reply Quote 0
          • D Offline
            doubleT Module Developer
            last edited by Jan 18, 2020, 8:02 PM

            Yeeeeah … what about the one above that? The 2nd part. ;)

            I 1 Reply Last reply Jan 18, 2020, 8:06 PM Reply Quote 0
            • S Offline
              sdetweil @iorifly
              last edited by Jan 18, 2020, 8:03 PM

              @iorifly take the .module prefix off, not needed

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              I 1 Reply Last reply Jan 18, 2020, 8:04 PM Reply Quote 0
              • I Offline
                iorifly @sdetweil
                last edited by Jan 18, 2020, 8:04 PM

                @sdetweil ok

                1 Reply Last reply Reply Quote 0
                • I Offline
                  iorifly @doubleT
                  last edited by Jan 18, 2020, 8:06 PM

                  @doubleT

                  excuse. LOL

                  I did not understand.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    doubleT Module Developer
                    last edited by Jan 18, 2020, 8:07 PM

                    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.

                    1 Reply Last reply Reply Quote 0
                    • I Offline
                      iorifly
                      last edited by Jan 18, 2020, 8:08 PM

                      @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;
                      }
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 3 / 5
                      3 / 5
                      • First post
                        24/48
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy