Skip to content

Commit

Permalink
Add theme: No Gaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Peleret authored Oct 21, 2024
1 parent 5d6038a commit 29d8a93
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 0 deletions.
103 changes: 103 additions & 0 deletions themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/chrome.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@

@media (-moz-bool-pref: "theme.no_gaps.split.enabled") {

#tabbrowser-tabbox{
--zen-split-row-gap: 0 !important;
--zen-split-column-gap: 0 !important;
padding: 0 !important;
}

#tabbrowser-tabbox:has(> #tabbrowser-tabpanels[zen-split-view="true"]) {
padding: 0 1px 0 0 !important;
}

#tabbrowser-tabpanels{
padding: 0 !important;
}
.zen-split-view-splitter {
display: none;
}

@media (-moz-bool-pref: "theme.no_gaps.split.border") {
.browserSidebarContainer[zen-split="true"]{
padding: 1px !important;
}
}

}

@media not (-moz-bool-pref: "theme.no_gaps.split.enabled") {

#tabbrowser-tabpanels:not([zen-split-view="true"]){
padding: 0 !important;
}
#tabbrowser-tabbox:has(> #tabbrowser-tabpanels:not([zen-split-view="true"])) {
padding: 0 !important;
}

}

@media not (-moz-bool-pref: "theme.no_gaps.border") {

@media not (-moz-bool-pref: "theme.no_gaps.split.border") {

.browserSidebarContainer{
--uc-tweak-rounded-corners-shadow-color: transparent !important;
}

@media (-moz-bool-pref: "theme.no_gaps.split.rounded_corners") {
.browserSidebarContainer[zen-split="true"]{
overflow: visible !important;
}
}

}

@media (-moz-bool-pref: "theme.no_gaps.split.border") {
.browserSidebarContainer:not([zen-split="true"]){
--uc-tweak-rounded-corners-shadow-color: transparent !important;
}
}

}

@media (-moz-bool-pref: "theme.no_gaps.border") {

@media not (-moz-bool-pref: "theme.no_gaps.split.border") {
.browserSidebarContainer[zen-split="true"]{
--uc-tweak-rounded-corners-shadow-color: transparent !important;
}

@media (-moz-bool-pref: "theme.no_gaps.split.rounded_corners") {
.browserSidebarContainer[zen-split="true"]{
overflow: visible !important;
}
}

}

}

@media not (-moz-bool-pref: "theme.no_gaps.rounded_corners") {

@media not (-moz-bool-pref: "theme.no_gaps.split.rounded_corners") {
#tabbrowser-tabpanels{
--zen-webview-border-radius: 0;
}
}

@media (-moz-bool-pref: "theme.no_gaps.split.rounded_corners") {
#tabbrowser-tabpanels:not([zen-split-view="true"]){
--zen-webview-border-radius: 0;
}
}

}

@media (-moz-bool-pref: "theme.no_gaps.rounded_corners") {
@media not (-moz-bool-pref: "theme.no_gaps.split.rounded_corners") {
#tabbrowser-tabpanels[zen-split-view="true"]{
--zen-webview-border-radius: 0;
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/preferences.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"property": "theme.no_gaps.split.enabled",
"label": "Remove gaps in split view",
"type": "checkbox",
"defaultValue": false
},
{
"property": "theme.no_gaps.border",
"label": "Keep border",
"type": "checkbox",
"defaultValue": true
},
{
"property": "theme.no_gaps.rounded_corners",
"label": "Keep rounded corners",
"type": "checkbox",
"defaultValue": false
},
{
"property": "theme.no_gaps.split.border",
"label": "Keep border in split view",
"type": "checkbox",
"defaultValue": true
},
{
"property": "theme.no_gaps.split.rounded_corners",
"label": "Keep rounded corners in split view",
"type": "checkbox",
"defaultValue": true
}
]
23 changes: 23 additions & 0 deletions themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

# No Gaps
Removes the gaps when the view isn't split.

## Options
- Remove gaps in split view
Default: Off

- Keep border
Removes the border in default view when unchecked
Default: On

- Keep rounded corners
Removes rounded corners in default view when unchecked
Default: On

- Keep border in split view
Removes the border in split view when unchecked
Default: On

- Keep rounded corners in split view
Removes rounded corners in split view when unchecked
Default: On
15 changes: 15 additions & 0 deletions themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "bfcc400a-4ecb-4752-bfd2-a68f116a2722",
"name": "No Gaps",
"description": "Removes the gaps when the view isn't split.",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/image.png",
"author": "Peleret",
"version": "1.0.0",
"tags": [],
"createdAt": "2024-10-21",
"updatedAt": "2024-10-21",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/bfcc400a-4ecb-4752-bfd2-a68f116a2722/preferences.json"
}

0 comments on commit 29d8a93

Please sign in to comment.