• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Desktop
    3. Desktop Feature Requests
    4. Make Pinned Tabs Identifiable when using Vertical Tab Bar

    Make Pinned Tabs Identifiable when using Vertical Tab Bar

    Desktop Feature Requests
    tab bar pipeline user interface
    14
    29
    4.6k
    Loading More Posts
    • 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.
    • Hadden89
      H
      Hadden89
      last edited by Hadden89

      //edited 19/03/21

      A CSS mod which could help:

      /* Visual indicator for [vertical] pinned tabs */
      #tabs-container.right .tab-position .tab.pinned, #tabs-container.left .tab-position .tab.pinned {
        background-image: linear-gradient(315deg, var(--colorFgFaded) 5px, transparent 5px);
      }
      

      2 pinned + 1 active
      0_1523669739411_e4e23989-44ce-4fc5-a38a-7c2ab0f840f8.png

      Vivaldi Stable+Snap | Patience Is The Key To Get The Vivaldi Spree | Unsupported Extensions | Github | windows 11 | Manjaro KDE | Q4OS Trinity | Android 13

      porfat
      P
      1 Reply Last reply
      Reply Quote 1
      • porecreat
        P
        porecreat
        last edited by porecreat

        @binarysplit

        I've fixed the newtab button issue and almost the tabs group indicator one. Of course it's not tested under every condition but you should only use this with vertical tabs anyway.

        I also made pinned tabs more compact by using table-cell display.

        Here is the display I get:
        9bd8b717-2d8d-4351-9bb4-db45434f852e-image.png

        /* Make pinned tabs only show as icons */
        .tab-position {
            position: static !important;
            display: inline !important;
        }
        .tab.pinned {
            background-color: var(--colorBg);
            display: table-cell;
        }
        .tab.pinned .tab-header {
            padding: 6px;
        }
        .tab.pinned .title, .tab.pinned .close {
            display: none;
        }
        .newtab {
            top: inherit !important;
        }
        .tab.tab-group {
            border-top-width: 0px !important;
        }
        .tab-group-indicator {
            position: static !important;
            display: flex !important;
        }
        .tab-indicator {
            border-top-width: 1px !important;
            border-bottom-width: 1px !important;
            height: 5px !important;
        }
        
        cfonzy
        C
        Steffie
        S
        tovifun
        T
        3 Replies Last reply
        Reply Quote 9
        • cfonzy
          C
          cfonzy @porecreat
          last edited by

          @porecreat This works great but the only issue I see is when you try to select tabs by holding control and click multiple tabs is selects the whole tab area and not individual tabs. Any way to fix that?

          Steffie
          S
          1 Reply Last reply
          Reply Quote 1
          • Steffie
            S
            Steffie @porecreat
            last edited by

            @porecreat OMZ, it is magnificent -- thanks so much for this cleverness!

            ♀ πŸ‡¦πŸ‡Ί

            1 Reply Last reply Reply Quote 1
            • Steffie
              S
              Steffie @cfonzy
              last edited by Steffie

              @cfonzy said in Make Pinned Tabs Identifiable when using Vertical Tab Bar:

              when you try to select tabs by holding control and click multiple tabs is selects the whole tab area and not individual tabs

              Yes me too.

              Also, & i expect this is just another symptom of the same root-cause, when this CSS is active, creating tab-stacks entirely by mouse-only, by dragging a tab over another tab till they coalesce into a stack, is completely broken. Once i disable this CSS, that standard V behaviour resumes just fine.

              From their profile i see that @porecreat has not been active in the forum since LAST ONLINE 25 APR 2020, 02:36, hence i don't expect them to be able to reply to this.

              Therefore,

              a question to all you other super CSS supremos in this forum:

              Is it possible to somehow modify @porecreat's CSS to resolve both these symptoms pls?

              ♀ πŸ‡¦πŸ‡Ί

              ?
              BoneTone
              B
              Steffie
              S
              3 Replies Last reply
              Reply Quote 0
              • ?
                A Former User @Steffie
                last edited by

                @Steffie said in Make Pinned Tabs Identifiable when using Vertical Tab Bar:

                Is it possible to somehow modify @porecreat's CSS to resolve both these symptoms pls?

                No, unfortunately Vivaldi uses only the internally-calculated dimensions & position for reordering & stacking tabs. I’m not sure how about selecting, but still it seems that it assumes something this (& any similar) CSS breaks (such as that in one row is only one tabβ€”I don’t know).

                Steffie
                S
                1 Reply Last reply
                Reply Quote 2
                • Steffie
                  S
                  Steffie @A Former User
                  last edited by

                  @potmeklecbohdan Ah ok, oh well, many thanks anyway for looking into it for me & explaining.

                  On balance, i still value the pinned tabs being iconised & gridded as this CSS provides, so the tab-stacking problem is unfortunate but tolerable [given that i do still have other options for stacking].

                  ♀ πŸ‡¦πŸ‡Ί

                  1 Reply Last reply Reply Quote 1
                  • BoneTone
                    B
                    BoneTone @Steffie
                    last edited by BoneTone

                    @Steffie said in Make Pinned Tabs Identifiable when using Vertical Tab Bar:

                    by mouse-only, by dragging a tab over another tab till they coalesce into a stack

                    There is another option for stacking tabs with the mouse, assign gestures to the relevant actions... create stack, ungroup stack, remove from stack. To make them easy to remember, I have a gesture that means stack, and then gestures that mean create, destroy, and remove. Like you could define a counterclockwise box starting at the bottom right to mean stack. Do that followed by up to create, down to destroy, left to remove.

                    ↑←↓→ means stack

                    ↑←↓→↑ stack, create

                    ↑←↓→↓ stack, destroy

                    ↑←↓→← stack, remove


                    Edit:

                    With so many actions available, creating semantic schemes like this makes it much easier to utilize a large number of them. I have gestures assigned to almost all of the actions now. When I first created my gestures, I wrote up a little cheat sheet to tape above my desk in plain view. I made some changes after a week or so as my initial designs could be improved. After a few weeks, I rarely needed to reference the cheat sheet anymore, and now it sits in my desk drawer where I can grab it rather easily if I should need it.

                    I post from my phone frequently, which likes to change "the" to "three". If you see three or similar, I probably meant "the". I use swipe, so typos can be totally unrelated words to what I intended. Knowing this should help you read through my typos.

                    Steffie
                    S
                    1 Reply Last reply
                    Reply Quote 3
                    • Steffie
                      S
                      Steffie @BoneTone
                      last edited by

                      @BoneTone Ta muchly. You're very clever, but also gifted with a better memory than i [i've not ignored your words about self-training initially with a cheat sheet, tis just that i know i already operate at the edge of my biological 64 kB RAM capacity, such that my skull's oom_killer frequently intervenes]. I do use many MGs & i love them, but here i feel my limits already are stretched too thin.

                      As i implied though, my rationale for accepting this trade-off [losing the V default mouse drag-drop stack method in the tabs column, in favour of gaining the minimised & gridded pinned tabs] is bearable [certainly not desirable, but bearable] by the other easy stacking methods even w/o needing new MGs [eg, context menu, also Window Panel].

                      My goat though, isn't this browser just wonderful!

                      ♀ πŸ‡¦πŸ‡Ί

                      1 Reply Last reply Reply Quote 1
                      • Steffie
                        S
                        Steffie @Steffie
                        last edited by

                        @Steffie said in Make Pinned Tabs Identifiable when using Vertical Tab Bar:

                        when this CSS is active, creating tab-stacks entirely by mouse-only, by dragging a tab over another tab till they coalesce into a stack, is completely broken. Once i disable this CSS, that standard V behaviour resumes just fine.

                        Well this is a bit disappointing. I've now had to disable this particular Mod, because in chromium 87 it now has an additional unpleasant breakage. The older one i quoted, of course still occurs, but now additionally, with tabs arranged vertically, once a myriad of tabs are open to exceed the V window height, they overflow the bottom edge but do NOT generate the scroll bar, so are inaccessible other than by alternative means [eg, Window Panel, Tab Cycler, Quick Commands]. Once this Mod is disabled, the scroll bar correctly appears.

                        Damnit, i really did like my schmick little row of icon-only pinned tabs "crowning" all the tabs in the column below.

                        ♀ πŸ‡¦πŸ‡Ί

                        Steffie
                        S
                        1 Reply Last reply
                        Reply Quote 2
                        • Steffie
                          S
                          Steffie @Steffie
                          last edited by

                          @Steffie Yay, i've solved worked-around it.

                          Spoiler

                          205b5e5d-3b59-4c43-9f24-97d8740c1f0d-image.png

                          ♀ πŸ‡¦πŸ‡Ί

                          1 Reply Last reply Reply Quote 2
                          • V
                            Vincent500
                            last edited by Vincent500

                            I personally made the following css to better distinguish pinned tabs from normal tabs. I gave the pinned tabs a hatched background. Works perfect for me.

                            I also made stacked tabs darker to better distinguish them from the other normal tabs. Also, I removed the spacing between tabs

                            Edit: as reply to the author, I agree that by default Vivaldi should distinguish pinned tabs from normal tabs.

                            alt text

                            /*pinned tab styling*/
                            .tab.pinned{
                            	background: repeating-linear-gradient( 
                            		 -41.5deg, 
                            		 var(--colorBgDark), 
                            		 var(--colorBgDark) 5px, 
                            		 var(--colorBgLight) 5px, 
                            		 var(--colorBgLight)11px);
                            }
                            .tab.pinned.active{
                            	background: var(--colorAccentBg) !important;
                                color: var(--colorFg) !important;
                            }
                            .tab.pinned{
                                color: var(--colorFg) !important;
                            }
                            .tab.pinned:hover{
                                color: var(--colorFg) !important;
                            }
                            .tabs-left .tab-position .tab, .tabs-right .tab-position .tab{
                            	margin-bottom:0px; /*margin below each tab, default is 1px*/
                            }
                            
                            /*Tab stack indicator tweak*/
                            .tab-indicator{
                            	border-top: 0px solid transparent;
                                border-bottom: 9px solid transparent;
                            }
                            
                            .tabs-top .tab-position .tab, .tabs-bottom .tab-position .tab{
                            	margin-right:0px;
                            }
                            .stacks-on.tabs-right .tab.tab-group, .stacks-on.tabs-left .tab.tab-group{
                            	border-top: 0px solid transparent;
                                background-clip: content-box;
                            }
                            .tab.active .tab-indicator.active{
                            	background-color: var(--colorBg);
                            }
                            
                            /*Darker tab stack background color*/
                            .tab.tab-group{
                            	background-color:var(--colorBgDarker);
                            }
                            .tab.tab-group:hover{
                            	background-color:var(--colorBgDarker);
                            }
                            .tab-indicator.active{
                            	background-color:var(--colorBgDarker);
                            	border-bottom: 9px solid transparent;
                            }
                            
                            
                            hlehyaric
                            H
                            ?
                            2 Replies Last reply
                            Reply Quote 5
                            • hlehyaric
                              H
                              hlehyaric @Vincent500
                              last edited by

                              @Vincent500 If you're willing to share your mod, would you be so kind to post here too? It would be easier for users to find it.

                              1 Reply Last reply Reply Quote 3
                              • ?
                                A Former User @Vincent500
                                last edited by

                                @Vincent500 Would you mind changing the fixed colours to theme variables (see vivaldi://themecolors)? It’d make it easier for the others (& also you when you change theme) to use the mod.

                                (I don’t pin tabs so there’s no reason for me to use it, but I think everyone wanting to use it will welcome this change)

                                V
                                1 Reply Last reply
                                Reply Quote 4
                                • V
                                  Vincent500 @A Former User
                                  last edited by Vincent500

                                  @potmeklecbohdan said in Make Pinned Tabs Identifiable when using Vertical Tab Bar:

                                  @Vincent500 Would you mind changing the fixed colours to theme variables (see vivaldi://themecolors)? It’d make it easier for the others (& also you when you change theme) to use the mod.

                                  Updated and thank you for that color page, I didn't know that one.

                                  @hlehyaric Of course, I will do it later today.

                                  1 Reply Last reply Reply Quote 3
                                  • hlehyaric
                                    H
                                    hlehyaric
                                    last edited by

                                    @guigirl Have you taken a look at the version here?

                                    1 Reply Last reply Reply Quote 1
                                    • V
                                      Vincent500
                                      last edited by

                                      @guigirl I just tested it and if I change the theme, the pinned tabs stay noticeably different from the normal tabs. The css that I posted is the only custom css I have for Vivaldi so I think that you have some conflicting code. What happens if you temporarily remove all css and only apply this one?

                                      alt text
                                      alt text
                                      alt text

                                      1 Reply Last reply Reply Quote 0
                                      • V
                                        Vincent500
                                        last edited by

                                        @guigirl Good to hear. Mine works right away after starting the browser but I use stable only so you might still have some conflicting css. But if you want to further comment on the code, maybe it is a good idea to do that in the post I made in the modification category to not spam this feature request.

                                        1 Reply Last reply Reply Quote 1
                                        • porfat
                                          P
                                          porfat @Hadden89
                                          last edited by porfat

                                          @Hadden89 @Ayespy

                                          (A follow up after upgrade to up-to-date v3.7)

                                          This workaround isn't applicable any longer, since it somehow messes with second tab row of stacked tabs - the row doesn't show up.

                                          Can we get something like this implemented natively in one of the future browser updates? IMHO, it seems to be no-brainer-UX-solution which goes in hand with the vertical tabs philosophy, not to mention similar implementation in Firefox plugins and Chromium Edge.

                                          Thanks a ton!

                                          Hadden89
                                          H
                                          1 Reply Last reply
                                          Reply Quote 3
                                          • Hadden89
                                            H
                                            Hadden89 @porfat
                                            last edited by Hadden89

                                            @porfat That code is old, I'll change it. Let me know if this work fine with new stacking system.

                                            /* Visual indicator for [vertical] pinned tabs */
                                            #tabs-container.right .tab-position .tab.pinned, #tabs-container.left .tab-position .tab.pinned {
                                              background-image: linear-gradient(315deg, var(--colorFgFaded) 5px, transparent 5px);
                                            }
                                            

                                            Vivaldi Stable+Snap | Patience Is The Key To Get The Vivaldi Spree | Unsupported Extensions | Github | windows 11 | Manjaro KDE | Q4OS Trinity | Android 13

                                            1 Reply Last reply Reply Quote 0
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

                                            Copyright © Vivaldi Technologies™ β€” All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status