- This topic has 21 replies, 4 voices, and was last updated 4 years, 11 months ago by
Elvin.
-
AuthorPosts
-
July 26, 2021 at 8:13 am #1871651
David
StaffCustomer SupportOops sorry was meant to provide the link to this doc:
July 26, 2021 at 11:10 am #1871876Atif
Alright done. I have added the snippet.
July 26, 2021 at 12:32 pm #1871955David
StaffCustomer SupportOk, so now try adding this CSS – note the screen has to be 1500px for it to move the ToC from the Content to the sticky left side:
@media(min-width: 1500px) { .single-post #page { max-width: 1500px; padding-left: 300px; position: relative; } div#ez-toc-container { position: absolute; top: 14px; left: 0; bottom: 0; max-width: 300px; background-color: transparent !important; border: none !important; width: 100%; z-index: 1; display: flex; flex-direction: column; border: none; } .custom-toc-wrapper, .ez-toc-title-container { position: -webkit-sticky; position: sticky; top: 90px; border-radius: 10px; border: 2px solid #000; box-shadow: 5px 0 #b20c20; border-style: dashed; background-color: #fff; overflow: hidden !important; } .ez-toc-title-container { top: 20px; padding: 20px; border-radius: 10px 10px 0 0; border-bottom-width: 0; } div#ez-toc-container p.ez-toc-title { font-size: 17px !important; } #ez-toc-container ul { margin: 20px !important; } }July 27, 2021 at 5:28 pm #1873644Atif
This looks awesome. Just as I wanted.
There is one very slight issue. The containers i.e the title and list container tend to overlap when I scroll. Not a huge issue, but I am afraid that this may cause CLS issues with Core Web Vitals scores.
July 28, 2021 at 12:06 am #1873887Elvin
StaffCustomer SupportHi there,
I checked the site and I didn’t see any overlap. But in case I’ve missed it, can you provide a screen recording of its occurrence? Is this happening on mobile as well? if yes, can you share the device you’ve checked it on?
Let us know. 😀
July 29, 2021 at 5:44 pm #1876403Atif
Yes nevermind, I checked again, looks good.
You guys are awesome. Thank you so much for helping me out with this.
Best Regards
AtifJuly 29, 2021 at 7:31 pm #1876466Elvin
StaffCustomer SupportNo problem. Glad to be of any help. 😀
-
AuthorPosts
- You must be logged in to reply to this topic.