Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehjohn committed Mar 13, 2024
1 parent 069593d commit b3d5f2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Sudoku.Console/Supporting Files/Styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ pre {
background-color: #b0d0b0;
}

.tree li a.added {
background-color: coral;
}

.tooltip:before {
content: attr(data-text);
position: absolute;
Expand Down
9 changes: 8 additions & 1 deletion src/Sudoku.Console/TreeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ private static string ProcessNode(Node node)
}
else
{
puzzle.Append(node[i]);
if (i == node.Move.X + node.Move.Y * 9)
{
puzzle.Append($"<span class='added'>{node[i]}</span>");
}
else
{
puzzle.Append(node[i]);
}
}
}

Expand Down

0 comments on commit b3d5f2a

Please sign in to comment.