Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

userChrome.css to disable blue highlight marker on active tab

more options

I am using tab-on-bottom code in userChrome.css that I got from the web.

1. There is a highlight feature of the tabs. A mouse-over will do a subtle enhancement of the top portion of the line delineating of the tab. 2. The active tab has a blue bar at the top portion of the line delineating the tab.

I want both to go away. I have code to highlight the background color of the active tab and need no other highlight function.

The userChrome.css is below.

Thanks, Gert

/* TABS: bottom - Firefox 65 and newer; should for now work with XUL @namespace */


  1. TabsToolbar {
 -moz-box-ordinal-group: 1000 !important;
 display: block !important;
 position: absolute !important;
 bottom: 0 !important;
 width: 100vw !important;

}

  1. tabbrowser-tabs {
 width: 100vw !important;

}

  • |*:root:not([chromehidden*="toolbar"]) #navigator-toolbox {
 padding-bottom: calc(var(--tab-min-height) + 1px) !important; /*adjust*/

}

/* position Tab bar with Menu bar and Title bar hidden for Firefox 65-73 - omit in Firefox Nightly */

  • |*:root[tabsintitlebar]:not([inFullscreen="true"]):not([sizemode="maximized"])
  1. toolbar-menubar[autohide="true"] ~ #xTabsToolbar{
 bottom: var(--tab-min-height) !important;
 padding-top: calc(var(--tab-min-height) - 0px) !important; /*adjust*/

}

/* TABS: height */

  • |*:root {
 --tab-toolbar-navbar-overlap: 0px !important;
 --tab-min-height: 30px !important; /*adjust to set height or omit to use density*/
 --tab-min-width:  80px !important; /*adjust to set width or omit to use default*/

}

  1. TabsToolbar {
 height: var(--tab-min-height) !important;
 margin-bottom: -0px !important; /*adjust*/
 background-color: #F5F6F7 !important;

}


/* caption buttons - hide */

  • |*:root[tabsintitlebar]:not([inFullscreen="true"])
#toolbar-menubar[autohide="true"] ~ #TabsToolbar
.titlebar-buttonbox-container {display: none !important;}

/* Change Color of active tab */ .tab-background[selected="true"] {

   background-color: #A8FFAD !important;
   background-image: none !important;

}

/* Rounded corners on tabs firefox 58 */ /* http://forums.mozillazine.org/viewtopic.php?f=38&t=3037688# */ .tabbrowser-tab::after, .tabbrowser-tab::before {

  border-left: none !important;

} .tab-background {

 border-radius: 6px 6px 6px 6px !important;
 border-image: none !important;
 border-left: 1px solid !important;
 border-right: 1px solid !important;
 border-top: 1px solid !important;
 border-width: 1px !important;
 border-color: #000080 !important;
 background-attachment: none!important;
 background-color: #DAD7D0 !important;
 background-image: none !important;

}

/* Menu bar (File Edit View) height and background color */

  1. toolbar-menubar, #menubar-items, #main-menubar {
 height: 30px !important;
 background-color: #DAD7D0 !important;
 background-image: none !important;
 font-size: 14px !important;

}

/* Menu bar (File Edit View) text color */ .menubar-text, .tabbrowser-tab:not([selected="true"]) tab-label {

 color: #080808 !important;

}

/* Use Normal top and bottom padding for Compact */

  1. PlacesToolbarItems .bookmark-item {
 padding-top: 10px !important;
 padding-bottom: 6px !important;

}

I am using tab-on-bottom code in userChrome.css that I got from the web. 1. There is a highlight feature of the tabs. A mouse-over will do a subtle enhancement of the top portion of the line delineating of the tab. 2. The active tab has a blue bar at the top portion of the line delineating the tab. I want both to go away. I have code to highlight the background color of the active tab and need no other highlight function. The userChrome.css is below. Thanks, Gert /* TABS: bottom - Firefox 65 and newer; should for now work with XUL @namespace */ #TabsToolbar { -moz-box-ordinal-group: 1000 !important; display: block !important; position: absolute !important; bottom: 0 !important; width: 100vw !important; } #tabbrowser-tabs { width: 100vw !important; } *|*:root:not([chromehidden*="toolbar"]) #navigator-toolbox { padding-bottom: calc(var(--tab-min-height) + 1px) !important; /*adjust*/ } /* position Tab bar with Menu bar and Title bar hidden for Firefox 65-73 - omit in Firefox Nightly */ *|*:root[tabsintitlebar]:not([inFullscreen="true"]):not([sizemode="maximized"]) #toolbar-menubar[autohide="true"] ~ #xTabsToolbar{ bottom: var(--tab-min-height) !important; padding-top: calc(var(--tab-min-height) - 0px) !important; /*adjust*/ } /* TABS: height */ *|*:root { --tab-toolbar-navbar-overlap: 0px !important; --tab-min-height: 30px !important; /*adjust to set height or omit to use density*/ --tab-min-width: 80px !important; /*adjust to set width or omit to use default*/ } #TabsToolbar { height: var(--tab-min-height) !important; margin-bottom: -0px !important; /*adjust*/ background-color: #F5F6F7 !important; } /* caption buttons - hide */ *|*:root[tabsintitlebar]:not([inFullscreen="true"]) #toolbar-menubar[autohide="true"] ~ #TabsToolbar .titlebar-buttonbox-container {display: none !important;} /* Change Color of active tab */ .tab-background[selected="true"] { background-color: #A8FFAD !important; background-image: none !important; } /* Rounded corners on tabs firefox 58 */ /* http://forums.mozillazine.org/viewtopic.php?f=38&t=3037688# */ .tabbrowser-tab::after, .tabbrowser-tab::before { border-left: none !important; } .tab-background { border-radius: 6px 6px 6px 6px !important; border-image: none !important; border-left: 1px solid !important; border-right: 1px solid !important; border-top: 1px solid !important; border-width: 1px !important; border-color: #000080 !important; background-attachment: none!important; background-color: #DAD7D0 !important; background-image: none !important; } /* Menu bar (File Edit View) height and background color */ #toolbar-menubar, #menubar-items, #main-menubar { height: 30px !important; background-color: #DAD7D0 !important; background-image: none !important; font-size: 14px !important; } /* Menu bar (File Edit View) text color */ .menubar-text, .tabbrowser-tab:not([selected="true"]) tab-label { color: #080808 !important; } /* Use Normal top and bottom padding for Compact */ #PlacesToolbarItems .bookmark-item { padding-top: 10px !important; padding-bottom: 6px !important; }

글쓴이 drgert1 수정일시

선택된 해결법

Hi Gert, you can put <pre> before and </pre> after blocks of CSS here to avoid interpretation as wiki markup.

The selector for the line at the top of each tab is very sensibly named: .tab-line

To suppress that you could try either:

.tab-line { opacity: 0 !important; } .tab-line { background-color: transparent !important; }

Was that it?

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (3)

more options

선택된 해결법

Hi Gert, you can put <pre> before and </pre> after blocks of CSS here to avoid interpretation as wiki markup.

The selector for the line at the top of each tab is very sensibly named: .tab-line

To suppress that you could try either:

.tab-line { opacity: 0 !important; } .tab-line { background-color: transparent !important; }

Was that it?

more options

Yes, both work.

Just wondering, is there a comprehensive list of UI objects with tutorial how to control them?

Cheers, Gert

more options

There's definitely nothing official, and things change often, so any list would age rapidly. You could do what many people do and become comfortable poking around using the Browser Toolbox. https://developer.mozilla.org/docs/Tools/Browser_Toolbox