Hi, I am constantly scrolling down quite large journal pages and often loose track of what date page I am on. Is it maybe possible, with CSS, to have the Page Name or Journal Date to remain on screen even if the content would likely scroll it off screen?
I had no luck to center it to the center-pane and have it re-adjust correctly when the right sidebar would be triggered so I ended up leaving it left-aligned.
Until anyone with css knowledge chimes in, this is my best as I use the Inspector to find the appropriate div and work with chat-gpt to iron out kinks …
but it also catches all the breadcrumbs of Queries and stuffs them at the top in a mess … maybe there is a way to filter just the breadcrumbs of the block I am zoomed in onto …
.page > div > div > .mb-4:has(.breadcrumb.block-parents) {
position: sticky;
top: 0;
z-index: 999;
background: var(--ls-primary-background-color);
}
In general > is for performing checks to parent divs (in this case .page) and :has() to the children (in this case the right div is .md-4 that contains the breadcrumb).
Now a harder one… is it possible on the journals page (where you scroll through all the journals) to have in the sticky position the journal Page Name that the content of is visible on the screen? So when I scroll and another journal’s Page Name gets to the one with the sticky position it replaces it as sticky atop of the screen?
I don’t know if I can explain better and this is a long shot as I expect this to be impossible to do with CSS…
seems to work on the whole center pane, if I transform: translate it to move the title up a bit it moves the whole page-area around. Also z-index:999 manages to cover the Ctrl+F search. Solved this with z-index: 998.
for the age-Title I couldn’t make it above the containing DIV as it was taking too much space in its sticky position and was too low on the screen;
for the breadcrumbs I could use the transform: translate even if it is still sticky and could move it up just under the window title bar (which I could not for the Page-Title).
I am quite happy with the result. Here is the code: