[diffoscope] 02/02: presenters/html: don't show pointer-cursor when jquery is disabled

Ximin Luo infinity0 at debian.org
Wed Sep 20 17:15:36 CEST 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository diffoscope.

commit 48ba0aa56fa166e651255991cae9351962f591f6
Author: Ximin Luo <infinity0 at debian.org>
Date:   Wed Sep 20 17:12:32 2017 +0200

    presenters/html: don't show pointer-cursor when jquery is disabled
---
 diffoscope/presenters/html/templates.py | 40 +++++++++++++++++----------------
 1 file changed, 21 insertions(+), 19 deletions(-)

diff --git a/diffoscope/presenters/html/templates.py b/diffoscope/presenters/html/templates.py
index bc806ee..b75cd86 100644
--- a/diffoscope/presenters/html/templates.py
+++ b/diffoscope/presenters/html/templates.py
@@ -118,31 +118,12 @@ STYLES = u"""body.diffoscope {
 .diffoscope .diffheader:hover .anchor {
   display: inline;
 }
-.diffoscope table.diff tr.ondemand td, .diffoscope div.ondemand-details {
-  background: #f99;
-  text-align: center;
-  padding: 0.5em 0;
-}
-.diffoscope table.diff tr.ondemand:hover td, .diffoscope div.ondemand-details:hover {
-  background: #faa;
-  cursor: pointer;
-}
 .diffoscope .diffcontrol, .diffoscope .diffcontrol-nochildren {
   float: left;
   margin-right: 0.3em;
   cursor: pointer;
   display: none; /* currently, only available in html-dir output where jquery is enabled */
 }
-.diffoscope .diffheader {
-  cursor: pointer;
-}
-.diffoscope .diffheader:hover .diffcontrol {
-  color: #080;
-  font-weight: bold;
-}
-.diffoscope .diffcontrol-double {
-  line-height: 250%;
-}
 .diffoscope .colines {
   width: 3em;
 }
@@ -209,6 +190,27 @@ $(function() {
   $(".diffcontrol-nochildren").show();
 });
 </script>
+<style type="text/css">
+.diffoscope table.diff tr.ondemand td, .diffoscope div.ondemand-details {
+  background: #f99;
+  text-align: center;
+  padding: 0.5em 0;
+}
+.diffoscope table.diff tr.ondemand:hover td, .diffoscope div.ondemand-details:hover {
+  background: #faa;
+  cursor: pointer;
+}
+.diffoscope .diffheader {
+  cursor: pointer;
+}
+.diffoscope .diffheader:hover .diffcontrol {
+  color: #080;
+  font-weight: bold;
+}
+.diffoscope .diffcontrol-double {
+  line-height: 250%%;
+}
+</style>
 """
 
 DIFFNODE_LAZY_LOAD = u"""<div class="ondemand-details" title="the size refers to the raw diff and includes all children;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list