diff --git a/.mozilla/firefox/profile/chrome/color.css b/.mozilla/firefox/profile/chrome/color.css deleted file mode 100644 index 7bf434b..0000000 --- a/.mozilla/firefox/profile/chrome/color.css +++ /dev/null @@ -1,4 +0,0 @@ -:root { - --color-background-dark: #1c1b22; - --color-shadow: black; -} diff --git a/.mozilla/firefox/profile/chrome/userChrome.css b/.mozilla/firefox/profile/chrome/userChrome.css index 389ea82..fad58aa 100644 --- a/.mozilla/firefox/profile/chrome/userChrome.css +++ b/.mozilla/firefox/profile/chrome/userChrome.css @@ -1,4 +1,3 @@ -@import "color.css"; @import "userChrome/sidebar.css"; @import "userChrome/topbar.css"; diff --git a/.mozilla/firefox/profile/chrome/userChrome/sidebar.css b/.mozilla/firefox/profile/chrome/userChrome/sidebar.css index e46d382..d371e6b 100644 --- a/.mozilla/firefox/profile/chrome/userChrome/sidebar.css +++ b/.mozilla/firefox/profile/chrome/userChrome/sidebar.css @@ -13,7 +13,7 @@ > #sidebar:hover { min-width: 200px !important; max-width: 200px !important; - box-shadow: 0 0 10px var(--color-shadow); + box-shadow: 0 0 10px black; } #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] > #sidebar { diff --git a/.mozilla/firefox/profile/chrome/userChrome/topbar.css b/.mozilla/firefox/profile/chrome/userChrome/topbar.css index 6f0b61e..cc1ad9a 100644 --- a/.mozilla/firefox/profile/chrome/userChrome/topbar.css +++ b/.mozilla/firefox/profile/chrome/userChrome/topbar.css @@ -1,6 +1,6 @@ -/* 隐藏标签栏 */ +/* 隐藏标签栏 (标签栏嵌入标题栏的情况除外) */ #main-window:not([tabsintitlebar="true"]) #TabsToolbar { - visibility: collapse; + display: none; } /* 去除工具栏最左和最右的空白边距 */ @@ -13,11 +13,17 @@ --toolbarbutton-outer-padding: 0 !important; } -/* 减小工具栏的高度 */ +/* 强制设置工具栏的高度为固定值 */ #nav-bar { max-height: 25px !important; } +/* 修复工具栏中的前进后退图标 (为什么特殊?) */ +#nav-bar .toolbarbutton-icon[type="menu"] { + padding: 4px !important; + border-radius: 0 !important; +} + /* 只在Hover时显示地址栏右侧的扩展图标 */ #nav-bar:not(:hover) #urlbar-container ~ .toolbaritem-combined-buttons { opacity: 0; diff --git a/.mozilla/firefox/profile/chrome/userContent.css b/.mozilla/firefox/profile/chrome/userContent.css deleted file mode 100644 index add333a..0000000 --- a/.mozilla/firefox/profile/chrome/userContent.css +++ /dev/null @@ -1,7 +0,0 @@ -@import "color.css"; - -@-moz-document url("about:blank"), url("about:newtab") { - body { - background-color: var(--color-background-dark) !important; - } -}