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

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    We will be doing maintenance work on Vivaldi Translate on the 11th of May starting at 03:00 (UTC) (see the time in your time zone).
    Some downtime and service disruptions may be experienced.
    Thanks in advance for your patience.

    1. Home
    2. Desktop
    3. Customizations & Extensions
    4. Modifications
    5. Reduce main toolbar height

    Unsolved Reduce main toolbar height

    Modifications
    5
    12
    770
    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.
    • shakil6
      S
      shakil6
      last edited by

      Any help on css code to reduce the height of main toolbar in no-titlebar mode. I want to get rid of extra space around(top and bottom) adress bar. 13845dee-edde-42a7-82cd-43af2f804b6d-image.png

      luetage
      L
      1 Reply Last reply
      Reply Quote 1
      • Zalex108
        Z
        Zalex108 moved this topic from Vivaldi for Windows on
      • luetage
        L
        luetage Supporters Soprano @shakil6
        last edited by

        @shakil6 I can share what I do, you will have to adapt that to your operating system and preferences.

        /* header */
        .window-buttongroup {
          display: none !important;
        }
        .linux #tabs-container:not(.none).top,
        #browser.linux:not(.native).address-top
          .toolbar:has(.window-buttongroup.on-mainbar) {
          padding-right: unset;
        }
        .alt#browser.linux:not(.native).address-top
          .toolbar:has(.window-buttongroup.on-mainbar) {
          padding-left: unset;
        }
        .alt.disable-titlebar.address-top#browser:not(.tabs-top) .vivaldi {
          top: unset;
        }
        #browser.linux.address-top .toolbar:has(.window-buttongroup.on-mainbar) {
          min-height: calc(35px / var(--uiZoomLevel));
        }
        #browser.linux.address-top
          .toolbar:has(.window-buttongroup.on-mainbar)
          .vivaldi {
          height: 35px;
          width: 34px;
          margin: 0;
          padding: 0;
        }
        #browser.linux.address-top
          .toolbar:has(.window-buttongroup.on-mainbar)
          .vivaldi
          svg {
          fill-opacity: 0.33;
        }
        #browser.linux.address-top
          .toolbar:has(.window-buttongroup.on-mainbar)
          .vivaldi
          .expand-arrow {
          display: none;
        }
        

        github ◊ vfm

        shakil6
        S
        remi.flores
        R
        2 Replies Last reply
        Reply Quote 3
        • shakil6
          S
          shakil6 @luetage
          last edited by shakil6

          @luetage Thank you so much brother. It works like a charm! got rid of all ugly spaces and also able to reduce the size of window buttons which was huge and uglier.

          1 Reply Last reply Reply Quote 1
          • remi.flores
            R
            remi.flores @luetage
            last edited by

            @luetage Is there any chance for you to tell us what to change for a Windows application ? (newbie in css here...)

            DoctorG
            D
            luetage
            L
            2 Replies Last reply
            Reply Quote 0
            • DoctorG
              D
              DoctorG Soprano @remi.flores
              last edited by DoctorG

              @remi-flores In the CSS code In all names where you see the word .linux replace it with .win

              _bug hunter · Volunteer helper · Sopranos tester · Language DE,EN · ♀👵
              Known old dragon lady: Gwen aka Dr. Gwen Agon aka GwenDragon aka DoctorGTesting


              Linux Debian 12 KDE X11 / Windows 11 Pro
              Intel i5-7400 / NVidia GT 710

              1 Reply Last reply Reply Quote 1
              • remi.flores
                R
                remi.flores
                last edited by remi.flores

                @DoctorG All right, I thought that was more complicated than that. In any case, There is no window controls anymore with this as the window-buttongroup is set to none. But when I comment this portion. Buttons are on top of the extension menu...
                Is there any way to keep the window control button while shrinking the address bar ?

                DoctorG
                D
                sjudenim
                S
                2 Replies Last reply
                Reply Quote 0
                • DoctorG
                  D
                  DoctorG Soprano @remi.flores
                  last edited by DoctorG

                  @remi-flores please ask @luetage , i do not much modification in my Vivaldi 6.6 to be able to help much.

                  _bug hunter · Volunteer helper · Sopranos tester · Language DE,EN · ♀👵
                  Known old dragon lady: Gwen aka Dr. Gwen Agon aka GwenDragon aka DoctorGTesting


                  Linux Debian 12 KDE X11 / Windows 11 Pro
                  Intel i5-7400 / NVidia GT 710

                  1 Reply Last reply Reply Quote 0
                  • sjudenim
                    S
                    sjudenim Supporters @remi.flores
                    last edited by

                    @remi-flores

                    This is how I do it, but I didn't have a look @luetage's code to see what's going on there.

                    Give it a try, if it doesn't work I will stop being lazy and actually look at his code

                    #browser.win.address-top .toolbar:has(.window-buttongroup.on-mainbar) {
                      min-height: unset !important;
                      padding-right: calc(46px * 3) !important;
                    }
                    

                    https://github.com/sjudenim

                    remi.flores
                    R
                    1 Reply Last reply
                    Reply Quote 1
                    • luetage
                      L
                      luetage Supporters Soprano @remi.flores
                      last edited by

                      @remi-flores Take this opportunity to get into CSS. It might be a little painful and slow in the beginning, but you will gain experience fast. Meanwhile I can’t tell you how to adapt this for Windows, don’t have access to a Windows install. Window buttons and address bar spacing are different between operating systems. Your best bet is to inspect the UI and find out what is going on.

                      github ◊ vfm

                      remi.flores
                      R
                      1 Reply Last reply
                      Reply Quote 2
                      • remi.flores
                        R
                        remi.flores @sjudenim
                        last edited by

                        @sjudenim it gives back the space for the button (sliding the extension a bit left), but no buttons are there...

                        sjudenim
                        S
                        1 Reply Last reply
                        Reply Quote 0
                        • remi.flores
                          R
                          remi.flores @luetage
                          last edited by

                          @luetage Yes I should ! I never took the actual time to dive into it. But i'll have to eventually

                          1 Reply Last reply Reply Quote 0
                          • sjudenim
                            S
                            sjudenim Supporters @remi.flores
                            last edited by sjudenim

                            @remi-flores

                            If you are using luetage's code, this part needs to be removed.

                            .window-buttongroup {
                              display: none !important;
                            }
                            

                            The code that I provided is all that is needed though

                            https://github.com/sjudenim

                            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 / 1
                            • 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