Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2018-04-20 12:51:09 +02:00
commit 418d798a9f
3 changed files with 29 additions and 8 deletions

View file

@ -59,13 +59,16 @@ h1 {
h2 { h2 {
font-size: 1.5em; font-size: 1.5em;
color: #454545; color: #575757;
font-family: serif; font-family: RobotoSlab-Regular;
word-wrap: break-word; word-wrap: break-word;
margin-top: 3%; margin-top: 3%;
margin-bottom: 3%; padding-bottom: 3%;
font-weight: normal; /* font-weight: bold; */
line-height: 1.6em; line-height: 1.6em;
letter-spacing: 0.01em;
border-bottom: 1px solid #eaecf0;
width: 100%;
} }
h2.active:after { h2.active:after {
@ -76,10 +79,11 @@ h2.active:after {
} }
h2:after { h2:after {
/* Headline arrow */
vertical-align: middle; vertical-align: middle;
content: ""; content: "";
border: solid black; border: solid #727272;
border-width: 0 3px 3px 0; border-width: 0 2px 2px 0;
margin-top: 13px; margin-top: 13px;
display: inline-block; display: inline-block;
padding: 3px; padding: 3px;
@ -159,7 +163,7 @@ pre {
background-color: #fafafa; background-color: #fafafa;
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
border-radius: 5px; border-radius: 5px;
padding: 2%; padding: 3% 3% 3% 3%;
color: #237bff; color: #237bff;
font-size: 0.9em; font-size: 0.9em;
font-weight: bold; font-weight: bold;
@ -168,6 +172,11 @@ pre {
display: inline-block; display: inline-block;
} }
@font-face {
font-family: RobotoSlab-Regular;
src: url("file:///assets/fonts/RobotoSlab-Regular.ttf")
}
td { td {
display: inline-block; display: inline-block;
word-wrap: break-word; word-wrap: break-word;

Binary file not shown.

View file

@ -73,7 +73,19 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
" content.style.display = \"block\";" + " content.style.display = \"block\";" +
" }" + " }" +
" });" + " });" +
"}" + "function scrollAnchor(id, title) {" + "}" +
"document.addEventListener(\"DOMContentLoaded\", function(event) {\n" +
" document.querySelectorAll('img').forEach(function(img) {\n" +
" img.onerror = function() {\n" +
" this.style.display = 'none';\n" +
" var caption = img.parentElement.nextElementSibling;\n" +
" if (caption.className == \"thumbnailcaption\") {\n" +
" caption.style.display = 'none';\n" +
" }\n" +
" };\n" +
" })\n" +
"});" +
"function scrollAnchor(id, title) {" +
"openContent(title);" + "openContent(title);" +
"window.location.hash = id;}\n" + "window.location.hash = id;}\n" +
"function openContent(id) {\n" + "function openContent(id) {\n" +