mobile-config-firefox/chrome/dark_context_menus.css
2020-05-22 08:13:58 +03:00

67 lines
2 KiB
CSS

/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/dark_context_menus.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Makes context menus dark. Also affects some portions of menu popups */
/* Uses dark theme colors but does not respect dark theme variables (they wouldn't work on sidebar context menu) */
:root{
--uc-menu-bkgnd: rgb(74,74,79);
--uc-menu-color: rgb(230,230,230);
--uc-menu-dimmed: rgba(255,255,255,0.1);
--uc-menu-disabled: rgb(50,50,50);
}
panel richlistbox,
panel tree,
panel button,
panel menulist,
panel textbox,
panel input,
menupopup,
menu,
menuitem{ -moz-appearance: none !important; }
menulist,
menuitem,
menu{ min-height: 1.8em }
panel menulist{ border: 1px solid transparent }
panel richlistbox,
panel tree,
panel button,
panel menulist,
panel textbox,
panel input,
panel #searchbar,
menupopup:not(#BMB_bookmarksPopup),
#main-menubar > menu > menupopup,
#context-navigation{
color: var(--uc-menu-color) !important;
padding: 2px;
background-color: var(--uc-menu-bkgnd) !important;
border-color: var(--uc-menu-disabled) !important;
}
panel textbox input{ padding: 2px !important; }
panel input{ border-width: 1px; border-style: solid; background-color: rgba(0,0,0,0.1) !important; }
panel #searchbar{ background-color: rgba(0,0,0,0.1) !important; padding: 0 !important; }
panel #searchbar input{ background-color: transparent !important; }
panel menulist:hover,
panel menulist[open]{ border-color: Highlight !important; }
#editBMPanel_folderMenuList > menupopup > menuitem{ color: var(--uc-menu-color) !important; }
panel treechildren::-moz-tree-row(selected),
panel button:hover,
menu:hover,
menu[_moz-menuactive],
menu[open],
menuitem:hover,
menuitem[_moz-menuactive]{ background-color: var(--uc-menu-dimmed) !important; color: inherit !important; }
menu[disabled="true"],
menuitem[disabled="true"]{ color: var(--uc-menu-disabled) !important; }
menu:not(.subviewbutton) > .menu-right{ filter: invert(1) }