Skip to content

Commit

Permalink
CSS arrow to mark input and output
Browse files Browse the repository at this point in the history
**Note**: This is a prototype.

Instead of "In" and "Out" use arrow to mark the input and output
of IPython lessons.

To construct the arrows we only use CSS.
  • Loading branch information
Raniere Silva committed Feb 18, 2014
1 parent e875487 commit 6eed205
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
31 changes: 30 additions & 1 deletion lesson.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,41 @@
/* Manual input. */
.in {
color: darkgreen;
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;
font-style: italic;
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. */
Expand Down
27 changes: 0 additions & 27 deletions swc.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,13 @@ div.chapter h2 {
background-color: azure;
}

/* Comments in code. */
.comment {
color: purple;
}

/* Error messages. */
.err {
color: darkred;
font-style: italic;
}

/* Things to fix. */
.fixme {
text-decoration: underline;
color: darkred;
background-color: lightgray;
}

/* Highlighted changes in code. */
.highlight {
background-color: mistyrose;
}

/* Manual input. */
.in {
color: darkgreen;
}

/* Program output. */
.out {
color: darkblue;
font-style: italic;
}

/* Putting shadows around things. */
.shadow {
-moz-box-shadow: 0 0 30px 5px #999;
Expand Down

0 comments on commit 6eed205

Please sign in to comment.