Skip to content

Commit 273a099

Browse files
author
Philip Guo
committed
improved rendering a bit
1 parent ac0a59c commit 273a099

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

v3/css/pytutor.css

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -725,15 +725,25 @@ div.ExecutionVisualizer .highlight-legend {
725725

726726
/* prev then curr, so curr gets precedence when both apply */
727727
div.ExecutionVisualizer .pycrazy-highlight-prev {
728-
/*background-color: #F0F0EA;*/
728+
background-color: #eeeeee; /*#F0F0EA;*/
729+
/*
729730
text-decoration: none;
730-
border-bottom: 1px solid #c9e6ca;
731+
border-bottom: 1px solid #dddddd;
732+
*/
731733
}
732734

733735
div.ExecutionVisualizer .pycrazy-highlight-cur {
734-
/*background-color: #FFFF66;*/
735-
color: #e93f34;
736+
background-color: #FFFF66;
736737
/* aligned slightly higher than border-bottom */
737-
text-decoration: underline;
738+
/*
739+
text-decoration: none;
740+
border-bottom: 1px solid #e93f34;
741+
*/
738742
}
739743

744+
div.ExecutionVisualizer .pycrazy-highlight-prev-and-cur {
745+
background-color: #FFFF66;
746+
747+
text-decoration: none;
748+
border-bottom: 1px solid #999999;
749+
}

v3/js/pytutor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ ExecutionVisualizer.prototype.updateOutput = function(smoothTransition) {
14251425
var htmlEscapedChar = htmlspecialchars(codeAtLine[i]);
14261426

14271427
if (isCur && isPrev) {
1428-
curLineHTML += '<span class="pycrazy-highlight-prev pycrazy-highlight-cur">' + htmlEscapedChar + '</span>';
1428+
curLineHTML += '<span class="pycrazy-highlight-prev-and-cur">' + htmlEscapedChar + '</span>';
14291429
}
14301430
else if (isPrev) {
14311431
curLineHTML += '<span class="pycrazy-highlight-prev">' + htmlEscapedChar + '</span>';

0 commit comments

Comments
 (0)