Style tweaks: adds Allow hyphenation on all text (#4047)

Also fix vertical-align for sub in 'Smaller sub- and superscript'
pull/4050/head
Robert 6 years ago committed by poire-z
parent a08416d2f8
commit 2484f0f3bc

@ -88,6 +88,15 @@ local CssTweaks = {
css = [[* { text-align: justify !important; }]],
},
},
{
id = "hyphenate_all_auto";
title = _("Allow hyphenation on all text"),
description = _("Allow hyphenation to happen on all text (except headings), in case the publisher has disabled it."),
css = [[
* { hyphenate: auto !important; }
h1, h2, h3, h4, h5, h6 { hyphenate: none !important; }
]],
},
{
id = "sub_sup_smaller";
title = _("Smaller sub- and superscript"),
@ -97,7 +106,7 @@ local CssTweaks = {
-- https://github.com/koreader/koreader/issues/3923#issuecomment-386510294
css = [[
sup { font-size: 50% !important; vertical-align: super !important; }
sub { font-size: 50% !important; vertical-align: middle !important; }
sub { font-size: 50% !important; vertical-align: sub !important; }
]],
separator = true,
},

Loading…
Cancel
Save