From 99a7cd43b0a01b89dd56cd17fd8579a7d9673b5c Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Mon, 3 Mar 2014 11:12:54 -0500 Subject: [PATCH] Getting the pre-formatted code's color right --- lesson.css | 39 +++++---------------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/lesson.css b/lesson.css index 0b914df..fcef217 100644 --- a/lesson.css +++ b/lesson.css @@ -1,3 +1,8 @@ +/* pre blocks inherit color from parent */ +pre { + color: inherit; +} + /* Comments in code. */ .comment { color: purple; @@ -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; @@ -67,11 +44,5 @@ div.challenges {} /* Key points in summary. */ div.keypoints {} -/* Main lesson. */ -div.lesson {} - /* Learning objectives. */ div.objectives {} - -/* Continuation paragraph. */ -p.continue {}