mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-07 17:05:31 +02:00
Fixed tab numbering across workspaces
This commit is contained in:
parent
2e27bdad86
commit
9a99943500
3 changed files with 41 additions and 24 deletions
|
@ -1,4 +1,4 @@
|
||||||
|
@-moz-document url-prefix("chrome:") {
|
||||||
#vertical-pinned-tabs-container > .zen-workspace-tabs-section[hidden="true"] {
|
#vertical-pinned-tabs-container > .zen-workspace-tabs-section[hidden="true"] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,10 @@
|
||||||
counter-reset: tab-counter;
|
counter-reset: tab-counter;
|
||||||
} /* Automatically increment tab numbers for each .tab-content inside a tab */ /* Styles when the sidebar is expanded */
|
} /* Automatically increment tab numbers for each .tab-content inside a tab */ /* Styles when the sidebar is expanded */
|
||||||
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||||
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::after {
|
.zen-workspace-tabs-section[active="true"]
|
||||||
|
tab:not([zen-glance-tab="true"])
|
||||||
|
> .tab-stack
|
||||||
|
> .tab-content::after {
|
||||||
counter-increment: tab-counter;
|
counter-increment: tab-counter;
|
||||||
content: counter(
|
content: counter(
|
||||||
tab-counter
|
tab-counter
|
||||||
|
@ -43,7 +46,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide tab numbers on the right side when hovering over */
|
/* Hide tab numbers on the right side when hovering over */
|
||||||
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content:hover::after {
|
.zen-workspace-tabs-section
|
||||||
|
tab:not([zen-glance-tab="true"])
|
||||||
|
> .tab-stack
|
||||||
|
> .tab-content:hover::after {
|
||||||
opacity: 0; /* Make it invisible */
|
opacity: 0; /* Make it invisible */
|
||||||
width: 0; /* In order to bring the close button to the right */
|
width: 0; /* In order to bring the close button to the right */
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -60,7 +66,10 @@
|
||||||
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::after {
|
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::after {
|
||||||
display: none; /* Hide the ::after pseudo-element first */
|
display: none; /* Hide the ::after pseudo-element first */
|
||||||
}
|
}
|
||||||
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::before {
|
.zen-workspace-tabs-section[active="true"]
|
||||||
|
tab:not([zen-glance-tab="true"])
|
||||||
|
> .tab-stack
|
||||||
|
> .tab-content::before {
|
||||||
counter-increment: tab-counter;
|
counter-increment: tab-counter;
|
||||||
content: counter(
|
content: counter(
|
||||||
tab-counter
|
tab-counter
|
||||||
|
@ -88,7 +97,10 @@
|
||||||
}
|
}
|
||||||
} /* Styles when the sidebar is NOT expanded (compact mode) */
|
} /* Styles when the sidebar is NOT expanded (compact mode) */
|
||||||
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||||
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::before {
|
.zen-workspace-tabs-section[active="true"]
|
||||||
|
tab:not([zen-glance-tab="true"])
|
||||||
|
> .tab-stack
|
||||||
|
> .tab-content::before {
|
||||||
counter-increment: tab-counter;
|
counter-increment: tab-counter;
|
||||||
content: counter(tab-counter) "";
|
content: counter(tab-counter) "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -104,7 +116,10 @@
|
||||||
color: var(--number_color, inherit); /* Fallback to default color */
|
color: var(--number_color, inherit); /* Fallback to default color */
|
||||||
} /* Put tab numbers on the left side when compact_side="Left" (AND in compact mode) */
|
} /* Put tab numbers on the left side when compact_side="Left" (AND in compact mode) */
|
||||||
:root:has(#theme-Tab-Numbers[uc-theme-compact_side="Left"]) {
|
:root:has(#theme-Tab-Numbers[uc-theme-compact_side="Left"]) {
|
||||||
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::before {
|
.zen-workspace-tabs-section[active="true"]
|
||||||
|
tab:not([zen-glance-tab="true"])
|
||||||
|
> .tab-stack
|
||||||
|
> .tab-content::before {
|
||||||
counter-increment: tab-counter;
|
counter-increment: tab-counter;
|
||||||
content: counter(tab-counter) "";
|
content: counter(tab-counter) "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -167,4 +182,4 @@
|
||||||
:root:has(#theme-Tab-Numbers[uc-theme-background_shape="Circle"]) {
|
:root:has(#theme-Tab-Numbers[uc-theme-background_shape="Circle"]) {
|
||||||
--background_shape: 50%; /* Perfect Circle */
|
--background_shape: 50%; /* Perfect Circle */
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
Shows the Number corresponding to each Tab. This can help you navigate between Tabs faster by pressing Cmd + Number of the Tab. (or Ctrl + Number on Windows)
|
Shows the Number corresponding to each Tab. This can help you navigate between Tabs faster by pressing Cmd + Number of the Tab. (or Ctrl + Number on Windows)
|
||||||
|
|
||||||
Additions (v1.0.5 - current version):
|
Additions (v1.0.6 - current version):
|
||||||
|
|
||||||
|
Fixed tab numbering across workspaces.
|
||||||
|
|
||||||
|
Additions (v1.0.5):
|
||||||
|
|
||||||
- Fixed incorrect numbering of pinned tabs, removed glance tabs from the tab count.
|
- Fixed incorrect numbering of pinned tabs, removed glance tabs from the tab count.
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
{
|
{
|
||||||
"id": "22c9ec3b-7c62-46ae-991f-c8fff5046829",
|
"id": "22c9ec3b-7c62-46ae-991f-c8fff5046829",
|
||||||
"name": "Tab Numbers",
|
"name": "Tab Numbers",
|
||||||
"description": "Shows the Number corresponding to each Tab.",
|
"description": "Shows the Number corresponding to each Tab.",
|
||||||
"homepage": "https://github.com/philmard/tab-numbers",
|
"homepage": "https://github.com/philmard/tab-numbers",
|
||||||
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/chrome.css",
|
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/chrome.css",
|
||||||
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/readme.md",
|
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/readme.md",
|
||||||
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/image.png",
|
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/image.png",
|
||||||
"author": "philmard",
|
"author": "philmard",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/preferences.json",
|
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/preferences.json",
|
||||||
"tags": [
|
"tags": ["tabs"],
|
||||||
"tabs"
|
"createdAt": "2024-11-09",
|
||||||
],
|
"updatedAt": "2025-05-01"
|
||||||
"createdAt": "2024-11-09",
|
}
|
||||||
"updatedAt": "2025-05-01"
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue