Still fixing small fonts issues.

This commit is contained in:
Amine Bou 2018-01-27 17:17:43 +01:00
parent 35fe87d79d
commit 3b9436264c

View File

@ -325,7 +325,33 @@ class ArticleFragment : Fragment() {
rootView.webcontent.loadDataWithBaseURL( rootView.webcontent.loadDataWithBaseURL(
baseUrl, baseUrl,
"<style>img {display: inline-block;height: auto;width: 100%;max-width: 100%;}a {color: $stringColor;}*:not(a) {color: $stringTextColor;}* {word-break: break-word;font-size: ${fontSize.toPx}px;text-align: justify;}</style>$c", """<style>
|img {
| display: inline-block;
| height: auto;
| width: 100%;
| max-width: 100%;
|}
|a {
| color: $stringColor !important;
|}
|*:not(a) {
| color: $stringTextColor;
|}
|* {
| font-size: ${fontSize.toPx}px;
| text-align: justify;
| word-break: break-word;
| overflow:hidden;
|}
|a, pre, code {
| text-align: left;
|}
|pre, code {
| white-space: pre-wrap;
| width:100%;
| background-color: #EEEEEE;
|}</style>$c""".trimMargin(),
"text/html; charset=utf-8", "text/html; charset=utf-8",
"utf-8", "utf-8",
null null