Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ウインドウアクティブ時にタイトルバーの背景色をWindowsのテーマ色に設定 */
- :is(#TabsToolbar, #toolbar-menubar):not(:-moz-window-inactive) {
- color: -moz-accent-color-foreground;
- background-color: -moz-accent-color;
- }
- #titlebar:not(:-moz-window-inactive) :is(.toolbarbutton-animatable-box, .toolbarbutton-1),
- :is(#scrollbutton-up, #scrollbutton-down):not(:-moz-window-inactive) {
- fill: -moz-accent-color-foreground !important;
- }
- /* 選択中タブの色をツールバーの色に変更 */
- .tab-background[selected="true"] {
- color: var(--toolbar-color) !important;
- background-color: var(--toolbar-bgcolor) !important;
- }
- /* タブの高さの調節(20px以上の任意の数値を指定可能) */
- :root[uidensity=compact] { --tab-min-height: 20px !important; } /*コンパクト*/
- :root { --tab-min-height: 29px !important; } /*通常*/
- :root[uidensity=touch] { --tab-min-height: 41px !important; } /*タッチ*/
- #scrollbutton-up, #scrollbutton-down {
- height: var(--tab-min-height) !important;
- padding: 0px calc(var(--toolbarbutton-inner-padding) - 6px) !important;
- }
- /* タブの高さ29px未満のための設定 */
- :root[tabsintitlebar][sizemode="normal"] #titlebar { appearance: none !important; }
- .titlebar-buttonbox-container { height: var(--tab-min-height) !important; }
- .titlebar-button { padding: 0px 17px !important; }
- .tab-close-button {
- height: min(calc(var(--tab-min-height) - 5px), 24px) !important;
- width: 24px !important;
- padding: calc((var(--tab-min-height) - 15px) / 2) 7px !important;
- }
- /* タブの形状を長方形に戻す */
- .tab-background {
- border-radius: 0px !important;
- margin-block: 0px !important;
- }
- /* タブ間のセパレータ表示 */
- #tabbrowser-arrowscrollbox .tabbrowser-tab {
- border-right: 1px solid color-mix(in srgb, -moz-accent-color-foreground 30%, transparent) !important;
- padding-inline: 0px !important;
- }
- #tabbrowser-arrowscrollbox :is(.tabbrowser-tab[first-visible-tab="true"], .tabbrowser-tab[first-visible-unpinned-tab="true"]) {
- border-left: 1px solid color-mix(in srgb, -moz-accent-color-foreground 30%, transparent) !important;
- }
- /* ファビコン表示 */
- .tab-icon-stack:not([pinned], [sharing], [crashed]):is([soundplaying], [muted], [activemedia-blocked]) > :not(.tab-icon-overlay) {
- opacity: 1.0 !important;
- }
- /* 再生中、ミュート、メディアブロックアイコン非表示 */
- .tab-icon-overlay:not([crashed]):is([soundplaying], [muted], [activemedia-blocked]) {
- display: none !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment