Update firefox css: narrow bar

This commit is contained in:
rydesun 2022-12-17 18:54:41 +08:00
parent 78c1c656a1
commit 4ac1f91285
2 changed files with 19 additions and 7 deletions

View file

@ -4,8 +4,8 @@
/* Sidebery侧边栏在Hover时自动弹出 */
#sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] {
min-width: 32px !important;
max-width: 32px !important;
min-width: 30px !important;
max-width: 30px !important;
position: relative !important;
z-index: 1000;
}

View file

@ -8,11 +8,23 @@
--toolbar-start-end-padding: 0 !important;
}
/* 减小工具栏的高度 (需要减小地址栏的最小高度) */
/* 不采用修改 :root --urlbar-min-height 的方式
* 因为该方式会导致地址栏内部最右侧的图标显示有问题 */
#urlbar {
min-height: 20px !important;
/* 去除工具栏的火狐自带图标的边距 */
:root {
--toolbarbutton-outer-padding: 0 !important;
}
/* 减小工具栏的高度 */
#nav-bar {
max-height: 26px !important;
}
/* 修改地址栏的边框,以适应窄的工具栏高度 */
#urlbar-background {
border-top: none !important;
border-bottom: none !important;
border-left: 1px solid var(--toolbar-field-border-color);
border-right: 1px solid var(--toolbar-field-border-color);
border-radius: unset !important;
}
/* 隐藏地址栏内部的容器图标 */