Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 456 Views
  • 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.
  • arminunruhA arminunruh

    the height of an overlay depends on the height of your rows in your overlay

    so if u want a full-height overlay, just in your overlay page, create a row, right click → use browser height for row height, then set frame top and frame bottom to 0

    J Offline
    J Offline
    jj7ks
    wrote on last edited by
    #3

    Hey @arminunruh thanks for the answer !
    But I described it a little unclear, i'm sorry. I didn't want the overlay page to fill 100% of the page, but only, lets say, 95% in height.

    i guess in the style css it would mean a different max-height-value, like this

    .lay-overlay > .lay-content {
      background-color: white;
      overflow-y: auto;
      max-height: 95vh;
    
    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #4

      oh yea

      yea if that css works, thats a good solution

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

        Is there a way to position the overlay more specifically so it's for example in the bottom right hand corner, 50px from the bottom and right edge of the browser window? Then on mobile maybe it's just in the bottom third of the window?

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

          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 1 Reply Last reply
          0
          • G Offline
            G Offline
            Glyph
            wrote 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 Offline
              arminunruhA Offline
              arminunruh
              Global Moderator
              wrote 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 Offline
                G Offline
                Glyph
                wrote 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 Offline
                  G Offline
                  Glyph
                  wrote 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 Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote 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 Offline
                      G Offline
                      Glyph
                      wrote last edited by
                      #12

                      Thankyou Armin. That works!

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        Glyph
                        wrote 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 Offline
                          arminunruhA Offline
                          arminunruh
                          Global Moderator
                          wrote 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 Offline
                            G Offline
                            Glyph
                            wrote 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 Offline
                              arminunruhA Offline
                              arminunruh
                              Global Moderator
                              wrote last edited by
                              #16

                              sure no problem!

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              I also code custom websites or custom Lay features.
                              šŸ’æ Email me here: šŸ’æ
                              info@laytheme.com

                              Before you post:
                              1. When using a WordPress Cache plugin, disable it or clear your cache.
                              2. Update Lay Theme and all Lay Theme Addons
                              3. Disable all Plugins
                              4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                              This often solves issues you might run into

                              When you post:
                              1. Post a link to where the problem is
                              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                              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