为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Bookmarks spacing after FF 57

  • 9 个回答
  • 3 人有此问题
  • 2 次查看
  • 最后回复者为 kuopiofi

more options

As we know FF 57 removes cuts quite a few of the add-ons we've been using to deal with problems that have been popping up, among them Stylish. Which brings me to the old problem on this question: https://support.mozilla.org/en-US/questions/975714

From what I understand, the given userChrome.css solution in that question is only for the sidebar, does it work for bookmarks drop-bar/window as well? If not, could someone figure the correct code? Simple explanations how to actually use userChrome.css would be nice.

Bit unrelated, but is it be possible to return the favicons to address-bar using userChrome.css? FF's upcoming change will remove the add-ons that do that, so I'm reaching for other solutions...

As we know FF 57 removes cuts quite a few of the add-ons we've been using to deal with problems that have been popping up, among them Stylish. Which brings me to the old problem on this question: https://support.mozilla.org/en-US/questions/975714 From what I understand, the given userChrome.css solution in that question is only for the sidebar, does it work for bookmarks drop-bar/window as well? If not, could someone figure the correct code? Simple explanations how to actually use userChrome.css would be nice. * Bit unrelated, but is it be possible to return the favicons to address-bar using userChrome.css? FF's upcoming change will remove the add-ons that do that, so I'm reaching for other solutions...

所有回复 (9)

more options

What rules have you been using in Stylish up to now for this? Many of them may still work, but some will need updates.

If you are starting from scratch:

The selectors for the bookmarks menu that drops from the toolbar button generally start with BMB. For example, here are some rules to tighten up the menu (screenshot attached).

/* Shorten vertical height of some items on Toolbar Bookmarks Menu */
#BMB_bookmarksPopup .menu-iconic.subviewbutton, 
#BMB_bookmarksPopup .menuitem-iconic.bookmark-item.subviewbutton {
  max-height: 20px !important;
}
/* Reduce squishing of tall icons */
#BMB_bookmarksPopup .menu-iconic.subviewbutton .menu-iconic-left, 
#BMB_bookmarksPopup .menuitem-iconic.bookmark-item.subviewbutton .menu-iconic-left {
  padding-top: 0 !important;
  margin-bottom: 1px !important;
}
/* Tweak some large button areas */
#BMB_bookmarksPopup .panel-subview-header, 
#BMB_bookmarksPopup .subviewbutton.panel-subview-footer {
  min-height: 25px !important;
  padding: 6px 12px !important;
}
/* Reduce spacing above/below separators */
#BMB_bookmarksPopup menuseparator {
  margin-top: 2px !important;
  margin-bottom: 2px !important;
}

Example of how to set up a userChrome.css file: https://support.mozilla.org/questions/1170342#answer-993956

more options

From what I've found out, Stylish isn't working after FF 57, am I wrong with that?

I'm using the codes given on the original post/question without any changes, so if those need work I'd appreciate that.

Just to make sure, is that code you're giving for Stylish or userChrome.css? Pretty much computer illiterate one here. -_-; If it is for uC.css, my question about bookmarks window needs to be addressed.

Bit of problem with the link you give: there isn't "Show in Finder" / "Open Folder" button (see first pic), clicking Open folder next to profile opens window shown in second pic. That the right place?

more options

You can use userChrome.css.

A lot of selectors in the "Show your bookmarks" drop-down list start with #panelMenu:

  • #panelMenu_recentBookmarks
  • #panelMenu_showAllBookmarks
  • #panelMenu_bookmarksMenu > .bookmark-item
  • .PanelUI-subView menuseparator

See also:

  • chrome://browser/skin/browser.css
  • chrome://browser/skin/customizableui/panelUI.css

https://dxr.mozilla.org/mozilla-central/source/browser/themes/windows/browser.css https://dxr.mozilla.org/mozilla-central/source/browser/base/content/browser.css

由cor-el于修改

more options

... you realize that without someone telling me what those things do I have no clue what you're talking about? Pretty much novice here.

more options

kuopiofi said

I'm using the codes given on the original post/question without any changes, so if those need work I'd appreciate that.

If they work, then why change them?

Just to make sure, is that code you're giving for Stylish or userChrome.css?

Either.

If it is for uC.css, my question about bookmarks window needs to be addressed.

Please look at the "Before and After" screenshot attached to my post. That is what the code does.

Bit of problem with the link you give: there isn't "Show in Finder" / "Open Folder" button (see first pic), clicking Open folder next to profile opens window shown in second pic. That the right place?

"Show in Finder" is for Mac and "Open Folder" is for Windows. You are in the right place to create your chrome folder.

more options

So the next step is basically create a folder and copy/paste the codes to text files, place them to folder and that's it?

more options

Just to make sure, do I need to keep the codes in separate files or can I use single one?

more options

There can only be one file with the exact name userChrome.css in the folder with the exact name chrome.

You can either put all the code in the same file, or you can use "includes." Considering the code is pretty short, I suggest using just one file.

more options

Good to know, thanks. I'll give it a go and nag if something goes wrong. ;p