Overlay panels
-
Nice ^^
-
@morg42 Thanks for your such detailed reply. Last petition (I promise), can somebody advise how the "x" for closing tabs, can be moved to the left side of the tab title? Inaccuracy makes me most of the time hover mouse out of the panel instead of clicking "x".
-
I love this mod, but I'm wondering if it's possible to get the panels closed by clicking or touching outside them. Something like this:
I want to check my last.fm scrobbles so I click on its icon in the side bar to open the panel. I check my scrobbles, I want to come back to what i was doing, so I click outside the panel and it disappears, keeping visible only the side bar.
I think it could be a very useful feature
I hope you'll understand what I'm trying to say because English is not my mother language XD
-
@holotaco said in Overlay panels:
I love this mod, but I'm wondering if it's possible to get the panels closed by clicking or touching outside them. Something like this:
I want to check my last.fm scrobbles so I click on its icon in the side bar to open the panel. I check my scrobbles, I want to come back to what i was doing, so I click outside the panel and it disappears, keeping visible only the side bar.
I think it could be a very useful feature
I hope you'll understand what I'm trying to say because English is not my mother language XD
And what if you want to click something on the page but still keep your panel open?
-
@kallon You simply change between 2 modes with the button, one closes on click outside, the other doesn't.
-
@holotaco Not exactly what you asked for, but did you try the code above?
It opens on "mouse touches side of windows" and closes on "mouse leaves panel area". This should mostly do what you want, no?
-
@kallon You can already do it with the code previously posted
@Morg42 I saw it, but I'm as precise as an elephant in a glassware XD
I think it's not the best solution for me but I don't pretend anyone to spend hir time to write lines of code. It's just a suggestion, maybe someone gets here and finds out ze need this feature like it's oxygen
I think I didn't write in English, sorry :c -
@holotaco precise... you're talking about "hitting" the border? I have enabled the small "panel switcher". If the window is not at the border of the screen, I also have to aim precisely; mostly the window does end at the screen border, so I just drive the mouse pointer into the left barrier. It can recuperate while I'm using the panel
Otherwise, it is possible to (re-)change the code so the panel container (with the icons) stays open all the time and only the panels fly out. Not as neat, but easier to hit...
-
I'm also interested in closing the overlay as soon as a click outside the panel happens.
It's the natural behaviour of overlays, like seen in Windows start menu or window menus (File, Edit, View, ...)An extra button for that behaviour would be nice, although I think keeping the panel open as an overlay doesn't make too much sense as it partially hides web content and for me it never happens that I navigate a site with left clicks (unlike scrolling) while leaving my Bookmarks or Downloads panel open.
So for me it could also make sense to merge functionalities in the exisiting Toggle button:
Untoggled: Panel resizes webpage and stays open until pressing the current panel button (->classic sidebar)
Toggled: Panel as overlay which closes if mouse is pressed on webpage (->classic overlay)The hover feature is also nice, but not so much in windowed mode/on tablets and for me the less natural one.
I hope that a vivaldi employee could pick up some of the proposals posted here and deliver it as a nice finished product with in-browser settings (ღ˘⌣˘ღ) -
@g3nbas I agree concerning tablets - but then the concept of "hovering" need mouse pointers to act on in the first place...
Windowed mode might be an annoyance, as you have to "target" the slim line exactly. Possibly you can keep the panel selector (with the icons) open, so you have a wider margin of error (or target).
As you don't want to click outside the panel while it's open, it seems even more naturally for me to close it if the mouse pointer leaves the area (and as it opens again without any page interaction, so you can open and close it even with actions outside Vivaldi in between. (Internally, the panel is open all the time, just hidden).
The code can be modified to open/close the panel in an overlay way (instead of pushing the page aside), which is also describe in a topic which I don't have handy right now. I tried it and it was much more counterintuitive to have an overlay/flyout which I needed to close manually. So I went with the hover/flyout variant.
-
@morg42 The variant pop-out only panel; show panel-container permanently makes the panel-container cover a portion of the page instead of showing next to the page. I think for this to work ok the code should include a resizing of the page in order that full content can be displayed.
Overlay should only be once I hover the mouse on the panel. Right? -
@kallon Yeah, that's right.
For the mentioned functionality you need to change the js code. The needed code is already there, only commented out.
Change
// pop-out both panel-container and panel var csso_tmpl = '#main .inner { position: relative; } #panels-container { position: absolute; z-index: 25; top: 0; bottom: 0; width: 6px !important; background-color: var(--colorBg); transition: width 0.2s linear 0.2s; } #panels-container:hover { width: ###px !important; }'; // pop-out only panel; show panel-container permanently // var csso_tmpl = '#main .inner { position: relative; } #panels-container { position: absolute; z-index: 25; top: 0; bottom: 0; width: 34px !important; background-color: var(--colorBg); transition: width 0.2s linear 0.2s; } #panels-container:hover { width: ###px !important; }';
to
// pop-out both panel-container and panel // var csso_tmpl = '#main .inner { position: relative; } #panels-container { position: absolute; z-index: 25; top: 0; bottom: 0; width: 6px !important; background-color: var(--colorBg); transition: width 0.2s linear 0.2s; } #panels-container:hover { width: ###px !important; }'; // pop-out only panel; show panel-container permanently var csso_tmpl = '#main .inner { position: relative; } #panels-container { position: absolute; z-index: 25; top: 0; bottom: 0; width: 34px !important; background-color: var(--colorBg); transition: width 0.2s linear 0.2s; } #panels-container:hover { width: ###px !important; }';
in the js file and try again. It should work...
-
@morg42 Hey that was a quick reply!
I didn't make myself clear. I already knew how to change between options.However, the issue I am exposing is that the always visible piece of panel does cover the page instead of sticking next to it. It is more noticeable when you choose pop-out only panel; show panel-container permanently
-
@kallon Yeah, I know what you mean and I was sorely convinced that the code does exactly that.
However, on reading the code again, I found the two code snippets are identical, so uncommenting one instead of the other achieves a great and glorious ... nothing.
I'll just dive into it and hope to come out head first
//edit...
Okay, so this didn't get me further. It seems that for the "complete" hover solution, there is a container #panels-container which includes all the switcher and container items. As it includes shown and hidden elements, it can be used for the :hover argument.
If I want to only show ("pop-out") the panel itself, I'm at a loss how to change one element's CSS by hovering over another. I'm not even sure this is possible, but certainly not by me, sorry.
Maybe some of the other CSS gurus here are able to help you on this; without some guidance, I can't.
-
@morg42 It's pretty straightforward, if you want to use css only, you can only change a child element when you hover the parent, but not vice versa. It's called cascading style sheet for a reason. But I have no idea what you guys are talking about ^^
-
Ok I see I am not being able to tell what's happening (not English native speaker).
I took a screenshot of Vivaldi home page and this it what it looks like:See that the panel container covers a portion of the page? Look at the Vivaldi logo.
Does this happen to you as well?
-
-
-
@kallon Shifting the webpage on hover to make room for the panel container looks clumsy and I don't even know if that's easily possible. But by all means, try to make it happen. Good luck.
-
@luetage I think we are back at my earlier ... wall.
The shown panel container should not hover and not overlay, but be visible permanently. On hover the panel should pop out as an overlay.
I tried it, but I didn't get it to work...