Skip to content

Commit 5630bf3

Browse files
authored
Update userChrome.css - a lot of changes including context menu, window controls
1 parent 03f4f61 commit 5630bf3

File tree

1 file changed

+77
-5
lines changed

1 file changed

+77
-5
lines changed

firefox/userChrome.css

Lines changed: 77 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
overflow: hidden !important;
88
}
99

10-
html, body, #main-window, #navigator-toolbox, #nav-bar, #browser, #tabbrowser-tabpanels, .tab-background, #tabbrowser-tabs, #sidebar-main,body:not(:has(toolbarbutton[expanded])) #sidebar-wrapper{
10+
html, body, #main-window, #navigator-toolbox, #nav-bar, #browser, #tabbrowser-tabpanels, .tab-background:not([selected=""]), #tabbrowser-tabs, #sidebar-main,body:not(:has(toolbarbutton[expanded])) #sidebar-wrapper{
1111
background-color: transparent !important;
12+
/* background-color: #2e3440 !important; */
1213
background: none !important;
1314
border: none !important;
1415
}
@@ -225,7 +226,7 @@ body:has(#urlbar:not([open])):has(#urlbar:not([open]):hover, #nav-bar-customizat
225226
}
226227

227228

228-
.unified-extensions-item, #unified-extensions-button, #PanelUI-button, #sidebar-button{
229+
#unified-extensions-button, #PanelUI-button, #sidebar-button{
229230
opacity: 1 !important;
230231
}
231232

@@ -235,9 +236,9 @@ body:has(#urlbar:not([open])):has(#urlbar:not([open]):hover, #nav-bar-customizat
235236
}
236237

237238
#nav-bar{
238-
background-color: light-dark(#fff, #000) !important;
239+
background-color: var(--toolbar-field-background-color) !important;
239240
opacity: 1 !important;
240-
border-radius: 1em !important;
241+
border-radius: 0.75em !important;
241242
}
242243

243244
}
@@ -473,7 +474,8 @@ tab[soundplaying] .tab-background{
473474

474475
/* bg tint */
475476
#main-window{
476-
background-color: light-dark(#fff5 , #0005) !important;
477+
/* background-color: light-dark(#fff5 , #0005) !important; */
478+
/* background-color: #2e3440 !important; */
477479
}
478480

479481
/* urlbar mods */
@@ -507,3 +509,73 @@ tab[soundplaying] .tab-background{
507509
#urlbar{
508510
padding-left: 10px !important;
509511
}
512+
513+
#nav-bar{
514+
margin-left: 0.25em !important;
515+
margin-top: 0.25em !important;
516+
max-width: fit-content !important;
517+
518+
519+
.unified-extensions-item{
520+
width: 0px !important;
521+
padding: 0 !important;
522+
margin: 0 !important;
523+
opacity: 0 !important;
524+
transition: all 0.3s ease-in-out !important;
525+
}
526+
527+
&:has(#unified-extensions-button:hover, .unified-extensions-item:hover, [open], #PanelUI-button:hover){
528+
.unified-extensions-item{
529+
width: 30px !important;
530+
padding: inherit !important;
531+
margin: initial !important;
532+
opacity: 1 !important;
533+
}
534+
}
535+
536+
[widget-id="sidebar-button"]{
537+
display: none !important;
538+
}
539+
540+
#nav-bar-customization-target{
541+
max-width: fit-content !important;
542+
}
543+
}
544+
545+
/* =================== context menu ===================== */
546+
#contentAreaContextMenu, #toolbar-context-menu, #tabContextMenu{
547+
#context-savepage,
548+
#context-pocket,
549+
#context-sendpagetodevice,
550+
#context-selectall,
551+
menuseparator,
552+
#context-viewsource,
553+
#context-inspect-a11y,
554+
menu.menu-iconic,
555+
#context-openlinkintab,
556+
#context-openlinkinusercontext-menu,
557+
#context-openlink,
558+
#context-openlinkprivate,
559+
#context-bookmarklink,
560+
#context-savelink,
561+
#context-savelinktopocket,
562+
563+
#toolbar-context-openANewTab,
564+
#toolbar-context-reloadSelectedTab,
565+
#toolbar-context-bookmarkSelectedTab,
566+
#toolbar-context-undoCloseTab,
567+
568+
#context_bookmarkTab,
569+
#context_moveTabOptions,
570+
.share-tab-url-item,
571+
#context_reopenInContainer,
572+
#context_selectAllTabs,
573+
#context_closeTab,
574+
#context_closeDuplicateTabs,
575+
#context_closeTabOptions,
576+
#context_undoCloseTab
577+
{
578+
display: none !important;
579+
}
580+
581+
}

0 commit comments

Comments
 (0)