summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongyi Zhang <hongyi73.zhang@gmail.com>2015-10-12 00:58:45 +0200
committerHongyi Zhang <hongyi73.zhang@gmail.com>2015-10-12 00:58:45 +0200
commit406ce65e26c4fda1b840b7267b148228cc3ca2f2 (patch)
tree9841119d7926d5e4cf8246ad32dcdc57331dad35
parentd4357dcc8ef213874d263dd9c55d39446bed2163 (diff)
disable pulldown menu on mobile devices
Signed-off-by: Hongyi Zhang <hongyi73.zhang@gmail.com>
-rw-r--r--user_guide_src/source/_themes/sphinx_rtd_theme/breadcrumbs.html2
-rw-r--r--user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css7
2 files changed, 8 insertions, 1 deletions
diff --git a/user_guide_src/source/_themes/sphinx_rtd_theme/breadcrumbs.html b/user_guide_src/source/_themes/sphinx_rtd_theme/breadcrumbs.html
index 60343661a..1694a1b09 100644
--- a/user_guide_src/source/_themes/sphinx_rtd_theme/breadcrumbs.html
+++ b/user_guide_src/source/_themes/sphinx_rtd_theme/breadcrumbs.html
@@ -15,7 +15,7 @@
{% endif %}
</li>
<div style="float:right;margin-left:5px;" id="closeMe">
- <img title="Classic Layout" alt="classic layout" src="data:image/gif;base64,R0lGODlhFAAUAJEAAAAAADMzM////wAAACH5BAUUAAIALAAAAAAUABQAAAImlI+py+0PU5gRBRDM3DxbWoXis42X13USOLauUIqnlsaH/eY6UwAAOw==" />
+ <img title="Switch Layout" alt="switch layout" src="data:image/gif;base64,R0lGODlhFAAUAJEAAAAAADMzM////wAAACH5BAUUAAIALAAAAAAUABQAAAImlI+py+0PU5gRBRDM3DxbWoXis42X13USOLauUIqnlsaH/eY6UwAAOw==" />
</div>
</ul>
<hr/>
diff --git a/user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css b/user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css
index 192af2004..4c5c2f30b 100644
--- a/user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css
+++ b/user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css
@@ -70,4 +70,11 @@ div#pulldown-menu {
font-weight: 300;
font-family: Lucida Grande,Verdana,Geneva,sans-serif;
color: #aaaaaa;
+}
+
+/*disable switch layout on mobile devices*/
+@media (max-width: 768px) {
+ #closeMe {
+ display: none;
+ }
} \ No newline at end of file