• 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. Customizations & Extensions
    4. Modifications
    5. Top Addressbar above Top Tabbar CSS mod

    Top Addressbar above Top Tabbar CSS mod

    Modifications
    10
    32
    5.1k
    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.
    • D
      dude99
      last edited by dude99

      ATTENTION: This CSS mod is adopted by @nomadic, please continue related discussion on this topic: https://forum.vivaldi.net/post/491392 ๐Ÿ˜‰


      Unify Tabbar & Addressbar Color Palette

      utmosttoptabbar2.gif


      Compact Header

      utmosttoptabbar.gif

      Classic Header

      utmosttoptabbar3.gif

      Recent v4.0 changes have completely broke the popular Addressbar on Top mod (a.k.a. Tabs below Addressbar) & causing quite a bit of riot in the mod forum. Thus, I come up with an alternate pure CSS mod that hopefully can keep EX-FX user from sacrifice Vivaldi to the foxy woke goddess. LOL


      ReadMe

      1. No need to fumble with tabbar & addressbar position, just keep both of 'em at top position. ๐Ÿ˜‰

      2. You can achieve the Unify Tabbar & Addressbar Color Palette effect by remove background-color & color properties from line 3, & line 4 entirely. Then enable line 14 & 15 under Unify tabbar & addressbar color palette section by remove / in the beginning of each line. For horizontal menu bar, reduce #titlebar height: 58px to 0 in line 26.

      3. You can choose between Classic header or Compact header (enabled by default). Add / in the beginning of line to disabled the code, or remove the / in the beginning of line to enabled it.

        code3.png

      4. Both header options will respect Remove Tab Spacing in Maximized Windows setting:

        tabspacing.png

      5. Support Horizontal Menu Bar anchor at the top above Addressbar when it's enabled.

        hmenubar.gif

      6. Support Bookmark Bar anchor below Addressbar & above Tabbar when it's on top position.


      CSS Code

      /* top addressbar above top tabbar  */
      #browser.tabs-top.address-top #header {padding-top:37px;}
      #browser.tabs-top.address-top #titlebar {height:34px; background-color: var(--colorBg); color: var(--colorFg);}  /* remove background & color for unify tabbar & addressbar color palette */
      #browser.tabs-top.address-top .color-behind-tabs-off #titlebar {background-color: var(--colorAccentBg); color: var(--colorAccentFg);}  /* remove this line for unify tabbar & addressbar color palette */
      #browser.tabs-top.address-top.maximized:not(.tabs-at-edge) #titlebar {height:41px;}
      #browser.tabs-top.address-top .vivaldi {height:34px; top: unset; bottom:0;}
      
      #browser.tabs-top.address-top #main {overflow: visible;}
      #browser.tabs-top.address-top .toolbar-mainbar:after {display:none;}
      #browser.tabs-top.address-top .UrlBar {position: fixed; top:0px; left: 34px; right: 100px;}
      #browser.tabs-top.address-top.maximized:not(.tabs-at-edge) .UrlBar {top:7px;}
      #browser.tabs-top.address-top .UrlBar, #browser.tabs-top.address-top .UrlBar > div:not(.UrlBar-AddressField):not(.UrlBar-SearchField) {background-color: transparent;}
      /* optional: unify tabbar & addressbar color palette */
      /.color-behind-tabs-off#browser.tabs-top.address-top .UrlBar > div:not(.UrlBar-AddressField):not(.UrlBar-SearchField) {color: var(--colorImageFg, var(--colorFg));}
      /.color-behind-tabs-on#browser.tabs-top.address-top .UrlBar > div:not(.UrlBar-AddressField):not(.UrlBar-SearchField) {color: var(--colorImageFg, var(--colorAccentFg));}
      
      #browser.tabs-top.address-top #tabs-tabbar-container > div {padding-left: 2px;}
      
      /* bookmark bar enabled */
      #browser.tabs-top.address-top.bookmark-bar-top #header {padding-top:65px;}
      #browser.tabs-top.address-top.bookmark-bar-top .bookmark-bar {position: fixed; top:34px; left:0; right:0;}
      #browser.tabs-top.address-top.bookmark-bar-top.maximized:not(.tabs-at-edge) .bookmark-bar {top:41px;}
      /* horizontal menu enabled */
      #browser.tabs-top.address-top.horizontal-menu #header {padding-top:38px !important;}
      #browser.tabs-top.address-top.horizontal-menu .topmenu {transform: translateY(-38px); margin-bottom:0; color: var(--colorFg);}  /* remove color for unify tabbar & addressbar color palette */
      #browser.tabs-top.address-top.horizontal-menu #titlebar {height: 58px !important; z-index:-1;} /* set 0 height for unify tabbar & addressbar color palette */
      #browser.tabs-top.address-top.horizontal-menu .UrlBar {top: 24px !important; left: 0; right: 0;}
      #browser.tabs-top.address-top.horizontal-menu #tabs-tabbar-container {padding-top: 0;} 
      /* bookmark bar & horizontal menu enabled */
      #browser.tabs-top.address-top.horizontal-menu.bookmark-bar-top #header {padding-top: 65px !important;}
      #browser.tabs-top.address-top.horizontal-menu.bookmark-bar-top .topmenu {transform: translateY(-65px);}
      #browser.tabs-top.address-top.horizontal-menu.bookmark-bar-top .bookmark-bar {top: 58px !important;}
      
      /* option 1: classic top section window drag zone */
      /#browser.tabs-top.address-top.normal #titlebar {height:46px;}
      /#browser.tabs-top.address-top.normal .UrlBar {top:12px;}  /* 7px for Mac */
      /#browser.tabs-top.address-top.normal .bookmark-bar {top:46px;}
      
      /* option 2: compact header, drag zone are all around addressbar */
      #browser.tabs-top.address-top.normal #tabs-tabbar-container {padding-top: 0 !important;}
      

      Personally, I'm a vertical tabbar user. I don't really understand why most user still stuck with the ancient horizontal tabbar & never consider the vertical tabbar as superior tabs layout... ๐Ÿคจ

      Anyway, I probably won't work on this CSS mod any further in the future, because I don't use it, this is really just for the Vivaldi community. So feel free to fork it to whatever you think might be useful for you & share it with the community.

      PS: I accidentally created the Unify Tabbar & Addressbar Color Palette effect while coding this CSS mod, & I really like how it turn out. Maybe, team V should consider it for future GUI upgrade! LOL

      Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
      shifte
      S
      B
      2 Replies Last reply
      Reply Quote 10
      • shifte
        S
        shifte @dude99
        last edited by

        @dude99
        Nice!

        I don't really understand why most user still stuck with the ancient horizontal tabbar & never consider the vertical tabbar as superior tabs layout...

        Now you've created a reason for everyone to use the horizontal tabbar. ๐Ÿ™„

        D
        1 Reply Last reply
        Reply Quote 1
        • D
          dude99 @shifte
          last edited by dude99

          @shifte That's not a good reason to stick with the horizontal tabbar, so I'm not worry about it too much... haha

          1. it doesn't have infinite scrolling scrollbar & become impossible to read tabs' title in plainview when tab width shrink to less than 100px. Even with scrollbar + fixed width mod, it will take significant more time & effort to scroll through tabs.

          2. it can't display tab title properly when you have over a dozen of tabs opened, even with mod it still can't display 25+ readable tab title in plainview like vertical tabbar with 300px width.

          3. it took out large amount of space at the top of the window, yet display so little readable information in plainview. I think it's a terrible tradeoff, & it get worst when introduce horizontal multi-row tabbar into the mix... just imagine a third of the top window stuffed with rows of tabs & other GUI!

            alt text


          The evolution of monitor screen is getting wider & longer width, thus we end up with extra space at both sides of the browser. So, it's natural for us to utilize those extra spaces to display tabbar, panel, or tile tab instead of wasted on empty web content. Even with laptop screen of 4:3 ratio, a vertical tabbar with auto-shrink capability can display more readable information than multi-row horizontal tabbar in most cases.

          My point is, V team should spend more resources on develop better vertical tabbar, instead of just focusing on horizontal tabbar & treat vertical tabbar as afterthought. Because, majority of Internet user devices' screen setup doesn't look like this:

          alt text


          IMHO the reason horizontal tabbar is more popular & widely use by most is because it's the default setup in most web browser, which inherited it's legacy from ancient time when all computer monitor are 5:4 ratio. It make sense to have horizontal tabbar when you have an almost square screen display. But when wider width screen display become dominant, vertical tabbar is a more suitable tabs layout for modern web browser...

          Until, everyone also have an oversize 15 inches golden ratio tablet! LOL

          Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
          shifte
          S
          1 Reply Last reply
          Reply Quote 1
          • shifte
            S
            shifte @dude99
            last edited by

            @dude99
            The reason I use horizontal tabbar is just a lifestyle diseases.
            Shall I use vertical tabbar? ๐Ÿ™
            By the way, ".vivaldi" disappears when I delete line 3 & 4.
            I can't figure out how to fix it.
            LOL

            D
            1 Reply Last reply
            Reply Quote 0
            • D
              dude99 @shifte
              last edited by dude99

              @shifte Don't delete the entire line 3, only the background-color: var(--colorBg); color: var(--colorFg); in line3, & entire line 4


              Shall I use vertical tabbar?

              You should at least try it for a few days, maybe then you will like it & realize how inferior is the horizontal tabbar. LOL

              Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
              shifte
              S
              1 Reply Last reply
              Reply Quote 1
              • D
                dude99
                last edited by

                Update OP code:

                • now compact header also support tab spacing when enabled.

                • add horizontal menu bar support.

                Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
                1 Reply Last reply Reply Quote 1
                • shifte
                  S
                  shifte @dude99
                  last edited by

                  @dude99
                  Thanks!! What a genius!
                  ็„ก้กŒ.png

                  D
                  1 Reply Last reply
                  Reply Quote 0
                  • D
                    dude99 @shifte
                    last edited by dude99

                    @shifte It seems u didn't enabled line 14 & 15? doh

                    Remove the / in front of line to enabled 'em, then add / in front of any line to disabled the entire line, like this:

                    code3.png

                    or you can use proper syntax to envelop code with /* code */ to disabled it. ๐Ÿ˜‰

                    Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
                    shifte
                    S
                    1 Reply Last reply
                    Reply Quote 0
                    • shifte
                      S
                      shifte @dude99
                      last edited by

                      @dude99
                      I see, worked well.
                      ็„ก้กŒ.png

                      Anyway, I probably won't work on this CSS mod any further in the uture,

                      This is too difficult, who's going to manage...?

                      1 Reply Last reply Reply Quote 1
                      • SallyK
                        S
                        SallyK
                        last edited by

                        Thank you, it's great to have something that works with just CSS and doesn't need redoing every time a new version of Vivaldi comes out. The only issue I have is that while the tab bar is now under the address bar, it's still above the bookmarks, is that a setting I have wrong?

                        1 Reply Last reply Reply Quote 0
                        • D
                          dude99
                          last edited by

                          Final update:

                          • tidy up overall code & optimized consistency between toolbar in "various" situation.

                          • fixed compact header related bug, it should be bug free now... bug

                          • add support for bookmark bar, I won't do unify color for this toolbar cuz it look kinda weird to me. but feel free to fix it if you insist...


                          @shifte

                          This is too difficult, who's going to manage...?

                          Don't worry, my code are quite clean & easy to understand by CSS guru. They can fork it in the future if needed. I have wasted too much time on this useless mod (to me anyway), better invest in something I actually will use in the future... LOL

                          Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
                          SallyK
                          S
                          1 Reply Last reply
                          Reply Quote 2
                          • SallyK
                            S
                            SallyK @dude99
                            last edited by

                            @dude99 Thank you again. I really appreciate the work you've put in to make the browser more usable for us, even though it's not something that you would use yourself.

                            I will try the option at the side one day, because I do get your logic, it's just after nearly 20 years it's such an automatic thing for me for it to be stuck to the top of the page.

                            1 Reply Last reply Reply Quote 1
                            • T
                              TreaKu
                              last edited by

                              @dude99 Thanks! It works!๐Ÿ˜

                              1 Reply Last reply Reply Quote 1
                              • D
                                dude99
                                last edited by

                                Great News! @nomadic have adopted this CSS mod, so all future update will be maintain by him. cheers

                                Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
                                shifte
                                S
                                1 Reply Last reply
                                Reply Quote 1
                                • shifte
                                  S
                                  shifte @dude99
                                  last edited by

                                  @dude99
                                  Oh, my God!
                                  @dude99 and @nomadic.
                                  It's a big merger between HP and Compaq. ๐Ÿ˜ฒ

                                  D
                                  1 Reply Last reply
                                  Reply Quote 0
                                  • shifte
                                    S
                                    shifte
                                    last edited by

                                    @juanvase
                                    It's true!
                                    Truth is spoken here.
                                    opera12 is the soul, Vivaldi is the dream.

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dude99 @shifte
                                      last edited by

                                      @shifte Nah...

                                      It's more like Microsoft give up on smartphone concept halfway, then Apple made IPhone! LOL

                                      Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
                                      shifte
                                      S
                                      1 Reply Last reply
                                      Reply Quote 1
                                      • shifte
                                        S
                                        shifte @dude99
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          BloodyElf @dude99
                                          last edited by

                                          @dude99 Thank you for your work!
                                          I also use multiline-tabs.css from VivaldiHooks.
                                          If I use both of these css together - drag and drop of tabs on the panel doesn't work. Tabs are being dragged to the wrong place.
                                          It can be fixed?

                                          Screenshot_1.jpg

                                          D
                                          shifte
                                          S
                                          2 Replies Last reply
                                          Reply Quote 0
                                          • D
                                            dude99 @BloodyElf
                                            last edited by dude99

                                            @bloodyelf This CSS mod doesn't modify any tabbar properties except adding padding-left: 2px to both #tabs-container & #tabs-subcontainer. Everything else are work around the tabbar. So, maybe you can try remove that value & see if it's the cause of the problem?

                                            Also, did you try with just one CSS mod at a time? See if both works properly separately?

                                            Else, I don't think both mod are compatible with each other...

                                            Also, currently there is a bug related to drag & drop tab always end up in the last position... in Windows OS at least. (fixed in latest stable release)

                                            Sorry, can't help u here. This mod is actually adopted by @nomadic & I'm pretty much handoff from this project now. ๐Ÿ™‡

                                            Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
                                            1 Reply Last reply Reply Quote 1
                                            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