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. Overlay feature - height specification for overlay page

Overlay feature - height specification for overlay page

Scheduled Pinned Locked Moved General Discussion
16 Posts 3 Posters 1.8k Views 2 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.
  • G
    G
    Glyph
    wrote on last edited by Glyph
    #7

    Ok without being greedy. Is there a way to add a drop shadow to an overlay page? So that it looks more like it's floating onto of the page?

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

      sure!

      .lay-overlay{
          box-shadow: 5px 5px 5px rgba(0,0,0,0.5);
      }
      
      G 1 Reply Last reply
      0
      • arminunruhA arminunruh

        sure!

        .lay-overlay{
            box-shadow: 5px 5px 5px rgba(0,0,0,0.5);
        }
        
        G
        G
        Glyph
        wrote on last edited by
        #9

        @arminunruh You are Yoda. Thankyou.

        1 Reply Last reply
        0
        • arminunruhA arminunruh

          use these settings:

          image.png

          add this in:
          lay options -> custom css & html -> custom css for desktop

          .lay-show-overlay.lay-slide-from-right{
              transform: translateX(-50px)!important;
          }
          .lay-slide-from-right{
              top: auto!important;
              bottom: 50px!important;
          }
          .lay-overlay > .lay-content{
              height: 500px!important;
          }
          

          add this in:
          lay options -> custom css & html -> custom css for mobile

          .lay-show-overlay.lay-slide-from-right{
              transform: translateX(-50px)!important;
          }
          .lay-slide-from-right{
              top: auto!important;
              bottom: 50px!important;
          }
          .lay-overlay > .lay-content{
              height: 300px!important;
          }
          

          will result in:

          1c0a253f-3bd8-4627-b66d-d128bc6da4e3-image.png

          G
          G
          Glyph
          wrote on last edited by
          #10

          @arminunruh I have tested the positioning code you have shown, the challenge is I only want to apply it to one overlay, not all of them (because I use overlays as slide out menus). I have tried to target the overlay id, but it won't work no matter what I do. This is the code I keep arriving at but still no luck. What am I doing wrong here?

          /* 1. Only transform this specific overlay */
          .lay-overlay .overlay-id-974.lay-show-overlay.lay-slide-from-right {
            transform: translateX(-50px) !important;
          }
          
          /* 2. Only reposition this specific overlay */
          .lay-overlay .overlay-id-974.lay-slide-from-right {
            top: auto !important;
            bottom: 50px !important;
          }
          
          /* 3. Only set height for this specific overlay */
          .lay-overlay .overlay-id-974 {
            height: 300px !important;
          }
          
          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by arminunruh
            #11

            your selectors are not correct, they should be like:

            desktop CSS:

            .overlay-id-2381.lay-show-overlay.lay-slide-from-right{
                transform: translateX(-50px)!important;
            }
            .overlay-id-2381.lay-slide-from-right{
                top: auto!important;
                bottom: 50px!important;
            }
            .overlay-id-2381.lay-overlay > .lay-content{
                height: 500px!important;
            }
            
            .overlay-id-2381.lay-overlay{
                box-shadow: 5px 5px 5px rgba(0,0,0,0.5);
            }
            

            mobile CSS

            .overlay-id-2381.lay-show-overlay.lay-slide-from-right{
                transform: translateX(-50px)!important;
            }
            .overlay-id-2381.lay-slide-from-right{
                top: auto!important;
                bottom: 50px!important;
            }
            .overlay-id-2381.lay-overlay > .lay-content{
                height: 300px!important;
            }
            

            (instead of 2381 use 974)

            1 Reply Last reply
            0
            • G
              G
              Glyph
              wrote on last edited by
              #12

              Thankyou Armin. That works!

              1 Reply Last reply
              0
              • G
                G
                Glyph
                wrote on last edited by Glyph
                #13

                Sorry one more query on this. On mobile, I want the overlay to site centred full width at the bottom of the screen with 10px on each side. However again struggling to get this working. I've gotten this far but it causes issues. The overlay close button no loner works and its become buggy.

                .overlay-id-974.lay-slide-from-right {
                  top: auto !important;
                  bottom: 30px !important;
                  left: 50% !important;
                  transform: translateX(-50%) !important;
                }
                
                1 Reply Last reply
                0
                • arminunruhA
                  arminunruhA
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #14

                  image.png

                  mobile css:

                  .overlay-id-3506.lay-show-overlay.lay-phone-slide-from-right{
                      transform: translateX(0px)!important;
                  }
                  .overlay-id-3506.lay-phone-slide-from-right{
                      top: auto!important;
                      bottom: 0px!important;
                      left: 10px!important;
                      right: 10px!important;
                      width: auto!important;
                  }
                  .overlay-id-3506.lay-overlay > .lay-content{
                      height: 50svh!important;
                      /* or height: 300px!important; */
                  }
                  

                  use your id instead of 3506

                  1 Reply Last reply
                  0
                  • G
                    G
                    Glyph
                    wrote on last edited by
                    #15

                    Thankyou this is perfect. I spend half a day tweaking code that just never works as I really want ir. Appreciate the help.

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

                      sure no problem!

                      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
                      _
                      _Luccer
                      GonzaloG
                      Gonzalo
                      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