Skip to content
Snippets Groups Projects
Commit 6eed205e authored by Raniere Silva's avatar Raniere Silva
Browse files

CSS arrow to mark input and output

**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.
parent e8754873
Branches
Tags
No related merge requests found
...@@ -11,12 +11,41 @@ ...@@ -11,12 +11,41 @@
/* Manual input. */ /* Manual input. */
.in { .in {
color: darkgreen; 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. */ /* Program output. */
.out { .out {
color: darkblue; 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. */ /* Error output. */
......
...@@ -23,17 +23,6 @@ div.chapter h2 { ...@@ -23,17 +23,6 @@ div.chapter h2 {
background-color: azure; background-color: azure;
} }
/* Comments in code. */
.comment {
color: purple;
}
/* Error messages. */
.err {
color: darkred;
font-style: italic;
}
/* Things to fix. */ /* Things to fix. */
.fixme { .fixme {
text-decoration: underline; text-decoration: underline;
...@@ -41,22 +30,6 @@ div.chapter h2 { ...@@ -41,22 +30,6 @@ div.chapter h2 {
background-color: lightgray; 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. */ /* Putting shadows around things. */
.shadow { .shadow {
-moz-box-shadow: 0 0 30px 5px #999; -moz-box-shadow: 0 0 30px 5px #999;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment