mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-13 19:25:31 +02:00
1031 lines
24 KiB
CSS
1031 lines
24 KiB
CSS
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
@import url("zen-panel-ui.css");
|
|
@import url("zen-icons/icons.css");
|
|
@import url("zen-decks.css");
|
|
|
|
:root {
|
|
--toolbarbutton-border-radius: 6px !important;
|
|
|
|
--fp-contextmenu-border-radius: 8px;
|
|
--fp-contextmenu-padding: calc(4px - var(--fp-contextmenu-menuitem-border-width)) 0;
|
|
--fp-contextmenu-menuitem-border-radius: calc(4px + var(--fp-contextmenu-menuitem-border-width));
|
|
--fp-contextmenu-menuitem-padding-block: 6px;
|
|
--fp-contextmenu-menuitem-padding-inline: 10px;
|
|
--fp-contextmenu-menuitem-border-width: 2px;
|
|
--fp-contextmenu-menuicon-margin-inline: 12px;
|
|
--fp-contextmenu-menuitem-margin-inline: calc(4px - var(--fp-contextmenu-menuitem-border-width));
|
|
--fp-contextmenu-menuitem-margin-block: 0px;
|
|
--fp-contextmenu-menuitem-margin: var(--fp-contextmenu-menuitem-margin-block) var(--fp-contextmenu-menuitem-margin-inline);
|
|
--fp-contextmenu-separator-vertical: calc(4px - var(--fp-contextmenu-menuitem-border-width));
|
|
--fp-contextmenu-separator-horizontal: 0;
|
|
--fp-contextmenu-bgcolor: light-dark(Menu, rgb(43 42 51 / 0.95));
|
|
--toolbar-bgcolor: transparent !important;
|
|
|
|
--input-bgcolor: var(--zen-colors-tertiary) !important;
|
|
--input-border-color: var(--zen-input-border-color) !important;
|
|
--zen-themed-toolbar-bg: var(--zen-colors-tertiary);
|
|
|
|
--toolbar-field-background-color: var(--zen-colors-input-bg) !important;
|
|
}
|
|
|
|
@media not (-moz-bool-pref: "zen.theme.toolbar-themed") {
|
|
:root {
|
|
--toolbar-bgcolor: light-dark(white, #1b1b1b) !important;
|
|
--zen-themed-toolbar-bg: var(--toolbar-bgcolor);
|
|
}
|
|
}
|
|
|
|
#PersonalToolbar:not([collapsed="true"]) {
|
|
/*border-top: 1px solid light-dark(#ddd, #4a4a4a);*/
|
|
padding: 5px 0;
|
|
padding-inline: 15px !important;
|
|
}
|
|
|
|
/* URL and tool bars */
|
|
|
|
#urlbar {
|
|
--toolbarbutton-border-radius: 999px;
|
|
border: transparent;
|
|
overflow: hidden;
|
|
padding: 1px;
|
|
border-radius: var(--toolbarbutton-border-radius);
|
|
}
|
|
|
|
#zen-website-and-native-separator {
|
|
background: light-dark(#ddd, #4a4a4a);
|
|
height: 1px;
|
|
width: 100%;
|
|
}
|
|
|
|
#urlbar[focused="true"][breakout-extend="true"] {
|
|
overflow: visible;
|
|
}
|
|
|
|
#urlbar {
|
|
border: 1px solid light-dark(rgba(0,0,0,.2), rgba(255,255,255,.2))
|
|
}
|
|
|
|
#searchbar:focus-within {
|
|
border-color: transparent !important;
|
|
}
|
|
|
|
#urlbar[focused="true"] {
|
|
box-shadow: var(--panel-shadow) !important;
|
|
}
|
|
|
|
#urlbar[focused="true"] > #urlbar-background {
|
|
background: var(--zen-dialog-background) !important;
|
|
}
|
|
|
|
#urlbar[focused="true"]:not([suppress-focus-border]) > #urlbar-background,
|
|
#searchbar:focus-within {
|
|
outline: none !important;
|
|
outline-offset: none !important;
|
|
outline-color: none !important;
|
|
}
|
|
|
|
#urlbar .urlbar-page-action,
|
|
#urlbar #tracking-protection-icon-container,
|
|
#urlbar:not([extend="true"]) #identity-box:not(.chromeUI) #identity-icon-box {
|
|
border-radius: 999px;
|
|
}
|
|
|
|
#urlbar[breakout-extend="true"] {
|
|
--toolbarbutton-border-radius: 6px;
|
|
}
|
|
|
|
/*#urlbar:not([breakout-extend="true"]) #urlbar-input {
|
|
text-align: center;
|
|
transition: .2s;
|
|
}*/
|
|
|
|
#identity-icon-label {
|
|
padding-inline-start: 8px !important;
|
|
}
|
|
|
|
#urlbar #identity-box.chromeUI #identity-icon-box {
|
|
border-radius: 5px !important;
|
|
}
|
|
|
|
#urlbar:not([breakout-extend="true"]) #identity-box.chromeUI #identity-icon-box {
|
|
border-radius: 20px 10px 10px 20px !important;
|
|
}
|
|
|
|
#urlbar .urlbar-page-action,
|
|
#urlbar #identity-box #identity-icon-box,
|
|
#urlbar #tracking-protection-icon-container {
|
|
margin: 0 1px;
|
|
}
|
|
|
|
#urlbar:not([extend="true"]) #identity-box #identity-icon-box { position: relative;}
|
|
|
|
/* TODO: this does NOT show up! */
|
|
/* #urlbar:not([extend="true"]) #identity-box:not(.chromeUI):not(.localResource) #identity-icon-box::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
right: -5px;
|
|
height: calc(100% - 5px);
|
|
width: 1px;
|
|
background: var(--zen-dialog-border-color);
|
|
transition: .1s;
|
|
transform: translateY(-50%);
|
|
} */
|
|
|
|
#urlbar:not([extend="true"]) #identity-box:not(.chromeUI):not(.localResource) #identity-icon-box {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
#urlbar:not([extend="true"]) #identity-box:not(.chromeUI):not(.localResource) {
|
|
margin-inline-end: 0 !important;
|
|
}
|
|
|
|
.urlbar-page-action {
|
|
width: calc(var(--urlbar-min-height) - 5px - 2 * var(--urlbar-container-padding)) !important;
|
|
height: calc(var(--urlbar-min-height) - 5px - 2 * var(--urlbar-container-padding)) !important;
|
|
padding: 0 !important;
|
|
justify-content: center !important;
|
|
align-items: center !important;
|
|
}
|
|
|
|
toolbar .toolbarbutton-1:not(.unified-extensions-item-action-button) {
|
|
& > .toolbarbutton-icon,
|
|
& > .toolbarbutton-badge-stack {
|
|
width: calc(2 * var(--toolbarbutton-inner-padding) + 18px) !important;
|
|
height: calc(2 * var(--toolbarbutton-inner-padding) + 18px) !important;
|
|
}
|
|
}
|
|
|
|
toolbar .zen-sidebar-panel-button {
|
|
& > .toolbarbutton-icon,
|
|
& > .toolbarbutton-badge-stack {
|
|
width: calc(2 * var(--toolbarbutton-inner-padding) + 20px) !important;
|
|
height: calc(2 * var(--toolbarbutton-inner-padding) + 20px) !important;
|
|
}
|
|
}
|
|
|
|
#identity-permission-box {
|
|
margin: 0 5px 0 0 !important;
|
|
border-top-left-radius: 0 !important;
|
|
border-bottom-left-radius: 0 !important;
|
|
}
|
|
|
|
#identity-box:has(#identity-permission-box:is([hasPermissions], [hasSharingIcon])) #identity-icon-box {
|
|
border-top-right-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
margin-right: 0 !important;
|
|
}
|
|
|
|
#tracking-protection-icon-container,
|
|
#page-action-buttons {
|
|
order: 2 !important;
|
|
}
|
|
|
|
#notification-popup-box {
|
|
border-radius: 999px;
|
|
margin-right: 5px;
|
|
transition: .2s;
|
|
height: 100%;
|
|
padding: 7px;
|
|
}
|
|
|
|
button.popup-notification-dropmarker {
|
|
border-top-left-radius: 0 !important;
|
|
border-bottom-left-radius: 0 !important;
|
|
}
|
|
|
|
.panel-footer:has(button.popup-notification-dropmarker:not([hidden="true"])) button.popup-notification-secondary-button {
|
|
border-top-right-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
}
|
|
|
|
.searchbar-engine-one-off-item {
|
|
max-width: 20px;
|
|
min-width: 20px !important;
|
|
justify-content: center;
|
|
}
|
|
|
|
#downloadsHistory {
|
|
margin-top: 5px
|
|
}
|
|
|
|
/* Toolbars customization */
|
|
|
|
#titlebar {
|
|
height: 100%;
|
|
}
|
|
|
|
#navigator-toolbox {
|
|
min-width: 55px;
|
|
|
|
margin-top: 0 !important; /* Issue #156 */
|
|
}
|
|
|
|
:root[inFullscreen="true"] #navigator-toolbox {
|
|
display: none;
|
|
}
|
|
|
|
#zen-tabbox-wrapper:has(#zen-sidebar-splitter:not([state="dragging"])) #navigator-toolbox {
|
|
transition: .3s !important;
|
|
}
|
|
|
|
#navigator-toolbox toolbar#TabsToolbar {
|
|
margin: var(--zen-appcontent-separator-from-window);
|
|
overflow: hidden;
|
|
transition: .2s;
|
|
flex-direction: column !important;
|
|
padding: 5px 0;
|
|
margin-right: 0 !important;
|
|
-moz-window-dragging: no-drag;
|
|
|
|
--zen-sidebar-action-button-width: 38px;
|
|
padding-bottom: calc(5px + 5px); /* Taking into consideration the padding of the sidebar without being inlined */
|
|
}
|
|
|
|
#TabsToolbar-customization-target {
|
|
flex-direction: column;
|
|
}
|
|
|
|
:root[customizing] .customization-target:not(#widget-overflow-fixed-list) {
|
|
min-width: 0 !important;
|
|
}
|
|
|
|
toolbarpaletteitem {
|
|
justify-content: center !important;
|
|
}
|
|
|
|
toolbarbutton#scrollbutton-down,
|
|
toolbarbutton#scrollbutton-up {
|
|
display: none !important;
|
|
}
|
|
|
|
#toolbar-menubar {
|
|
display: none;
|
|
}
|
|
|
|
.tab-label-container {
|
|
display: none;
|
|
}
|
|
|
|
.tab-icon-stack > .tab-icon-image,
|
|
.tab-icon-stack > .tab-throbber {
|
|
width: var(--zen-browser-tab-icon-size);
|
|
height: var(--zen-browser-tab-icon-size);
|
|
margin-inline-end: 0 !important;
|
|
}
|
|
|
|
.tab-icon-stack .tab-icon-image {
|
|
transform: scale(0.5);
|
|
opacity: 0;
|
|
animation: zen-zoom-in 0.12s ease-in-out 0.3s forwards;
|
|
}
|
|
|
|
@keyframes zen-zoom-in {
|
|
from {
|
|
transform: scale(0.5);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.tab-background {
|
|
display: none;
|
|
}
|
|
|
|
.tabbrowser-tab {
|
|
--zen-browser-tab-icon-size: 18px;
|
|
--tab-min-width: 36px !important;
|
|
margin: 0 auto !important;
|
|
border-radius: 8px;
|
|
position: relative;
|
|
color-scheme: var(--tab-selected-color-scheme);
|
|
border: 2px solid transparent;
|
|
background: transparent;
|
|
padding: 0 !important;
|
|
align-items: center;
|
|
min-height: var(--tab-min-width); /* Make a box */
|
|
animation: zen-slide-in 0.3s;
|
|
width: calc(var(--zen-browser-tab-icon-size) + 2px);
|
|
transition: .1s background, .1s border-color;
|
|
min-width: var(--tab-min-width);
|
|
|
|
display: flex !important;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.tabbrowser-tab[hidden="true"] {
|
|
display: none !important;
|
|
}
|
|
|
|
.tabbrowser-tab:hover {
|
|
background: var(--toolbarbutton-hover-background);
|
|
}
|
|
|
|
.tabbrowser-tab:active,
|
|
.zen-sidebar-panel-button:active {
|
|
transform: scale(0.9) !important;
|
|
}
|
|
|
|
.tab-stack {
|
|
width: 30px !important;
|
|
height: 30px !important;
|
|
min-width: 30px !important;
|
|
min-height: 30px !important;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
@keyframes zen-slide-in {
|
|
from {
|
|
transform: translateX(-10px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.tabbrowser-tab:not([fadein]) {
|
|
display: none !important;
|
|
}
|
|
|
|
.tabbrowser-tab:is([multiselected="true"], [selected]) {
|
|
background: var(--toolbarbutton-hover-background);
|
|
}
|
|
|
|
#private-browsing-indicator-with-label {
|
|
display: none !important;
|
|
}
|
|
|
|
.tabbrowser-tab::after {/* Containers */
|
|
background: var(--identity-tab-color, transparent);
|
|
border-radius: 2px;
|
|
height: 80%;
|
|
width: 2px;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
left: -2px;
|
|
content: '';
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tabbrowser-tab {
|
|
margin-inline-start: 0 !important;
|
|
margin: 0 auto !important;
|
|
}
|
|
|
|
.tabbrowser-tab[pinned] {
|
|
position: relative !important;
|
|
display: flex !important;
|
|
}
|
|
|
|
#tabbrowser-tabs:has(.tabbrowser-tab[pinned]) .tabbrowser-tab:nth-child(1 of [fadein]:not([pinned]):not([hidden])) {
|
|
margin-top: 15px !important;
|
|
position: relative;
|
|
overflow: visible;
|
|
|
|
& .tab-stack::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -11px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 1.5px;
|
|
border-radius: 1px;
|
|
background: var(--zen-colors-border);
|
|
}
|
|
}
|
|
|
|
.tab-close-button {
|
|
position: absolute;
|
|
display: none;
|
|
left: 0;
|
|
top: 50%;
|
|
}
|
|
|
|
.tabbrowser-tab[open="true"]:hover .tab-close-button {
|
|
/* TODO: fix this */
|
|
/*display: block;*/
|
|
}
|
|
|
|
.tab-content {
|
|
padding: 0 !important;
|
|
width: fit-content;
|
|
}
|
|
|
|
.toolbar-items > toolbartabstop:first-child {
|
|
display: none;
|
|
}
|
|
|
|
#nav-bar > *:not(.titlebar-buttonbox-container) {
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
#TabsToolbar-customization-target {
|
|
height: 100%;
|
|
}
|
|
|
|
#tabbrowser-tabs {
|
|
margin-inline-start: 0 !important;
|
|
padding-inline-start: 0 !important;
|
|
border: none !important;
|
|
/*background: light-dark(rgba(0,0,0,.05), rgba(255,255,255,.05));*/
|
|
margin: 0 !important;
|
|
border: none;
|
|
height: 100%;
|
|
}
|
|
|
|
#tabbrowser-arrowscrollbox {
|
|
margin: 3px 0 !important;
|
|
}
|
|
|
|
#alltabs-button stack {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.tab-icon-overlay {
|
|
margin-inline-end: 0 !important;
|
|
display: none !important; /* TODO: fix this */
|
|
}
|
|
|
|
/*#tabbrowser-arrowscrollbox {
|
|
&::part(scrollbox-clip) {
|
|
max-height: 405px;
|
|
}
|
|
}*/
|
|
|
|
#zen-tabbox-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.footer-button {
|
|
padding: var(--zen-button-padding) !important;
|
|
border-radius: var(--zen-button-border-radius) !important;
|
|
}
|
|
|
|
.footer-button:not([default], .primary) {
|
|
color: var(--zen-secondary-btn-color) !important;
|
|
}
|
|
|
|
.footer-button:is([default], .primary) {
|
|
--focus-outline-color: var(--zen-primary-btn-color) !important;
|
|
}
|
|
|
|
/** Specific dialogs override */
|
|
|
|
#identity-popup-multiView toolbarseparator,
|
|
#editBookmarkHeaderSeparator {
|
|
display: none;
|
|
}
|
|
|
|
#identity-popup-more-info-footer toolbarseparator {
|
|
display: block;
|
|
}
|
|
|
|
#editBMPanel_foldersExpander {
|
|
display: none;
|
|
}
|
|
|
|
#editBookmarkPanelContent > label:not(.editBMPanel_nameRow) {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
panelmultiview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
/** No space in panels overrides */
|
|
|
|
#tabbrowser-tabbox {
|
|
background: var(--toolbar-bgcolor);
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabpanels {
|
|
background: transparent !important;
|
|
margin-right: 0;
|
|
}
|
|
|
|
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
|
border-radius: var(--zen-browser-border-radius);
|
|
border: var(--zen-appcontent-border);
|
|
width: -moz-available;
|
|
margin: 0 10px 10px 0;
|
|
}
|
|
|
|
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels[zen-split-view="true"] .browserSidebarContainer {
|
|
margin: 0 7px 7px 0;
|
|
}
|
|
|
|
#tabbrowser-tabbox #tabbrowser-tabpanels .browserStack > browser {
|
|
border-radius: var(--zen-browser-border-radius);
|
|
clip-path: inset(0px 0px 0px round var(--zen-browser-border-radius) 0) !important;
|
|
}
|
|
|
|
#urlbar[breakout]:not([breakout-extend="true"]) {
|
|
top: unset;
|
|
}
|
|
|
|
#zen-main-app-wrapper {
|
|
background: var(--zen-main-browser-background);
|
|
}
|
|
|
|
@media not (-moz-bool-pref: "zen.view.compact") {
|
|
#sidebar-box {
|
|
margin-top: 0 !important;
|
|
}
|
|
}
|
|
|
|
@media (-moz-bool-pref: "zen.view.compact") {
|
|
:root[sizemode="fullscreen"],
|
|
#navigator-toolbox[inFullscreen]{ margin-top: 0 !important; }
|
|
|
|
#navigator-toolbox {
|
|
--zen-compact-toolbox-margin-single: 15px;
|
|
--zen-compact-toolbox-margin: var(--zen-compact-toolbox-margin-single);
|
|
position: absolute !important;
|
|
display: block;
|
|
transition: 50ms ease-in !important;
|
|
transform: translateX(calc(-100% + var(--zen-compact-toolbox-margin-single) + 2px)) !important;
|
|
opacity: 0;
|
|
line-height: 0;
|
|
z-index: 1;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: var(--zen-compact-toolbox-margin) !important;
|
|
|
|
& #titlebar {
|
|
border: 1px solid var(--zen-colors-border);
|
|
background: var(--zen-colors-tertiary) !important;
|
|
padding: 0 5px;
|
|
border-radius: 11px;
|
|
}
|
|
}
|
|
|
|
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
|
#navigator-toolbox {
|
|
width: fit-content !important;
|
|
}
|
|
}
|
|
|
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
|
#navigator-toolbox {
|
|
min-width: 210px !important;
|
|
}
|
|
}
|
|
|
|
#zen-sidebar-web-panel-wrapper:not(:has(#zen-sidebar-web-panel[hidden="true"])),
|
|
#sidebar-box:not([positionend="true"]) {
|
|
margin-right: 0 !important;
|
|
margin-left: 10px !important;
|
|
}
|
|
|
|
#sidebar-box[positionend="true"] {
|
|
margin-left: 0 !important;
|
|
margin-right: 10px !important;
|
|
}
|
|
|
|
#sidebar-splitter {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
@media not (-moz-bool-pref: "zen.view.compact.hide-toolbar") {
|
|
#navigator-toolbox {
|
|
/* Remove the top margin */
|
|
--zen-compact-toolbox-margin: calc(var(--zen-compact-toolbox-margin-single) / 3) var(--zen-compact-toolbox-margin-single) var(--zen-compact-toolbox-margin-single) var(--zen-compact-toolbox-margin-single);
|
|
}
|
|
|
|
#zen-sidebar-web-panel-wrapper,
|
|
#sidebar-box {
|
|
margin-top: 0 !important;
|
|
}
|
|
}
|
|
|
|
#navigator-toolbox:hover,
|
|
#navigator-toolbox:focus-within,
|
|
#navigator-toolbox[zen-user-show],
|
|
#mainPopupSet:has(> #appMenu-popup:hover) ~ toolbox,
|
|
#navigator-toolbox:has(*[open="true"]:not(tab):not(#zen-sidepanel-button)) {
|
|
transition-delay: 33ms !important;
|
|
transform: none !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
#navigator-toolbox > *{ line-height: normal; pointer-events: auto }
|
|
|
|
#navigator-toolbox,
|
|
#navigator-toolbox > *{
|
|
-moz-appearance: none !important;
|
|
}
|
|
|
|
#zen-sidebar-splitter {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Don't apply transform before window has been fully created */
|
|
:root:not([sessionrestored]) #navigator-toolbox{ transform:none !important }
|
|
|
|
:root[customizing] #navigator-toolbox{
|
|
position: relative !important;
|
|
transform: none !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
#navigator-toolbox[inFullscreen] > #PersonalToolbar,
|
|
#PersonalToolbar[collapsed="true"]{ display: none }
|
|
|
|
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
|
margin-left: 10px !important;
|
|
margin-right: 10px !important;
|
|
}
|
|
|
|
@media (-moz-bool-pref: "zen.view.compact.hide-toolbar") {
|
|
#zen-appcontent-navbar-container {
|
|
--urlbar-height: unset;
|
|
transition: .2s ease-in-out;
|
|
transform: translateY(calc(-100% + 5px));
|
|
opacity: 0;
|
|
position: absolute;
|
|
width: 100%;
|
|
border-bottom-left-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
border-bottom: 1px solid var(--zen-colors-border);
|
|
top: 0;
|
|
background: var(--zen-colors-tertiary);
|
|
z-index: 2;
|
|
transition: .2s ease-in-out;
|
|
}
|
|
|
|
#zen-appcontent-navbar-container:hover,
|
|
#zen-appcontent-navbar-container:focus-within,
|
|
#zen-appcontent-navbar-container[zen-user-show],
|
|
#mainPopupSet:has(> #appMenu-popup:hover) ~ #zen-appcontent-navbar-container,
|
|
#zen-appcontent-navbar-container:has(*[open="true"]) {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
|
margin-top: 10px !important;
|
|
}
|
|
|
|
#titlebar {
|
|
padding-top: 5px !important;
|
|
}
|
|
|
|
#zen-sidebar-web-panel-wrapper {
|
|
margin-top: 10px !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
:root:is([chromehidden~="location"],[chromehidden~="toolbar"]) {
|
|
--zen-browser-border-radius: 0 !important;
|
|
|
|
& #navigator-toolbox {
|
|
display: none;
|
|
}
|
|
|
|
& #tabbrowser-tabpanels {
|
|
margin: 0 !important;
|
|
|
|
& .browserSidebarContainer {
|
|
margin: 0 !important;
|
|
}
|
|
}
|
|
|
|
& #zen-sidebar-splitter {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
/* Screenshots */
|
|
|
|
#screenshotsPagePanel {
|
|
position: absolute !important;
|
|
top: 3%;
|
|
right: 1.5%;
|
|
}
|
|
|
|
/* Watermark */
|
|
|
|
#zen-watermark {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--zen-main-browser-background);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 9999;
|
|
}
|
|
|
|
#zen-watermark image {
|
|
opacity: .2;
|
|
filter: grayscale(100%);
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
|
|
#zen-watermark[hidden="true"] {
|
|
transition: 0.6s;
|
|
transition-delay: .5s;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#zen-workspaces-button .zen-workspace-sidebar-name {
|
|
margin-left: 10px;
|
|
display: none;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
@media not (-moz-bool-pref: "zen.watermark.enabled") {
|
|
#zen-watermark {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Expanded sidebar */
|
|
#zen-sidebar-splitter {
|
|
display: none;
|
|
opacity: 0;
|
|
}
|
|
|
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
|
#zen-workspaces-button .zen-workspace-sidebar-name {
|
|
display: block;
|
|
}
|
|
|
|
#zen-workspaces-button .zen-workspace-sidebar-icon[no-icon="true"] {
|
|
display: none;
|
|
}
|
|
|
|
#zen-workspaces-button .zen-workspace-sidebar-icon[no-icon="true"] + .zen-workspace-sidebar-name {
|
|
margin-left: 0;
|
|
}
|
|
|
|
#navigator-toolbox {
|
|
min-width: 160px;
|
|
align-items: start;
|
|
padding-left: 10px;
|
|
padding-right: 5px;
|
|
max-width: 210px;
|
|
transition: .2s;
|
|
width: 170px;
|
|
border: none;
|
|
}
|
|
|
|
:root:not([inDOMFullscreen="true"]) #zen-sidebar-splitter {
|
|
display: block;
|
|
width: 1px;
|
|
}
|
|
|
|
.tab-label-container {
|
|
display: block;
|
|
}
|
|
|
|
#titlebar,
|
|
#TabsToolbar,
|
|
#TabsToolbar .toolbar-items {
|
|
width: 100%;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) {
|
|
width: 100% !important;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button):hover {
|
|
background: var(--button-hover-bgcolor);
|
|
}
|
|
|
|
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-text,
|
|
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-icon,
|
|
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-badge-stack {
|
|
background: transparent !important;
|
|
}
|
|
|
|
#tabbrowser-arrowscrollbox-periphery {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
#tabbrowser-arrowscrollbox-periphery > toolbarbutton {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.tabbrowser-tab {
|
|
max-width: unset !important;
|
|
|
|
&:not([pinned]) {
|
|
width: 100%;
|
|
|
|
&:hover .tab-close-button {
|
|
display: block !important;
|
|
}
|
|
|
|
& .tab-content {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
& .tab-stack {
|
|
justify-content: start;
|
|
padding: 10px;
|
|
width: 100% !important;
|
|
}
|
|
|
|
& .tab-label-container {
|
|
|
|
#tabbrowser-tabs:not([secondarytext-unsupported]) & {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:active,
|
|
.zen-sidebar-panel-button:active {
|
|
transform: scale(0.96) !important;
|
|
}
|
|
|
|
&[pinned] {
|
|
margin: 0 !important;
|
|
}
|
|
}
|
|
#tabbrowser-arrowscrollbox::part(scrollbox) {
|
|
/* We have the pinned tabs on the top, next to each other,
|
|
* and the rest of the tabs are below them. */
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(var(--tab-min-height), 1fr));
|
|
padding: 5px;
|
|
}
|
|
|
|
.tabbrowser-tab:not([pinned]),
|
|
#tabbrowser-arrowscrollbox-periphery {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.tabbrowser-tab[pinned] {
|
|
grid-column: span 1;
|
|
}
|
|
|
|
#zen-workspaces-button {
|
|
overflow: hidden;
|
|
width: calc(100% - 40px) !important;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
display: flex;
|
|
padding: 2px 10px;
|
|
}
|
|
|
|
#zen-sidebar-icons-wrapper {
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
|
|
transition: .1s;
|
|
}
|
|
|
|
#zen-sidebar-icons-wrapper::before {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Popup Search */
|
|
|
|
@media (-moz-bool-pref: "zen.theme.floating-urlbar") {
|
|
#urlbar:is([breakout][breakout-extend], [breakout][usertyping][focused]) {
|
|
#urlbar-input {
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
z-index: 2;
|
|
position: fixed !important;
|
|
bottom: auto !important;
|
|
top: 20vh !important;
|
|
padding-left: 6px !important;
|
|
padding-right: 8px !important;
|
|
|
|
left: 18vw !important;
|
|
right: 18vw !important;
|
|
width: 64vw !important;
|
|
|
|
&:after {
|
|
content: "";
|
|
position: fixed;
|
|
pointer-events: none;
|
|
|
|
width: 100vw;
|
|
height: 100vh;
|
|
|
|
top: 0px;
|
|
left: 0px;
|
|
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
backdrop-filter: blur(5px);
|
|
|
|
z-index: -1;
|
|
}
|
|
|
|
#identity-box {
|
|
margin: auto 0;
|
|
height: 30px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.urlbar-go-button {
|
|
margin: auto 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
*
|
|
* ZEN OVERRIDES
|
|
*/
|
|
|
|
.content-prompt-dialog > .dialogOverlay {
|
|
align-content: start;
|
|
}
|
|
|
|
.dialogBox:not(.spotlightBox) {
|
|
border: 1px solid var(--zen-dialog-border-color);
|
|
}
|
|
|
|
#window-modal-dialog:not([zen-dialog-welcome-element="true"]) .dialogBox:not(.spotlightBox) {
|
|
transform: translateY(-9px);
|
|
}
|
|
|
|
#window-modal-dialog[zen-dialog-welcome-element="true"] .dialogBox:not(.spotlightBox) {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
#window-modal-dialog[zen-dialog-welcome-element="true"],
|
|
#window-modal-dialog[zen-dialog-welcome-element="true"] .dialogOverlay,
|
|
#window-modal-dialog[zen-dialog-welcome-element="true"] .dialogFrame,
|
|
#window-modal-dialog[zen-dialog-welcome-element="true"] .dialogBox {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
max-height: none !important;
|
|
max-width: none !important;
|
|
}
|
|
|
|
#window-modal-dialog[zen-dialog-welcome-element="true"] {
|
|
--zen-welcome-dialog-space: 7px;
|
|
margin: 0 auto !important;
|
|
max-width: calc(100% - calc(var(--zen-welcome-dialog-space) * 2)) !important;
|
|
max-height: calc(100% - calc(var(--zen-welcome-dialog-space) * 2)) !important;
|
|
margin-top: var(--zen-welcome-dialog-space) !important;
|
|
}
|
|
|
|
/* Display the vertical tabs on the right side */
|
|
|
|
@media (-moz-bool-pref: "zen.tabs.vertical.right-side") and (not (-moz-bool-pref: "zen.view.compact")) {
|
|
#navigator-toolbox {
|
|
order: 4;
|
|
padding-left: 0;
|
|
}
|
|
|
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
|
#navigator-toolbox {
|
|
padding-left: 5px;
|
|
}
|
|
}
|
|
|
|
#zen-sidebar-splitter {
|
|
order: 3;
|
|
}
|
|
|
|
#tabbrowser-tabbox {
|
|
padding-left: 10px;
|
|
}
|
|
|
|
#tabbrowser-tabpanels .browserSidebarContainer {
|
|
margin-right: 0 !important;
|
|
}
|
|
}
|