• 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. Separator for web panels

    Separator for web panels

    Modifications
    7
    38
    3.4k
    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.
    • Zalex108
      Z
      Zalex108 Moderator @almalexiel
      last edited by

      @almalexiel

      Hi,

      • Easy explanation
      • Full explanation

      --
      "Off Topic Tip"
      Follow the Signature's Backup | Reset link.
      Take the opportunity to start a Backup plan and even create a Template Profile.


      Windows 7 (x64)
      Vivaldi Backup | Reset + Extra Steps

      "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

      1 Reply Last reply Reply Quote 0
      • Zalex108
        Z
        Zalex108 Moderator @sjudenim
        last edited by Zalex108

        @sjudenim said in Separator for web panels:

        @Zalex108

        I'm assuming that you are using a blank button to create the divider, I suspect Vivaldi is using a default icon for buttons that do not generate one.

        I noticed my method is broken in the snapshot as well, but that's an easy fix.

        Try this

        #switch button { margin-bottom: 5px; }
        
        /* Panel group seperators */
        #switch > button:nth-child(2)::after, #switch > button:nth-child(4)::after, #switch > button:nth-child(6)::after, #switch > button:nth-child(7)::after {
          content: '';
          display: block;
          position: absolute;
          background-color: var(--colorFg);
          margin-top: 38px;
          width: 50%;
          height: 1px;
          border-radius: 2px;
          opacity: .5;
        }
        

        I've spaced mine out a little since I don't have many showing, but you can remove the first line of code if you don't like it and then adjust the margin-top to something like 34px or 35px

        Hi,

        I've been trying again with your code, actually the thin line connected also to the VTheme looks nicer for me.

        I've been counting the WPanels position to locate the Separators, but just noted that hiding WPanels automatically pushes to relocate the Separators out of its position (split the Panel in groups despite hidden ones it's the idea).

        Would be somehow possible to manage this?

        --

        Left: @oudstand's Code - Movable / Fixed Position
        Right: @sjudenim's Code - Dynamic / Static Position

        2021-04-23_233828.png

        Thank you

        "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

        sjudenim
        S
        1 Reply Last reply
        Reply Quote 0
        • Zalex108
          Z
          Zalex108 Moderator
          last edited by

          @oudstand said in Separator for web panels:

          .panelbtn[title*="empty"] img {
          height: 1px !important;
          background-color: gray !important;

          Replaced Background-colour with

          background-color: var(--colorFg)!important;
          

          Now takes the Theme's Colour 👍

          For a thinnest line can't figure out how 👁

          "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

          1 Reply Last reply Reply Quote 2
          • sjudenim
            S
            sjudenim Supporters @Zalex108
            last edited by sjudenim

            @Zalex108

            The separator will not move because it's in a fixed position. It's the panel buttons you add and remove that are moving. You can just renumber the lines but if you add and remove a lot then that can be annoying.

            I haven't tried the other code but it has a height of 3px set, change that to 1px

            Also, as a tip. When using margins, padding, etc. the values work like a clock: top-right-bottom-left. You can also just use 1 value for even all around or 2 for even top-bottom and left-right.

            So using the other code you change this

            margin: 3px 0 3px 0
            

            to just this

            margin: 3px 0
            

            that means that the top and bottom are 3px while the left and right are 0

            1 Reply Last reply Reply Quote 3
            • Zalex108
              Z
              Zalex108 Moderator
              last edited by Zalex108

              @sjudenim

              Thanks

              Just tested and didn't noticed changes.

              I will need to check it more in detail.

              --

              Thank you for the formation about the coordinates.
              Totally forgot and nor took the notes yet neither researched. 😊

              Thank you 👍

              "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

              1 Reply Last reply Reply Quote 1
              • oudstand
                O
                oudstand Supporters @almalexiel
                last edited by

                @almalexiel said in Separator for web panels:

                I'd like to use this feature too but I don't understand where you put the CSS?? When I create an empty page there's nowhere for me to enter the CSS. If someone can help I would be greatful!

                Did you get it to work? Otherwise let me know.

                1 Reply Last reply Reply Quote 0
                • G
                  gsanson @oudstand
                  last edited by

                  @oudstand Hi, could you tell me step-by-step how to use this cool feature?

                  Zalex108
                  Z
                  oudstand
                  O
                  2 Replies Last reply
                  Reply Quote 0
                  • Zalex108
                    Z
                    Zalex108 Moderator @gsanson
                    last edited by

                    @gsanson

                    Guide

                    --
                    "Off Topic Tip"
                    Follow the Signature's Backup | Reset link.
                    Take the opportunity to start a Backup plan and even create a Template Profile.


                    Windows 7 (x64)
                    Vivaldi Backup | Reset + Extra Steps

                    "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

                    1 Reply Last reply Reply Quote 0
                    • oudstand
                      O
                      oudstand Supporters @gsanson
                      last edited by oudstand

                      @gsanson said in Separator for web panels:

                      @oudstand Hi, could you tell me step-by-step how to use this cool feature?

                      Hey @gsanson. You can follow the guide that @Zalex108 posted to enable CSS mods. Afterwards you have to create a CSS file where you place the code I've provided. After restarting your browser, you can create a new web panel where you enter as URL "empty". This will create a separator that can be moved around.

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

                        @oudstand You can use currentColor to give separator the same color as all button's svg, which will auto adjust according to chosen theme's background color, white for dark theme & black for light theme.

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

                          @dude99 this should work as well. Since I've customized the color of my panles container it's not the best solution for me.

                          1 Reply Last reply Reply Quote 1
                          • Zalex108
                            Z
                            Zalex108 Moderator @oudstand
                            last edited by

                            @oudstand

                            Hi,
                            With the latest Snap 2861.3, Separators are broken 😕

                            Would you mind to take a look into it 🙂

                            2022-11-26_000533s.png

                            Thanks in advance!

                            "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

                            1 Reply Last reply Reply Quote 0
                            • Zalex108
                              Z
                              Zalex108 Moderator
                              last edited by Zalex108

                              @oudstand @sjudenim

                              Just seen there are separators within the Toolbar Setup, so would be unnecessary to fix the code.

                              Thx!
                              PS: Aren't as cool as yours 👍

                              "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

                              sjudenim
                              S
                              oudstand
                              O
                              2 Replies Last reply
                              Reply Quote 1
                              • sjudenim
                                S
                                sjudenim Supporters @Zalex108
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • Zalex108
                                  Z
                                  Zalex108 Moderator
                                  last edited by

                                  @sjudenim

                                  I can see it with the Moderator X-Ray Vision!

                                  😄

                                  Will work or break the system? 😋

                                  "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

                                  1 Reply Last reply Reply Quote 0
                                  • oudstand
                                    O
                                    oudstand Supporters @Zalex108
                                    last edited by oudstand

                                    @Zalex108 said in Separator for web panels:

                                    @oudstand
                                    PS: Aren't as cool as yours 👍

                                    Thank you very much 😃
                                    I've decided that it's easier to use the separators provided by Vivaldi and style them.
                                    This is how I use them now:

                                    #switch .toolbar-divider {
                                        height: 4px !important;
                                        max-width: 20px;
                                        margin: 5px;
                                        border-radius: 10px !important;
                                        background: gray !important;
                                    }
                                    
                                    #switch .toolbar-divider button {
                                        display: none;
                                    }
                                    

                                    1db5cb38-42a7-43bd-9497-a1b0d4ab2204-image.png
                                    PS: for Spotify showing up at the bottom I placed it below the flexible space 😉

                                    1 Reply Last reply Reply Quote 1
                                    • Zalex108
                                      Z
                                      Zalex108 Moderator
                                      last edited by

                                      I'll check later!
                                      They look nicer

                                      Thx!!

                                      "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

                                      1 Reply Last reply Reply Quote 1
                                      • Zalex108
                                        Z
                                        Zalex108 Moderator
                                        last edited by Zalex108

                                        Separators_5.6.gif

                                        👍 👍 👍

                                        Thx! @oudstand

                                        "You cannot know the meaning of your life until you are connected to the power that created you" · Shri Mataji Nirmala Devi

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