Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. mobile menu Style 1 - dark transparent background

mobile menu Style 1 - dark transparent background

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 455 Views 1 Watching
  • 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.
  • N
    N
    Nzagamba
    wrote on last edited by
    #1

    I would like to darken the background of the website, when my mobile menu style 1, drops down.
    The css rule of the background could be something like the bellow, but I couldn't figure out to what class or div I need to point this css to:

    /* Transparent full-page overlay behind the menu */
    .menu-overlay { /* what is the correct class???  */
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5); 
      opacity: 0;
      transition: opacity 0.25s ease;
      z-index: 1000;
    

    IMG_6408.jpg

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      well the container of your mobile nav does not span the whole page

      image.png

      otherwise you could just style the background of it

      the body has a class "mobile-menu-open"

      image.png

      so you could use that

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        i would just use

        .mobile-menu-open .lay-content,
        .mobile-menu-open .navbar,
        .mobile-menu-open .mobile-title,
        .mobile-menu-open .lay-mobile-icons-wrap{
        filter: brightness(50%);
        }

        1 Reply Last reply
        0
        • N
          N
          Nzagamba
          wrote on last edited by
          #4

          many thanks for this! Works great!

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search