From 40f7f60c33d61ad94e998899878d6b67a8684dcc Mon Sep 17 00:00:00 2001 From: rydesun Date: Thu, 15 Feb 2024 15:39:20 +0800 Subject: [PATCH] Update firefox sidebar --- .../profile/chrome/userChrome/sidebar.css | 4 +-- .../firefox/profile/chrome/userContent.css | 26 ++++++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.mozilla/firefox/profile/chrome/userChrome/sidebar.css b/.mozilla/firefox/profile/chrome/userChrome/sidebar.css index d371e6b..0e4d8df 100644 --- a/.mozilla/firefox/profile/chrome/userChrome/sidebar.css +++ b/.mozilla/firefox/profile/chrome/userChrome/sidebar.css @@ -4,8 +4,8 @@ /* Sidebery侧边栏在Hover时自动弹出 */ #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] { - min-width: 30px !important; - max-width: 30px !important; + min-width: 34px !important; + max-width: 34px !important; position: relative !important; z-index: 1000; } diff --git a/.mozilla/firefox/profile/chrome/userContent.css b/.mozilla/firefox/profile/chrome/userContent.css index 340e081..d616457 100644 --- a/.mozilla/firefox/profile/chrome/userContent.css +++ b/.mozilla/firefox/profile/chrome/userContent.css @@ -1,11 +1,29 @@ /* Sidebery */ -@-moz-document regexp("^moz-extension://[a-zA-Z0-9-]+/sidebar/index\.html.*") +@-moz-document regexp("^moz-extension://[a-zA-Z0-9-]+/sidebar/sidebar\.html.*") { - #root .Tab .close { + /* 修复在侧边栏开始弹出时,关闭按钮与网站图标重叠在一起的问题 */ + #root .Tab:hover .close { transition: opacity 200ms ease-in; } - #root .PinnedTab .close { - display: none !important; + /* 固定标签页不需要显示关闭按钮 */ + #root .PinnedTabsBar .close { + display: none; + } + #root .PinnedTabsBar .t-box { + mask: unset !important; + } + + /* 声音播放按钮放在网站图标左上角 */ + #root .panel[data-pos="center"] .audio { + left: 0 !important; + width: var(--tabs-pinned-audio-btn-width) !important; + height: var(--tabs-pinned-audio-btn-height) !important; + background-color: var(--frame-bg); + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 3px; + } + #root .Tab .t-box { + --audio-btn-offset: 0 !important; } }