214 lines
6.5 KiB
CSS
214 lines
6.5 KiB
CSS
/* Edge-Frfox - tweaks.css */
|
|
|
|
/* disable drag space above tabs */
|
|
@media (-moz-bool-pref: "uc.tweak.disable-drag-space") {
|
|
:root #titlebar {
|
|
--tab-block-margin: 0px !important;
|
|
}
|
|
}
|
|
|
|
/* force tabs to toolbar bg (useful for proton themes) (might experience some
|
|
bugs with certain themes eg. dark text on dark background.) */
|
|
@media (-moz-bool-pref: "uc.tweak.force-tab-colour") {
|
|
:root {
|
|
--lwt-selected-tab-background-color: unset !important;
|
|
}
|
|
}
|
|
|
|
/* remove tab separators */
|
|
@media (-moz-bool-pref: "uc.tweak.remove-tab-separators") {
|
|
.tabbrowser-tab:not([selected="true"], :hover, [beforeselected-visible], [beforehovered]) .tab-stack::after {
|
|
display: none !important;
|
|
}
|
|
|
|
.tabbrowser-tab:not([last-visible-tab="true"]) {
|
|
margin-inline-end: 0px !important;
|
|
}
|
|
}
|
|
|
|
@media (-moz-bool-pref: "uc.tweak.floating-tabs") {
|
|
:root:not(:-moz-lwtheme),
|
|
:root[privatebrowsingmode="temporary"][style*="--lwt-accent-color: rgb(28, 27, 34)"] {
|
|
--lwt-accent-color: light-dark(#f3f3f3, #202020) !important;
|
|
--lwt-accent-color-inactive: unset !important;
|
|
--toolbar-bgcolor: light-dark(#fff, #4D4D4D) !important;
|
|
--lwt-tab-text: light-dark(#262626, #fff) !important;
|
|
--chrome-content-separator-color: light-dark(#bfbfbf, #535353) !important;
|
|
--uc-urlbar-shadow: none !important;
|
|
--uc-tab-border-color: light-dark(#0000, #fff1) !important;
|
|
--toolbar-non-lwt-bgcolor: var(--lwt-accent-color) !important;
|
|
}
|
|
|
|
@media (-moz-gtk-csd-available) {
|
|
:root:not(:-moz-lwtheme) {
|
|
--toolbar-bgcolor: color-mix(in srgb, -moz-dialog 80%, #fff) !important;
|
|
--toolbar-field-background-color: Field !important;
|
|
--lwt-tab-text: -moz-dialogtext !important;
|
|
--uc-tab-border-color: #ffffff0f !important;
|
|
}
|
|
}
|
|
|
|
.tabbrowser-tab,
|
|
#tabbrowser-arrowscrollbox-periphery #tabs-newtab-button,
|
|
#TabsToolbar #TabsToolbar-customization-target> :not(#tabbrowser-tabs) {
|
|
padding-top: 4px !important;
|
|
}
|
|
|
|
#tabbrowser-tabs {
|
|
margin-top: calc(var(--tab-block-margin) - 4px) !important;
|
|
}
|
|
|
|
#TabsToolbar #TabsToolbar-customization-target> :not(#tabbrowser-tabs) {
|
|
margin-top: calc(var(--tab-block-margin) - 2px) !important;
|
|
}
|
|
|
|
/* remove toolbar bg */
|
|
#nav-bar,
|
|
#PersonalToolbar {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
/* invert bottom corner radius for tabs */
|
|
.tab-background::before,
|
|
.tab-background::after {
|
|
display: none !important;
|
|
}
|
|
|
|
.tab-background {
|
|
border-radius: var(--tab-border-radius) !important;
|
|
}
|
|
|
|
.tab-background[selected] {
|
|
outline: 1px solid var(--uc-tab-border-color, var(--lwt-tab-line-color, var(--lwt-tabs-border-color, transparent))) !important;
|
|
outline-offset: -1px !important;
|
|
}
|
|
|
|
/* adjust spacing of area above tabs */
|
|
@media not (-moz-platform: macos) {
|
|
:root[sizemode="maximized"] #titlebar {
|
|
--tab-block-margin: 4px !important;
|
|
}
|
|
}
|
|
|
|
:root:is([inFullscreen], :not([tabsintitlebar])) #titlebar {
|
|
--tab-block-margin: 4px !important;
|
|
}
|
|
|
|
@media (-moz-bool-pref: "uc.tweak.disable-drag-space") {
|
|
:root #titlebar {
|
|
--tab-block-margin: 4px !important;
|
|
}
|
|
}
|
|
|
|
/* move tab shadow behind urlbar */
|
|
.tabbrowser-tab[visuallyselected="true"],
|
|
#nav-bar {
|
|
z-index: 2 !important;
|
|
}
|
|
|
|
/* tab shadow adjustments */
|
|
.tabbrowser-tab {
|
|
overflow-clip-margin: 8px !important;
|
|
}
|
|
|
|
.tabbrowser-tab,
|
|
#TabsToolbar #tabs-newtab-button,
|
|
/* no ::part workaround - may have side effects */
|
|
#scrollbutton-up[part="scrollbutton-up"]:not(.menupopup-scrollbutton),
|
|
#scrollbutton-down[part="scrollbutton-down"]:not(.menupopup-scrollbutton) {
|
|
margin-bottom: 8px !important;
|
|
}
|
|
|
|
#tabbrowser-arrowscrollbox {
|
|
margin-bottom: -8px !important;
|
|
}
|
|
|
|
:root {
|
|
--uc-titlebar-shadow: none;
|
|
--uc-tab-shadow:
|
|
0 3.3px 3px rgb(0 0 0 / .06),
|
|
0 0 0 1px rgb(0 0 0 / .11);
|
|
}
|
|
|
|
:root[lwtheme-brighttext="true"] {
|
|
--uc-titlebar-shadow: none;
|
|
--uc-tab-shadow: 0 1px 2px rgb(0 0 0 / .08);
|
|
}
|
|
}
|
|
|
|
@media not (-moz-platform: macos) {
|
|
@media not (-moz-bool-pref: "uc.tweak.revert-context-menu") {
|
|
@media (-moz-bool-pref: "uc.tweak.vertical-context-navigation") {
|
|
#context-navigation {
|
|
flex-direction: column !important;
|
|
-moz-box-orient: vertical !important;
|
|
}
|
|
|
|
#context-navigation>.menuitem-iconic {
|
|
justify-content: start !important;
|
|
-moz-box-pack: start !important;
|
|
}
|
|
|
|
#context-navigation .menu-iconic-text {
|
|
display: flex !important;
|
|
}
|
|
|
|
:root,
|
|
:root[lang^="en"] {
|
|
--uc-string-back: "Back";
|
|
--uc-string-forward: "Forward";
|
|
--uc-string-reload: "Reload";
|
|
--uc-string-stop: "Stop";
|
|
--uc-string-bookmark-page: "Bookmark Page";
|
|
--uc-string-edit-bookmark: "Edit Bookmark";
|
|
}
|
|
|
|
#context-navigation>#context-back .menu-iconic-text::before {
|
|
content: var(--uc-string-back) !important;
|
|
}
|
|
|
|
#context-navigation>#context-forward .menu-iconic-text::before {
|
|
content: var(--uc-string-forward) !important;
|
|
}
|
|
|
|
#context-navigation>#context-reload .menu-iconic-text::before {
|
|
content: var(--uc-string-reload) !important;
|
|
}
|
|
|
|
#context-navigation>#context-stop .menu-iconic-text::before {
|
|
content: var(--uc-string-stop) !important;
|
|
}
|
|
|
|
#context-navigation>#context-bookmarkpage .menu-iconic-text::before {
|
|
content: var(--uc-string-bookmark-page) !important;
|
|
}
|
|
|
|
#context-navigation>#context-bookmarkpage[starred] .menu-iconic-text::before {
|
|
content: var(--uc-string-edit-bookmark) !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (-moz-windows-compositor) {
|
|
@media (-moz-bool-pref: "uc.tweak.revert-context-menu") {
|
|
menupopup {
|
|
--panel-color: var(--arrowpanel-color) !important;
|
|
--panel-border-radius: 4px !important;
|
|
--panel-border-color: var(--arrowpanel-border-color) !important;
|
|
--panel-background: var(--arrowpanel-background) !important;
|
|
--menuitem-hover-background-color: var(--panel-item-hover-bgcolor) !important;
|
|
--menu-background-color: var(--arrowpanel-background) !important;
|
|
--menu-color: var(--arrowpanel-color) !important;
|
|
--menuitem-disabled-hover-background-color: #0000 !important;
|
|
--menu-disabled-color: var(--panel-disabled-color) !important;
|
|
--menu-border-color: var(--panel-separator-color) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (-moz-bool-pref: "uc.tweak.show-tab-close-button-on-hover") {
|
|
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([pinned], [selected]):hover .tab-close-button {
|
|
display: flex !important;
|
|
}
|
|
}
|