Use green and amber to color code and output

This commit is contained in:
Susam Pal
2022-11-06 10:02:40 +00:00
parent cec3a69163
commit d506432394
3 changed files with 25 additions and 13 deletions

View File

@@ -1,3 +1,12 @@
0.9.0 (UNRELEASED)
------------------
### Changed
- Change code and output colors from blue and green, respectively, to
green and amber, respectively.
0.8.0 (2021-09-11)
------------------

View File

@@ -40,11 +40,11 @@ int main()
hello, world</samp>
</pre>
<p>
The command displayed in green above denotes keyboard input entered by
a user. SPCSS shows any <code>&lt;kbd&gt;</code> element nested within
a <code>&lt;pre&gt;</code> in green in order to highlight keyboard
input. For example, the above code example was created with the
following HTML code:
SPCSS shows any text in <code>&lt;samp&gt;</code> element in amber
and any text in <code>&lt;kbd&gt;</code> element in green. This can
be used to differentiate between the output of a computer program
and the input a user types. For example, the above code example was
created with the following HTML code:
</p>
<pre>
<code>&lt;pre&gt;

19
sp.css
View File

@@ -45,11 +45,13 @@ figcaption {
font-size: small;
}
pre, code, samp, kbd {
color: #009;
font-family: monospace, monospace;
}
pre kbd {
color: #060;
pre, code, kbd {
color: #050;
}
samp {
color: #730;
}
pre, blockquote {
background: #eee;
@@ -91,13 +93,14 @@ th, td {
color: #9cf;
}
a:active {
color: #faa;
color: #f99;
}
pre, code, samp, kbd {
color: #6cf;
}
pre kbd {
pre, code, kbd {
color: #9c6;
font-family: monospace, monospace;
}
samp {
color: #db0;
}
pre, blockquote {
background: #000;