MagicMirror Forum

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

    Negative Margins - .region.fullscreen ??

    Custom CSS
    2
    2
    85
    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
      dlee last edited by

      What’s the purpose of the Negative margins here [in main.css] ??

      .region.fullscreen {
      position: absolute;
      top: calc(-1 * var(–gap-body-top));
      left: calc(-1 * var(–gap-body-left));
      right: calc(-1 * var(–gap-body-right));
      bottom: calc(-1 * var(–gap-body-bottom));
      pointer-events: none;
      }

      BKeyport 1 Reply Last reply Reply Quote 0
      • BKeyport
        BKeyport Module Developer @dlee last edited by

        @dlee my guess is to make sure to cover the entire screen, and not leave any edge.

        The "E" in "Javascript" stands for "Easy"

        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