Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 71 additions & 41 deletions themes/e34745fd-2b7f-4c16-b03a-6e29e5c3f20a/chrome.css
Original file line number Diff line number Diff line change
@@ -1,61 +1,87 @@
#zen-context-menu-compact-mode-hide-toolbar[disabled="true"] {
display: block; /* or flex-direction: column if using flex */
& label,
display: block;

& label,
& img {
display: none !important;
}

&::before, &::after {
content: "Native Hide Toolbar mode is disabled.\A\A\
To achieve a similar effect, try:";
/* Style for readability */

&::before,
&::after {
display: block;
font-size: 0.95rem;
line-height: 1.0;
width: 100%;
display: block;
color: rgba(200, 200, 0, 0.8);

/* Preserve newlines and wrap nicely */
white-space: pre-wrap;
}


&::before {
content: "Native Hide Toolbar mode is disabled.\A\A\
To achieve a similar effect, try:";
color: rgba(200, 200, 0, 0.8);
}

&::after {
content: "Toggling the 'enable the mod' setting in Hide Toolbar mod settings\
off then on\A\A\
content: "Toggling the 'enable the mod' setting in Hide Toolbar mod settings off then on.\A\A\
Enabling 'Hide both' below here with compact mode disabled.";
padding-left: 5px;
margin-top: 10px;
border-left: rgba(0,0,0,0.4) solid 2px;
color: inherit;
border-left: 2px solid rgba(0,0,0,0.4);
}
}

@media (-moz-bool-pref: "zen.view.compact.hide-toolbar") { /* zen default hide toolbar */
@media (-moz-bool-pref: "mod.devdinc.hide-navbar.animation.enabled") {
/* Transition defaults for all toolbar elements */

@media (-moz-pref("zen.view.compact.hide-toolbar", true)) { /* zen default hide toolbar */
/* -- Backup hiding styles -- */
:root {
--margin-top-fix-hide: calc((var(--zen-toolbar-height-with-bookmarks) + 50px) + var(--mod-devdinc-hide-navbar-element-seperation));
--margin-top-fix-hide-reverse: calc(-1 * (var(--zen-toolbar-height-with-bookmarks) + 50px));

/* Hidden and non hidden state */

#nav-bar,
#zen-sidebar-top-buttons,
#PersonalToolbar,
#navigator-toolbox,
#TabsToolbar,
#titlebar{
transition:
all var(--zen-hidden-toolbar-transition) !important;
/* adding will change makes urlbar open not centered anymore */
#zen-sidebar-top-buttons {
will-change: margin, height;
@media (-moz-pref("mod.devdinc.hide-navbar.animation.enabled", true)) {
transition:
margin var(--zen-hidden-toolbar-transition),
min-height var(--zen-hidden-toolbar-transition),
max-height var(--zen-hidden-toolbar-transition),
height var(--zen-hidden-toolbar-transition) !important;
}
}
}
/* backup hiding styles */
:root {
--margin-top-fix-hide: calc((var(--zen-toolbar-height) + 50px) + var(--mod-devdinc-hide-navbar-element-seperation));
--margin-top-fix-hide-reverse: calc(((var(--zen-toolbar-height) + 50px) * -1));

&:not([zen-compact-mode="true"]):not([zen-single-toolbar="true"]) .browserContainer { /* only on non single toolbar */
margin-top: calc(var(--zen-toolbar-height) * -1);
#PersonalToolbar {
will-change: margin;
@media (-moz-pref("mod.devdinc.hide-navbar.animation.enabled", true)) {
transition:
min-height 170ms ease-out,
max-height 170ms ease-out,
var(--ext-theme-background-transition),
margin var(--zen-hidden-toolbar-transition) !important;
}
}

#titlebar, #navigator-toolbox {
will-change: height, background-color;
@media (-moz-pref("mod.devdinc.hide-navbar.animation.enabled", true)) {
transition:
min-height var(--zen-hidden-toolbar-transition),
max-height var(--zen-hidden-toolbar-transition),
all var(--zen-hidden-toolbar-transition) !important;
}
}

/* make it hover over */
&:not([zen-compact-mode="true"]):not([zen-single-toolbar="true"]) .browserContainer {
margin-top: calc(var(--zen-toolbar-height-with-bookmarks) * -1);
}
}

:root:not([zen-compact-mode="true"]):not([zen-single-toolbar="true"]):has(> body #zen-main-app-wrapper #browser #zen-appcontent-wrapper #zen-appcontent-navbar-wrapper:not([zen-has-hover])),
/* --- Hide logic --- */
/* compact mode = true is handled by zen native hide toolbar so we skip it */
:root:not([zen-compact-mode="true"]):not([zen-single-toolbar="true"]) #browser:has(> #zen-appcontent-wrapper #zen-appcontent-navbar-wrapper:not([zen-has-hover])),

:root[zen-compact-mode="true"][zen-single-toolbar="true"] #navigator-toolbox:has(> #titlebar:not(:hover), > #titlebar > #TabsToolbar:hover),
:root:not([zen-compact-mode="true"])[zen-single-toolbar="true"] #navigator-toolbox:is(:not(:hover), :has(> #titlebar > #TabsToolbar:hover)) {
Expand All @@ -65,16 +91,20 @@ Enabling 'Hide both' below here with compact mode disabled.";
margin-top: var(--margin-top-fix-hide-reverse) !important;
--zen-toolbar-height: var(--margin-top-fix-hide) !important;
}
#PersonalToolbar { /* only on non single toolbar */
height: 0 !important;
min-height: 0 !important;

/* only on non single toolbar */

#PersonalToolbar {
margin-top: calc((var(--zen-toolbar-height-with-bookmarks) + 1px - var(--zen-toolbar-height)) * -1) !important;
}
/* transition tabs only on non single toolbar, this element make it so we need :has */

/* hides the padding between top of browser and tabs */
#titlebar, #navigator-toolbox {
--zen-toolbar-height: 0 !important;
--zen-toolbar-height: 0px !important; /* important is not needed for titlebar but is needed for navigator-toolbox */
}
.browserContainer { /* only on non single toolbar */

/* hover over */
.browserContainer {
margin-top: calc(var(--mod-devdinc-hide-navbar-element-seperation) * -1);
}
}
Expand Down
4 changes: 2 additions & 2 deletions themes/e34745fd-2b7f-4c16-b03a-6e29e5c3f20a/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e34745fd-2b7f-4c16-b03a-6e29e5c3f20a/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e34745fd-2b7f-4c16-b03a-6e29e5c3f20a/image.png",
"author": "devdinc",
"version": "1.0.1",
"version": "1.0.2",
"tags": [],
"createdAt": "2025-10-23",
"updatedAt": "2025-10-29",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e34745fd-2b7f-4c16-b03a-6e29e5c3f20a/preferences.json"
}
}