commit 477b2d6ea0e1cf066303161bbbccc3c9e7995b14
parent e87efe3ce81fafec18962bcb53342ba44bdb9556
Author: Matthew Flatt <mflatt@racket-lang.org>
Date: Fri, 11 Jan 2008 20:39:40 +0000
rearrange CSS file so that each font is in one place
svn: r8303
original commit: d5cfd34ff0e34225e56f5b003f9cfa80ab150924
Diffstat:
1 file changed, 65 insertions(+), 57 deletions(-)
diff --git a/collects/scribble/scribble.css b/collects/scribble/scribble.css
@@ -1,4 +1,30 @@
+/* ---------------------------------------- */
+
+/* CSS is backward. List all the classes for which we want a
+ a aprticular font, so that the font can be changed in one
+ place. */
+
+/* Monospace: */
+.maincolumn, .refpara, .tocset, .stt, .hspace,
+.schemeinput, .schemereader, .schemeparen, .schememeta,
+.schememod, .schemekeyword, .schemevariable, .schemesymbol,
+.schemeresult, .schemestdout, .schemecomment, .schemevalue {
+ font-family: monospace;
+}
+
+/* Serif: */
+.main, .refcontent, .tocview, .tocsub, i {
+ font-family: serif;
+}
+
+/* Sans-serif: */
+.version {
+ font-family: sans-serif;
+}
+
+/* ---------------------------------------- */
+
body {
color: black;
background-color: #ffffff;
@@ -10,17 +36,17 @@ table td {
}
.maincolumn {
- font-family: monospace;
width: 43em;
margin-right: -40em;
margin-left: 15em;
}
.main {
- font-family: serif;
text-align: left;
}
+/* ---------------------------------------- */
+
.navleft {
position: relative;
float: left;
@@ -29,6 +55,11 @@ table td {
position: relative;
float: right;
}
+.nonavigation {
+ color: #EEEEEE;
+}
+
+/* ---------------------------------------- */
.versionbox {
position: relative;
@@ -39,12 +70,12 @@ table td {
margin: 0em -13em 0em 0em;
}
.version {
- font-family: sans-serif;
font-size: small;
}
+/* ---------------------------------------- */
+
.refpara {
- font-family: monospace;
position: relative;
float: right;
left: 1em;
@@ -64,11 +95,25 @@ table td {
}
.refcontent {
- font-family: serif;
}
+/* ---------------------------------------- */
+
+.toclink {
+text-decoration: none;
+color: blue;
+font-size: 85%;
+}
+
+.toptoclink {
+text-decoration: none;
+color: blue;
+font-weight: bold;
+}
+
+/* ---------------------------------------- */
+
.tocset {
- font-family: monospace;
position: relative;
float: left;
width: 12.5em;
@@ -76,13 +121,11 @@ table td {
}
.tocview {
- font-family: serif;
text-align: left;
background-color: #F5F5DC;
}
.tocsub {
- font-family: serif;
margin-top: 1em;
text-align: left;
background-color: #DCF5F5;
@@ -136,27 +179,7 @@ table td {
margin: 0.2em 0.2em 0.2em 0.2em;
}
-.leftindent {
- margin-left: 1em;
- margin-right: 0em;
-}
-
-.insetpara {
- margin-left: 1em;
- margin-right: 1em;
-}
-
-.toclink {
-text-decoration: none;
-color: blue;
-font-size: 85%;
-}
-
-.toptoclink {
-text-decoration: none;
-color: blue;
-font-weight: bold;
-}
+/* ---------------------------------------- */
.inherited {
width: 100%;
@@ -176,6 +199,18 @@ font-weight: bold;
font-size: 85%;
}
+/* ---------------------------------------- */
+
+.leftindent {
+ margin-left: 1em;
+ margin-right: 0em;
+}
+
+.insetpara {
+ margin-left: 1em;
+ margin-right: 1em;
+}
+
.indexlink {
text-decoration: none;
}
@@ -185,7 +220,6 @@ font-weight: bold;
}
.stt {
- font-family: monospace;
}
.title {
@@ -232,7 +266,6 @@ ol ol ol ol {
}
i {
- font-family: serif;
}
.boxed {
@@ -263,19 +296,10 @@ i {
horiz-align: center;
}
-.verbatim em {
- font-family: serif;
-}
-
.ghost {
color: white;
}
-.scheme em {
- color: black;
- font-family: serif;
-}
-
.highlighted {
background-color: #ddddff;
}
@@ -290,7 +314,6 @@ i {
}
.hspace {
- font-family: monospace;
}
.inferencetop td {
@@ -304,7 +327,6 @@ i {
.schemeinput {
color: brown;
background-color: #eeeeee;
- font-family: monospace;
}
.schemeinputbg {
@@ -312,22 +334,18 @@ i {
}
.schemereader {
- font-family: monospace;
}
.schemeparen {
color: #843c24;
- font-family: monospace;
}
.schememeta {
color: #262680;
- font-family: monospace;
}
.schememod {
color: black;
- font-family: monospace;
}
.schemeopt {
@@ -337,7 +355,6 @@ i {
.schemekeyword {
color: black;
font-weight: bold;
- font-family: monospace;
}
.schemeerror {
@@ -348,12 +365,10 @@ i {
.schemevariable {
color: #262680;
font-style: italic;
- font-family: monospace;
}
.schemesymbol {
color: #262680;
- font-family: monospace;
}
.schemevaluelink {
@@ -394,22 +409,18 @@ i {
.schemeresult {
color: #0000af;
- font-family: monospace;
}
.schemestdout {
color: #960096;
- font-family: monospace;
}
.schemecomment {
color: #c2741f;
- font-family: monospace;
}
.schemevalue {
color: #228b22;
- font-family: monospace;
}
.bibliography td {
@@ -421,10 +432,7 @@ i {
margin-right: 0.3em;
}
-.nonavigation {
- color: #EEEEEE;
-}
-
+/* A hack, inserted to break some Scheme ids: */
.mywbr {
width: 0;
font-size: 1px;