From 1342ac088640318c9ac59bb9b10305a444b031fd Mon Sep 17 00:00:00 2001 From: PaulStets Date: Sun, 15 Apr 2018 13:21:55 +0300 Subject: [PATCH 1/2] Added style for collapsible headers --- OsmAnd/assets/article_style.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) mode change 100644 => 100755 OsmAnd/assets/article_style.css diff --git a/OsmAnd/assets/article_style.css b/OsmAnd/assets/article_style.css old mode 100644 new mode 100755 index 5562dbb38d..0d746d8f6a --- a/OsmAnd/assets/article_style.css +++ b/OsmAnd/assets/article_style.css @@ -50,6 +50,27 @@ h2 { margin-bottom: 3%; } +h2.active:after { + transform: rotate(-135deg); + -webkit-transform: rotate(-135deg); + position: absolute; + right: 1em; +} + +h2:after { + vertical-align: middle; + content: ""; + border: solid black; + border-width: 0 3px 3px 0; + margin-top: 20px; + display: inline-block; + padding: 3px; + transform: rotate(45deg); + -webkit-transform: rotate(45deg); + position: absolute; + right: 1em; +} + h3 { color: #212121; font-size: 1.5em; From 8291f4415f14f41a96e14bb1cc9d86c53f3494f8 Mon Sep 17 00:00:00 2001 From: PaulStets Date: Sun, 15 Apr 2018 13:44:40 +0300 Subject: [PATCH 2/2] Renamed webViewClient --- ...{CustomWebViewClient.java => WikivoyageWebViewClient.java} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename OsmAnd/src/net/osmand/plus/wikivoyage/data/{CustomWebViewClient.java => WikivoyageWebViewClient.java} (94%) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/CustomWebViewClient.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/WikivoyageWebViewClient.java similarity index 94% rename from OsmAnd/src/net/osmand/plus/wikivoyage/data/CustomWebViewClient.java rename to OsmAnd/src/net/osmand/plus/wikivoyage/data/WikivoyageWebViewClient.java index e26bf7cf53..0b414b591c 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/CustomWebViewClient.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/WikivoyageWebViewClient.java @@ -22,7 +22,7 @@ import java.net.URLDecoder; * Custom WebView client to handle the internal links. */ -public class CustomWebViewClient extends WebViewClient { +public class WikivoyageWebViewClient extends WebViewClient { private OsmandApplication app; private FragmentManager mFragmentManager; @@ -31,7 +31,7 @@ public class CustomWebViewClient extends WebViewClient { private static final String PAGE_PREFIX = "https://"; private static final String WEB_DOMAIN = ".wikivoyage.com/wiki/"; - public CustomWebViewClient(FragmentActivity context, FragmentManager fm) { + public WikivoyageWebViewClient(FragmentActivity context, FragmentManager fm) { app = (OsmandApplication) context.getApplication(); mFragmentManager = fm; mContext = context;