搜索 | 用户支持

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

详细了解

How to make the sidebar in Firefox Reader View Mode another (dark) color? Because I made a dark background and browser themes doesn't affect the color panel.

  • 3 个回答
  • 1 人有此问题
  • 20 次查看
  • 最后回复者为 dark8_Kitten

more options

I made a dark background in Firefox Reader View and default browser theme doesn't affect the color panel. Addons Reader View Mode don't have the functionality that I need.

I made a dark background in Firefox Reader View and default browser theme doesn't affect the color panel. Addons Reader View Mode don't have the functionality that I need.
已附加屏幕截图

被采纳的解决方案

Try this code in userContent.css as a start. I don't know that other elements need to be included and whether you want to add :hover and and pseudo class rules.

@-moz-document url-prefix("about:reader?"){
 .toolbar.reader-toolbar {
    background-color: #222 !important;
  }
  .toolbar.reader-toolbar :-moz-any(.button,.dropdown-popup) {
    color: white !important;
    background-color: #222 !important;
  }
}

See also this file for code that is used:

  • chrome://global/skin/aboutReader.css
.button:hover,
.font-size-buttons > button:hover,
.font-type-buttons > button:hover,
.content-width-buttons > button:hover,
.line-height-buttons > button:hover {
  background-color: #ebebeb;
}

.dropdown.open,
.button:active,
.font-size-buttons > button:active,
.font-size-buttons > button.selected,
.content-width-buttons > button:active,
.content-width-buttons > button.selected,
.line-height-buttons > button:active,
.line-height-buttons > button.selected {
  background-color: #dadada;
}

It is not that difficult to create userContent.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userContent.css (name is case sensitive). In this userContent.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userChrome.css file as a plain text file.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userContent.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close (Quit/Exit) and restart Firefox when you create or modify the userContent.css file.

定位到答案原位置 👍 1

所有回复 (3)

more options

Hi, I think this will require using a custom style rule in a userContent.css file. If that was complete gibberish to you, it's understandable, and volunteers can help.

I have to leave the keyboard now, but for reference, this is the kind of style rule I have in mind:

@-moz-document url-prefix("about:reader"){
  body.dark > ul, 
  body.dark > ul li, 
  body.dark > ul button:not(.light-button):not(.sepia-button) {
    color: #f8f8f8;
    background-color: #111;
  }
}
more options

选择的解决方案

Try this code in userContent.css as a start. I don't know that other elements need to be included and whether you want to add :hover and and pseudo class rules.

@-moz-document url-prefix("about:reader?"){
 .toolbar.reader-toolbar {
    background-color: #222 !important;
  }
  .toolbar.reader-toolbar :-moz-any(.button,.dropdown-popup) {
    color: white !important;
    background-color: #222 !important;
  }
}

See also this file for code that is used:

  • chrome://global/skin/aboutReader.css
.button:hover,
.font-size-buttons > button:hover,
.font-type-buttons > button:hover,
.content-width-buttons > button:hover,
.line-height-buttons > button:hover {
  background-color: #ebebeb;
}

.dropdown.open,
.button:active,
.font-size-buttons > button:active,
.font-size-buttons > button.selected,
.content-width-buttons > button:active,
.content-width-buttons > button.selected,
.line-height-buttons > button:active,
.line-height-buttons > button.selected {
  background-color: #dadada;
}

It is not that difficult to create userContent.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userContent.css (name is case sensitive). In this userContent.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userChrome.css file as a plain text file.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userContent.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close (Quit/Exit) and restart Firefox when you create or modify the userContent.css file.

more options

cor-el said

Try this code in userContent.css as a start... You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userContent.css... You need to close (Quit/Exit) and restart Firefox when you create or modify the userContent.css file.

And I created new style, like

@-moz-document url-prefix("about:reader") {
	.toolbar{
		background-color: #383C4A !important;
	}
	.button {
		color: #ccc !important;
		background-color: #383C4A !important;
	}
}

Now I comfort read, thank you. :)