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) 0.8.0 (2021-09-11)
------------------ ------------------

View File

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

19
sp.css
View File

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