Skip to content

Commit

Permalink
Make Sandcastle line markers more visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
emackey committed Apr 15, 2015
1 parent 5355731 commit e8b10e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Apps/Sandcastle/CesiumSandcastle.css
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ a.linkButton:focus, a.linkButton:hover {
font-weight: bold;
background-color: #F42;
border-radius: 3px;
border: none;
}

.CodeMirror pre.errorLine {
Expand All @@ -215,6 +216,7 @@ a.linkButton:focus, a.linkButton:hover {
font-weight: bold;
background-color: #FE2;
border-radius: 3px;
border: none;
}

.CodeMirror pre.hintLine {
Expand All @@ -228,6 +230,7 @@ a.linkButton:focus, a.linkButton:hover {
font-weight: bold;
background-color: #2E2;
border-radius: 3px;
border: none;
}

.CodeMirror pre.highlightLine {
Expand All @@ -241,6 +244,7 @@ a.linkButton:focus, a.linkButton:hover {
font-weight: bold;
background-color: #CEF;
border-radius: 3px;
border: none;
}

.CodeMirror pre.searchLine {
Expand Down
11 changes: 10 additions & 1 deletion Apps/Sandcastle/CesiumSandcastle.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,16 @@ require({
function makeLineLabel(msg, className) {
var element = document.createElement('abbr');
element.className = className;
element.innerHTML = ' ';
switch (className) {
case 'hintMarker':
element.innerHTML = '▲';
break;
case 'errorMarker':
element.innerHTML = '×';
break;
default:
element.innerHTML = '▶';
}
element.title = msg;
return element;
}
Expand Down

0 comments on commit e8b10e5

Please sign in to comment.