前往
大廳
主題

火狐Firefox CSS樣式:書籤分列

—— | 2019-03-20 00:15:09 | 巴幣 0 | 人氣 332

66又改了。
兩個,一、限定資料夾,資料夾需自己增減;
用以前的只要加/*還原*/那段
@-moz-document url(chrome://browser/content/browser.xul) {
       
/*還原 https://bugzilla.mozilla.org/show_bug.cgi?id=1454357 的變更*/
#PlacesToolbarItems .bookmark-item[container="true"]>menupopup>hbox>.popup-internal-box>.arrowscrollbox-scrollbox{
-moz-binding: url("data:application/vnd.mozilla.xul+xml;charset=UTF-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxiaW5kaW5ncyB4bWxucz0iaHR0cDovL3d3dy5tb3ppbGxhLm9yZy94YmwiCgl4bWxuczp4dWw9Imh0dHA6Ly93d3cubW96aWxsYS5vcmcva2V5bWFzdGVyL2dhdGVrZWVwZXIvdGhlcmUuaXMub25seS54dWwiCgl4bWxuczp4Ymw9Imh0dHA6Ly93d3cubW96aWxsYS5vcmcveGJsIj4KCTxiaW5kaW5nIGlkPSJzY3JvbGxib3giIGV4dGVuZHM9ImNocm9tZTovL2dsb2JhbC9jb250ZW50L2JpbmRpbmdzL2dlbmVyYWwueG1sI2Jhc2Vjb250cm9sIj4KCQk8Y29udGVudD4KCQkJPHh1bDpib3ggY2xhc3M9ImJveC1pbmhlcml0IHNjcm9sbGJveC1pbm5lcmJveCIgeGJsOmluaGVyaXRzPSJvcmllbnQsYWxpZ24scGFjayxkaXIiIGZsZXg9IjEiPgoJCQkJPGNoaWxkcmVuLz4KCQkJPC94dWw6Ym94PgoJCTwvY29udGVudD4KCTwvYmluZGluZz4KPC9iaW5kaW5ncz4K") !important;
}       
       
  
/*定義收藏項寬度一致*/
.bookmark-item[container="true"]:-moz-any([label="實用小書簽"],[label=""],[label="亂七八糟"],[label="雜項"],[label="火狐谷歌瀏覽器"],[label="VPN--SSH--代{過}{濾}理"],[label="網盤搜索雲筆記"],[label="電子郵箱"],[label="下載"],[label="論壇"],[label="谷歌"],[label="外國著名網站"],[label="電腦控制手機"]) .menuitem-with-favicon{
max-width:320px !important;
min-width:180px !important;
}

.bookmark-item[container="true"]:-moz-any(
/*需要多列顯示的書簽文件夾名,多個用(,)分割,
格式如下所示。下面的如此類推。跟第一個相同。
在userchorme.css中,中文注意編碼,
改為UTF8,stylish擴展可無視*/


[label="實用小書簽"],
[label="雜項"],
[label="火狐谷歌瀏覽器"],
[label="下載"]
) >menupopup>hbox .scrollbox-innerbox{
width: 390px !important; /*雙列顯示380px ,三列顯示數值改為570px(3x190)*/
display: table !important;
}

.bookmark-item[container="true"]:-moz-any(
[label="實用小書簽"],
[label="雜項"],
[label="火狐谷歌瀏覽器"],
[label="下載"]
)  .bookmark-item {
min-width: 190px !important;
max-width: 190px !important;
margin-right:5px!important;
}
.bookmark-item[container="true"] .bookmark-item{
max-width: 220px !important;
}
.bookmark-item[container="true"]:-moz-any(
[label="實用小書簽"],
[label="雜項"],
[label="火狐谷歌瀏覽器"],
[label="下載"]
) menu .bookmark-item {
min-width: 220px !important;
}

.bookmark-item[container="true"]:-moz-any(
[label="實用小書簽"],
[label="雜項"],
[label="火狐谷歌瀏覽器"],
[label="下載"]
)  >menupopup>hbox  .scrollbox-innerbox> menuseparator{
display: block !important;
}

.bookmark-item[container="true"]  scrollbox{
overflow-y: auto !important;
}

.bookmark-item[container="true"]  .bookmark-item .menu-iconic-text{
margin-right:-30px!important;
}
.bookmark-item[container="true"] :-moz-any(.abhere-menuitem,autorepeatbutton),
.bookmark-item[container="true"] .menuitem-iconic.bookmark-item.menuitem-with-favicon ~ menuseparator{
display:none!important;
}
.bookmark-item[container="true"] .openintabs-menuitem{
position:absolute;
}

}


二、不限資料夾一律分列,這個好像工具列不行,按鈕選單會亂掉。
.bookmark-item{
    max-width: 250px !important;
    min-width: 250px !important;
}

#BMB_bookmarksPopup menupopup[placespopup="true"] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox, #BMB_bookmarksPopup arrowscrollbox{
      width: 517px !important;
display:inline-block  !important;
      max-height: 90vh;
}
#BMB_bookmarksPopup menupopup[placespopup="true"] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox{
        overflow-y: auto;
}

#BMB_bookmarksPopup{
    max-width: 250px !important;
}

menuitem.openintabs-menuitem{
  display: none!important;
}

#BMB_bookmarksPopup menupopup[placespopup="true"] > hbox > .popup-internal-box > toolbarbutton.scrollbutton-up{
display: none !important;
}

#BMB_bookmarksPopup menupopup[placespopup="true"] > hbox > .popup-internal-box > toolbarbutton.scrollbutton-down{
display: none !important;
}

創作回應

更多創作