Last active
November 21, 2021 07:35
-
-
Save aplaice/2d2ec1e552bed0c0e594efa55264cadb to your computer and use it in GitHub Desktop.
Customise appearance of Firefox's reader mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @-moz-document url-prefix("about:reader") { | |
| /* | |
| Auto-hide reader sidebar (it re-appears only when hovering over it) | |
| source: | |
| https://www.reddit.com/r/firefox/comments/39tcie/how_do_i_hide_the_sidebar_in_reader_view/cs6dmqb | |
| */ | |
| .reader-toolbar,.reader-toolbar .button:not(:hover) { | |
| background-color:transparent !important; | |
| border:none!important; | |
| } | |
| .reader-toolbar:not(:hover)>*:not([open]){ | |
| visibility:hidden; | |
| } | |
| /* Make dark background darker */ | |
| body.dark { | |
| background-color: #080808 !important; | |
| } | |
| body { | |
| text-align: justify; | |
| } | |
| /* Would be nice if the color only applied if we were in dark mode, but that's not possible. */ | |
| /* I obtained the dark color by "darkening" Ubuntu's default orange | |
| scrollbars, to maintain some degree of consistency. */ | |
| html { | |
| scrollbar-color: #663C2C black; /* #663C2C is orange-ish, but darkened */ | |
| scrollbar-width: thin; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


