chiark / gitweb /
css: improve code background color.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 1 Jan 2018 19:32:17 +0000 (20:32 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 1 Jan 2018 20:31:20 +0000 (21:31 +0100)
commitd7bdcae2336d4c699ffd7ccbf028ce25efb576d2
tree9b42770a227cef4fc38240d3613ad1f3dc87fb89
parent59bea1335ac526d1d577b54150ad60911426f5ea
css: improve code background color.

In the dark theme it's still the same as header background color, but
with 50% transparency. To avoid unnecessary transparency and browser
perfomance issues coming out of that (yes I *do* care about that), a
pre-calculated value combining it with background color is used.

Also, until now, code inside colored notes was looking awful. Now it's
using the 50% transparency and looks good. In order to avoid combinatory
explosion of variables, the transparency *is* used in case of notes, but
since cases like that are much less common, I don't think this is a
problem.

The light theme is not changed at all, except for adding a matching
semi-transparent variable.

Huge thanks to @Squareys for this suggestion.
css/m-components.css
css/m-dark.css
css/m-light.css
doc/css/components-test.rst