-
-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
new-themeSubmit a theme to be added to the theme librarySubmit a theme to be added to the theme library
Description
Name
Collapsed Tabs Titles
Description
Shows the 1st to the 16th Characters of the tab's title in Collapsed toolbar mode with customization
Homepage
https://github.com/KarrarAlqallaf/Collapsed-Tabs-Titles-ZenMod
Image
https://i.imgur.com/Bdmkp9I.png
Type
- JSON Color Theme
Theme Styles
@-moz-document url-prefix("chrome:") {
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
.tabbrowser-tab {
/* Unhide the tab title and show only the first comptitle-width letters */
min-height: 4rem !important;
.tab-label-container {
--comptitle-width: 6ch; /*defult char count for labels*/
width: var(--comptitle-width);
font-size: 1rem !important; /* Default or overridden by @media rules */
text-align: center;
overflow: hidden; /* Hides any content that goes outside the element�������¢����������������s box (no scrolling or spilling over) */
position: absolute;
text-overflow: ellipsis;
height: 1.15rem !important;
opacity: 1;
top: 0;
border-radius: 1px;
bottom: auto;
white-space: nowrap; /* Prevents the text from wrapping to a new line �������¢���������������� all on one line. */
background: color-mix(
in srgb,
var(--background-color-box) 0%,
transparent
);
font-family: monospace;
display: flex !important;
mask-image: none !important;
color: var(--text-color-deemphasized);
}
/* these Rules controls Char count*/
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.1.enabled") {
.tab-label-container {
--comptitle-width: 1ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.2.enabled") {
.tab-label-container {
--comptitle-width: 2ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.3.enabled") {
.tab-label-container {
--comptitle-width: 3ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.4.enabled") {
.tab-label-container {
--comptitle-width: 4ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.5.enabled") {
.tab-label-container {
--comptitle-width: 5ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.6.enabled") {
.tab-label-container {
--comptitle-width: 6ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.7.enabled") {
.tab-label-container {
--comptitle-width: 7ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.8.enabled") {
.tab-label-container {
--comptitle-width: 8ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.9.enabled") {
.tab-label-container {
--comptitle-width: 9ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.10.enabled") {
.tab-label-container {
--comptitle-width: 10ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.11.enabled") {
.tab-label-container {
--comptitle-width: 11ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.12.enabled") {
.tab-label-container {
--comptitle-width: 12ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.13.enabled") {
.tab-label-container {
--comptitle-width: 13ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.14.enabled") {
.tab-label-container {
--comptitle-width: 14ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.15.enabled") {
.tab-label-container {
--comptitle-width: 15ch !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-char-count.16.enabled") {
.tab-label-container {
--comptitle-width: 16ch !important;
}
}
/*-------------------------------SectionEnds-------------------------------*/
/* These rules controls the fount size*/
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.05.enabled") {
.tab-label-container {
font-size: 0.5rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.06.enabled") {
.tab-label-container {
font-size: 0.6rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.07.enabled") {
.tab-label-container {
font-size: 0.7rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.08.enabled") {
.tab-label-container {
font-size: 0.8rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.09.enabled") {
.tab-label-container {
font-size: 0.9rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.10.enabled") {
.tab-label-container {
font-size: 1.0rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.11.enabled") {
.tab-label-container {
font-size: 1.1rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.12.enabled") {
.tab-label-container {
font-size: 1.2rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.13.enabled") {
.tab-label-container {
font-size: 1.3rem !important;
}
}
@media (-moz-bool-pref: "uc.theme.comptitle-font-size.14.enabled") {
.tab-label-container {
font-size: 1.4rem !important;
}
}
/*-------------------------------SectionEnds-------------------------------*/
/* Left alignment */
@media (-moz-bool-pref: "uc.theme.comptitle-label-left.enabled") {
.tab-label-container {
left: 0 !important;
right: auto !important;
}
}
/* Right alignment */
@media (-moz-bool-pref: "uc.theme.comptitle-label-right.enabled") {
.tab-label-container {
right: 0 !important;
left: auto !important;
}
}
/* Disable the "Playing" subtitle */
.tab-secondary-label {
display: none !important;
}
/* Accent the text when tab is selected */
&[selected] {
.tab-label-container {
color: initial !important;
}
}
/* If user enables bottom positioning */
@media (-moz-bool-pref: "uc.theme.comptitle-label-bottom.enabled") {
.tab-label-container {
top: auto !important;
bottom: 0 !important;
}
}
/* Enable on pinned tabs */
@media (-moz-bool-pref: "uc.theme.comptitle-enable-pinned.enabled") {
.tab-label-container {
width: var(--comptitle-width) !important;
}
}
/* Use active text color for all tabs */
@media (-moz-bool-pref: "uc.theme.comptitle-default-text.enabled") {
.tab-label-container {
color: initial !important;
}
}
}
}
}Readme
Shows the 1st to the 16th Characters of the tab's title in Collapsed toolbar mode. you can choose the chracters count, label size and position.Preferences
[
{
"comment": "This section controls Char count for the tab label",
"comment2": "Char count from 1-16"
},
{
"property": "uc.theme.comptitle-char-count.1.enabled",
"label": "Show 1 character",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.2.enabled",
"label": "Show 2 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.3.enabled",
"label": "Show 3 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.4.enabled",
"label": "Show 4 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.5.enabled",
"label": "Show 5 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.6.enabled",
"label": "Show 6 characters (defult)",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.7.enabled",
"label": "Show 7 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.8.enabled",
"label": "Show 8 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.9.enabled",
"label": "Show 9 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.10.enabled",
"label": "Show 10 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.11.enabled",
"label": "Show 11 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.12.enabled",
"label": "Show 12 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.13.enabled",
"label": "Show 13 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.14.enabled",
"label": "Show 14 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.15.enabled",
"label": "Show 15 characters",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-char-count.16.enabled",
"label": "Show 16 characters",
"type": "checkbox",
"disabledOn": []
},
{
"comment": "This section controls font size for the tab label"
},
{
"property": "uc.theme.comptitle-font-size.05.enabled",
"label": "Font size: 0.5rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.06.enabled",
"label": "Font size: 0.6rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.07.enabled",
"label": "Font size: 0.7rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.08.enabled",
"label": "Font size: 0.8rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.09.enabled",
"label": "Font size: 0.9rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.10.enabled",
"label": "Font size: 1.0rem (default)",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.11.enabled",
"label": "Font size: 1.1rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.12.enabled",
"label": "Font size: 1.2rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.13.enabled",
"label": "Font size: 1.3rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-font-size.14.enabled",
"label": "Font size: 1.4rem",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-label-bottom.enabled",
"label": "Position label at the bottom (default is top)",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-enable-pinned.enabled",
"label": "Enable in pinned tabs",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-label-left.enabled",
"label": "Align tab label to the left (default is center)",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-label-right.enabled",
"label": "Align tab label to the right (default is center)",
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.theme.comptitle-default-text.enabled",
"label": "More contrast-y text, may be harder to look at",
"type": "checkbox",
"disabledOn": []
}
]Metadata
Metadata
Assignees
Labels
new-themeSubmit a theme to be added to the theme librarySubmit a theme to be added to the theme library