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

Module Border Removal Issue

Scheduled Pinned Locked Moved Solved Custom CSS
14 Posts 3 Posters 2.6k Views 3 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.
  • M Offline
    matt216
    last edited by Jul 6, 2021, 10:10 AM

    Hi.
    I have used custom.css to remove the border lines between modules by inserting:

    header  {
            border-bottom: none;
    }
    
    

    However just one module is still showing it - the MMM-MyCommute module, bottom left of screen. Can anyone advise how I might remove?
    Mirror and custom.css below.

    mirror-css.png

    Thanks

    S A 3 Replies Last reply Jul 6, 2021, 11:59 AM Reply Quote 0
    • S Away
      sdetweil @matt216
      last edited by Jul 6, 2021, 11:59 AM

      @matt216 I don’t know the answer. but which one are you using? there are two

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • A Offline
        ankonaskiff17 @matt216
        last edited by Jul 6, 2021, 12:43 PM

        @matt216 Maybe some version of
        .module.mymodule .header { yada yada }

        .mymodule .header { yada yada }

        SWAG on my part in some respects.

        1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @matt216
          last edited by sdetweil Jul 6, 2021, 1:08 PM Jul 6, 2021, 12:44 PM

          @matt216 appears it is using a separator line between destinations

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Jul 6, 2021, 12:57 PM Reply Quote 0
          • A Offline
            ankonaskiff17 @sdetweil
            last edited by ankonaskiff17 Jul 6, 2021, 1:12 PM Jul 6, 2021, 12:57 PM

            @sdetweil When you address header as in the question above are you not speaking to the page as a whole?
            Some modules have headers effectively turned on while others have header turned off.
            I know that it pays to look at how each individual module is configured by its author.
            If author of module in question is setting that property in their module CSS which one will take precedence, the
            header { property}
            or
            .mymodule {property}

            The following is from my big screen nightmare project via @Piranha1605 and is for setting border color but I think would be applicable to other module properties as well.

            .module.MMM-CalendarExt2,
            .module.weather,
            .module.currentweather,
            .module.calendar,
            .module.MMM-Pollen,
            .module.MMM-SystemStats {
             background-color:#2a313b;
             border-radius:8px;
             padding:8px;
             box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
            }
            S 1 Reply Last reply Jul 6, 2021, 1:12 PM Reply Quote 0
            • S Away
              sdetweil @ankonaskiff17
              last edited by Jul 6, 2021, 1:12 PM

              @ankonaskiff17 notice I didn’t say header… I said separator…

              I do not know how it is formed

              open the dev window, per the linked topic, select the elements tab, and the pointer,
              move the mouse to the line, and click

              look at the classes definition on the right for that line

              in the upper right use display:none to turn it off…

              if the class has module defined classname use that in custom.css
              else use the

              .modulename .??? whatever class it is {
              display:none;
              }
              css setting

              you can lso copy/paste the top right window of css styles into a css entry in custom.css without retyping them

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                matt216
                last edited by Jul 6, 2021, 1:54 PM

                Thanks for your help.
                For more context there are two different commute/traffic modules (I’m testing out the accuracy of the two side-by-side) - MMM-MyCommute and then MMM-Traffic.

                I have set border-bottom: none addressing header to address the page as a whole, yes. I do not want any of the modules to display the separating line between them.

                The module MMM-MyCommute is the one with the border-bottom showing. Thanks for the dev tools tip - I can see the page loading:

                .MMM-MyCommute .row {
                  position: relative;
                  padding: 1px;
                  border-bottom: solid 1px #222;
                  min-height: 35px;
                  min-width: 390px;
                }
                

                However if I put the following in custom.css it doesn’t change anything…

                .MMM-MyCommute .row     {
                        border_bottom: 0;
                }
                
                

                Thanks again

                S 1 Reply Last reply Jul 6, 2021, 1:56 PM Reply Quote 0
                • S Away
                  sdetweil @matt216
                  last edited by sdetweil Jul 6, 2021, 1:57 PM Jul 6, 2021, 1:56 PM

                  @matt216 its

                  none	Specifies no border. This is default
                  

                  border-bottom:none;

                  you should be able to provide that in the dev window,

                  top right window type border-bottom and none
                  hit enter

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    matt216
                    last edited by matt216 Jul 6, 2021, 2:17 PM Jul 6, 2021, 2:15 PM

                    Got it!

                    I had border_bottom in the custom.css whereas I need border-bottom … classic typo.

                    Interesting I need the line specifically calling out that class. The header address which sorts the rest of the page doesn’t seem to apply to the MMM-MyCommute module.

                    Thanks for recommending browser dev tools - helped me identify the class.

                    Matt

                    S 1 Reply Last reply Jul 6, 2021, 2:27 PM Reply Quote 1
                    • S Away
                      sdetweil @matt216
                      last edited by Jul 6, 2021, 2:27 PM

                      @matt216 said in Module Border Removal Issue:

                      Thanks for recommending browser dev tools - helped me identify the class.

                      yes, and it really eliminates the ‘try this, nope, try this, nope… loop’

                      AND if u set the style in that upper right window that does what you want,
                      you can swipe select them all and copy /paste them into your css entry

                      (whose name would be listed at the bottom of the middle panel)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 1 Reply Last reply Jul 6, 2021, 2:33 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/14
                        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