MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Make a remove header space or overlap two modules

    Custom CSS
    2
    7
    543
    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.
    • halacabullas
      halacabullas last edited by halacabullas

      Hi.
      I have been searching a lot in the forum, and i know this already have been discused several times, the thing is that i am able to hidde a module header, but i’m can not get this space to be removed. So is there a way for this space to be removed, or at least be overlaped by other module?
      Captura de pantalla (187).png.
      This is the actual custom css i’m using. All the code was found in the found forum, my knowledge about coding is 0 (i can understand it, but no idea of actual coding)

      	.weatherforecast .module-header { 
      	visibility: hidden; 
      	}
      	.currentweather {
           background-color:rgba(0,0,0,0.1);
           border-radius:10px 10px 0px;
           padding:4px;
           margin-bottom:0px;
      	}
      			.weatherforecast {
           background-image: linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));
           border-radius:0px 0px 10px;
           padding:4px;
      	}
      	.currentweather { background-color:rgba(0, 0, 255, 1);
      	opacity: 0.6;
      	}
      	.weatherforecast { background-color:rgba(0, 255, 0, 1);
      	opacity: 0.6;
      	}
      

      i have tried display: none; instead of: visibility: hidden; but didn’t work out.

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @halacabullas last edited by

        @halacabullas can u identify the element in the developers window? ctrl-shift-i, elements tab,
        then use the pointer as I suggested on discord.

        then edit it’s styles.

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • halacabullas
          halacabullas last edited by

          @sdetweil i can identify that there is a script for every module, but seems to me,that i can not access to a single module to edit it, they are all clump together (could be mistaken im pretty noob)
          screenshots here

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @halacabullas last edited by sdetweil

            @halacabullas edit the main.css and comment our cursor:none; in body , like this

            html {
              /*cursor: none; */
              overflow: hidden;
              background: #000;
              user-select: none;
            }
            

            then u can se the mouse over the mm page content

            then ctrl-shift-i, and select the elements tab

            expand the left nav to the region, top, right (in my case), expand, find modules,
            expand, select module, see element tree to right
            add background-color:blue;
            if header still displayed, add change display:block the display :none
            (top right, blue circle)
            (just click in the element ares to edit, add, delete styles)

            middle, red circle is the class tree of the element… rightmost is closest to custom.css

            Screenshot at 2021-03-15 10-20-06.png

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • halacabullas
              halacabullas last edited by sdetweil

              @sdetweil If i change the display from block to none. that works. And put everything just where i want it. (I know i have like 0 knowlege about it) but is there a way to save the modified html code? seems like if i close and reopen the mm it’s back to normal.
              Also the edit generates like this kind of code, that i tried to add to the custom css, i tried like this, changing to .module header, and other similar stuff but nothing works
              adjusted.jpg

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @halacabullas last edited by

                @halacabullas well, all good except u missed my one step , finding the info for custom.css

                u need the module name and the element class name

                see in the editor view, the stuff circled in green (take off the module_number_, and the ‘module’ prefixes )

                .weatherforecast .module-header {
                display: none !important;
                }

                sometimes u need the force the priority of the style, with !important

                Sam

                Create a working config
                How to add modules

                halacabullas 1 Reply Last reply Reply Quote 0
                • halacabullas
                  halacabullas @sdetweil last edited by

                  @sdetweil THAT WAS IT. THANK YOU SO MUCH <3333

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy