css Userchrome用于最小的仅限图标的TST侧边栏
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css Userchrome用于最小的仅限图标的TST侧边栏相关的知识,希望对你有一定的参考价值。
/* Hide main tabs toolbar */
#TabsToolbar {
visibility: collapse;
}
/* Sidebar min and max width removal */
#sidebar {
max-width: none !important;
min-width: 0px !important;
}
/* Hide splitter, when using Tree Style Tab. */
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter {
display: none !important;
}
/* Hide sidebar header, when using Tree Style Tab. */
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
visibility: collapse;
}
/* Shrink sidebar until hovered, when using Tree Style Tab. */
:root {
--thin-tab-width: 30px;
--wide-tab-width: 200px;
}
#sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) {
min-width: var(--wide-tab-width) !important;
max-width: none !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
position: relative !important;
transition: all 300ms !important;
min-width: var(--thin-tab-width) !important;
max-width: var(--thin-tab-width) !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover {
transition: all 300ms !important;
min-width: var(--wide-tab-width) !important;
max-width: var(--wide-tab-width) !important;
/* Negative right-margin to keep page from being pushed to the side. */
margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important;
}
以上是关于css Userchrome用于最小的仅限图标的TST侧边栏的主要内容,如果未能解决你的问题,请参考以下文章
css 火狐のUserChrome.css
CSS Firefox 3 userChrome.css:包装你的livebookmarks
css Firefox - userchrome.css - 具有标题栏边距的窗口
text userChrome.css
css 仅限最小化评论
Firefox 89 看不到 userChrome.css 甚至设置了 toolkit.legacyUserProfileCustomizations.stylesheets=true