Skip to content

Commit

Permalink
Getting the pre-formatted code's color right
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Wilson committed Mar 3, 2014
1 parent 576190a commit 99a7cd4
Showing 1 changed file with 5 additions and 34 deletions.
39 changes: 5 additions & 34 deletions lesson.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* pre blocks inherit color from parent */
pre {
color: inherit;
}

/* Comments in code. */
.comment {
color: purple;
Expand All @@ -14,40 +19,12 @@
margin-left: 20px;
}

div.in:before {
content: "";
display: block;
width: 0;
height: 0;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 12px solid #727272;
position: relative;
left:-16px;
top:10px;
float:left;
}

/* Program output. */
.out {
color: darkblue;
margin-left: 20px;
}

div.out:before {
content: "";
display: block;
width: 0;
height: 0;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-right: 12px solid #727272;
position: relative;
left:-16px;
top:10px;
float:left;
}

/* Error output. */
.err {
color: darkred;
Expand All @@ -67,11 +44,5 @@ div.challenges {}
/* Key points in summary. */
div.keypoints {}

/* Main lesson. */
div.lesson {}

/* Learning objectives. */
div.objectives {}

/* Continuation paragraph. */
p.continue {}

0 comments on commit 99a7cd4

Please sign in to comment.