Update Theme: Tab Numbers v1.0.8

This commit is contained in:
philmard 2025-07-02 18:19:53 +03:00
parent b36258a8c7
commit de0b36a48d
3 changed files with 24 additions and 22 deletions

View file

@ -3,10 +3,13 @@
}
tabs {
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 which is essential or is in an active workspace */
hbox.zen-essentials-container tab:not([zen-glance-tab="true"]),
zen-workspace[active] tab:not([zen-glance-tab="true"]) {
counter-increment: tab-counter;
} /* Styles when the sidebar is expanded */
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::after {
counter-increment: tab-counter;
content: counter(
tab-counter
); /* Space before the number */ /* Positioning and styling */
@ -60,7 +63,6 @@ tabs {
display: none; /* Hide the ::after pseudo-element first */
}
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::before {
counter-increment: tab-counter;
content: counter(
tab-counter
); /* Space before the number */ /* Positioning and styling */
@ -88,7 +90,6 @@ tabs {
} /* Styles when the sidebar is NOT expanded (compact mode) */
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::before {
counter-increment: tab-counter;
content: counter(tab-counter) "";
position: absolute;
top: 4px;
@ -101,7 +102,6 @@ tabs {
} /* 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"]) {
tab:not([zen-glance-tab="true"]) > .tab-stack > .tab-content::before {
counter-increment: tab-counter;
content: counter(tab-counter) "";
position: absolute;
top: 4px;

View file

@ -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)
Additions (v1.0.7 - current version):
Additions (v1.0.8 - current version):
- Ensured the tab counter is incremented only for tabs that are considered essential or within an active workspace.
Additions (v1.0.7):
- Reverted back to a previous version.

View file

@ -1,17 +1,15 @@
{
"id": "22c9ec3b-7c62-46ae-991f-c8fff5046829",
"name": "Tab Numbers",
"description": "Shows the Number corresponding to each Tab.",
"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",
"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",
"author": "philmard",
"version": "1.0.7",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/preferences.json",
"tags": [
"tabs"
],
"createdAt": "2024-11-09",
"updatedAt": "2025-05-28"
}
"id": "22c9ec3b-7c62-46ae-991f-c8fff5046829",
"name": "Tab Numbers",
"description": "Shows the Number corresponding to each Tab.",
"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",
"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",
"author": "philmard",
"version": "1.0.8",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/22c9ec3b-7c62-46ae-991f-c8fff5046829/preferences.json",
"tags": ["tabs"],
"createdAt": "2024-11-09",
"updatedAt": "2025-05-28"
}