diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-07-13 23:05:01 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-07-13 23:47:27 +0200 |
commit | a3c396a1d059e139492ff25d2aee798626e35b2e (patch) | |
tree | 687ba7a6ebea4ffad7b72e3abb2496ca9c22fdd8 /public_html/data/css/ui-lightness/images | |
parent | 315e520d1ddee8da6390d6bd6f6cb5f5e7df389d (diff) |
Fix double linebreaks when copying code in firefox
Apparently firefox doesn't like html code in <pre> and adds incorrect
linebreaks when copying the code. This does not happen with chromium.
Fix it by switching to <code> instead of <pre>. Also change the CSS to
refer to the element by class instead of by type so future changes are
simpler.
Not sure why, but in chroium changing the container element type breaks
the ordering of the lines. Adding display: table to the .code-container
fixes this.
References:
http://stackoverflow.com/questions/24851173/why-does-text-copied-from-a-set-of-pre-tags-have-double-line-breaks#comment41552816_26408656
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'public_html/data/css/ui-lightness/images')
0 files changed, 0 insertions, 0 deletions