Created
November 25, 2024 22:00
-
-
Save LeMoonStar/295ce5df09c4b30845d746e53c88dec5 to your computer and use it in GitHub Desktop.
Zen Browser Adaptive Tab Bar Color extension Support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This is a cleaned-up and minimalized fork of RayZ3R0's ZenConfig available under | |
| https://github.com/RayZ3R0/ZenConfig/blob/384d8a2ed293bc4ae43609f535123c2f144ee748/userChrome.css | |
| adding support for the Adaptive Tab Bar Color extension. | |
| Originally licensed under the MIT licence Copyright (c) 2024 Rayyan Ahsan. | |
| Modified 2024 by LeMoonStar. | |
| This CSS does not work with the "Allow light tab bar" option of the Adaptive Tab Bar Color extension. | |
| Tested on 1.0.1-a.19 and 1.0.1-t.20(2024-11-24) | |
| */ | |
| /* Make the top toolbar appear as attached to the webview */ | |
| #browser { | |
| &:not(:has(.zen-split-view-splitter)) { | |
| #nav-bar { | |
| /* Actually apply the color from the Adaptive Tab Bar Color extension */ | |
| background-color: var(--lwt-accent-color) !important; | |
| /* Make the Toolbar rounded at the top */ | |
| border-radius: 15px 15px 0px 0px !important; | |
| /* Make sure the icons have a healthy distance from the rounded corners */ | |
| padding-left: 6px !important; | |
| padding-right: 6px !important; | |
| /* Keep some space between the window border and the top toolbar */ | |
| margin-top: 6px !important; | |
| /* Fix some alignment issues */ | |
| margin-left: 1px !important; | |
| } | |
| /* Remove the top rounding from the webview (Possibly not needed in Zen versions 1.0.1-a.19) */ | |
| .browserContainer { | |
| border-radius: 0px 0px 15px 15px !important; | |
| } | |
| } | |
| } | |
| /* Make the webview appear attached to the top toolbar */ | |
| .browserSidebarContainer { | |
| /* Remove the top shadow */ | |
| box-shadow: 0 0 0 0px transparent !important; | |
| /* Remove the top padding, which is only useful with a rounded corner */ | |
| padding: 0px !important; | |
| /* Remove the top rounding from the webview */ | |
| border-radius: 0px 0px 15px 15px !important; | |
| } |
Author
This alignment issue on 1.0.1-a.19 (Windows) as reported to me does not occur on Twilight (Fedora/GNOME/Linux) for me. as it is likely to work in the next version, I will not fix this for now.
You may want to use a 5.5px margin on that side if you want to fix it yourself (based on this line in the original CSS, which seems to (?) have been made for right-aligned sidebars)

Author
You may want to considder using this userChrome.css by u/rAlteredStateOfMind on reddit instead.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<33