community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1866226 - in /comdev/reporter.apache.org/trunk/site/wizard/highlighter: highlighter.css highlighter.js
Date Sun, 01 Sep 2019 01:13:41 GMT
Author: humbedooh
Date: Sun Sep  1 01:13:41 2019
New Revision: 1866226

URL: http://svn.apache.org/viewvc?rev=1866226&view=rev
Log:
ditch divs, stick with marks but tweak greens to be inline-block

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.css
    comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.css
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.css?rev=1866226&r1=1866225&r2=1866226&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.css (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.css Sun Sep  1 01:13:41
2019
@@ -63,7 +63,7 @@
     background-color: #ffec99;
 }
 
-.hwt-content div.green {
+.hwt-content mark.green {
     background-color: #afa3;
 	width: 100%;
 	display: inline-block;

Modified: comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.js?rev=1866226&r1=1866225&r2=1866226&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/highlighter/highlighter.js Sun Sep  1 01:13:41
2019
@@ -393,7 +393,6 @@
 			input = input.replace(/\{\{hwt-mark-start\|(\d+)\}\}/g, function(match, submatch) {
 				var className = boundaries[+submatch].className;
 				if (className) {
-					if (className == 'green') return '<div class="green"><mark class="green">'
 					return '<mark class="' + className + '">';
 				} else {
 					return '<mark>';
@@ -401,7 +400,7 @@
 			});
 
 			// replace stop tokens with closing </mark> tags
-			input = input.replace(/\{\{hwt-mark-stop\}\}/g, '</mark></div>');
+			input = input.replace(/\{\{hwt-mark-stop\}\}/g, '</mark>');
 
 			this.$highlights.html(input);
 		},



Mime
View raw message