📜 ⬆️ ⬇️

Theme for night reading Habrahabr

Good day, habrazhiteli!
For a long time, I was worried about the problem of night reading habrahabr: I was preventing my wife from sleeping, and my eyes quickly got tired in the dark to read the white site. I made several attempts to create a nightly dark theme for habrahabr and it performed its function, but it was not high enough to put it in public access - after all, the site layout was very conservative and didn’t respond well to a neat restyling.

With the release of the new design of habrahabr, the layout of the site has become more progressive and simple, and I decided that this is the right moment to implement a long time ago.



In the process, the extempl user connected , and for two we had a completely usable nightly theme, the source code of which was published on Github , and the theme itself was published on userstyles.org and periodically updated to the latest version from the repository.
')
The main feature of the theme can be considered the use of trendy css-filters to reduce the contrast of images and videos. The original image is displayed when you hover over it with the mouse cursor. It is comfortable and beautiful. Now and in the afternoon I use this topic!

The theme can be installed in most current browsers using the Stylish extension. To install using Stylish, you just need to go to the page above on userstyles.org and click the big attractive button.

I invite to use. If you have found bugs that are bothering you or have any ideas for improvement, I’m waiting for your pull-requests on Github!

UPD: the style has been updated to correctly display icons in Firefox and Opera browsers. You can update the set style just as you installed it - from the style page.

UPD2: unfortunately, users of the Firefox browser (and, probably, Opera <= 12. *) still cannot appreciate the effect of css filters.

UPD3 : the style has been updated again, updated under the updated layout, plus support for geektimes. From the important: removed all transitions and css-filters, because they led to frequent rendering errors, making user style use impossible.

UPD4 : over time, the layout of the habr and its side-projects evolves and becomes better, which can not but rejoice.
Update under the new elements and added megamozg. Soon add tmfeed.
From pleasant - filters and transitions returned - eyes thank.

UPD5: Thanks to the enormous work, the extempl style was ported to Stylus, many of the jambs were fixed along the way - update and join the improvement!

Source: https://habr.com/ru/post/229287/


All Articles