doc: add CSS for non-compliant code examples

Coding guidelines have examples for compliant and non-compliant code,
but they look the same when rendered as HTML.  Add a CSS style for
non-compliant-code examples with a red-tinted background.

Usage is:
```
.. rst-class:: non-compliant-code

   .. code-block:: c

      a=b=c=0;
```
or, for example:

```
.. rst-class:: non-compliant-code

   Here's an example of non-compliant code::

      a=b=c=0;
```

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2018-12-26 10:59:59 -08:00 committed by David Kinder
parent e5c12a64d5
commit 5ebaaaf973

View File

@ -61,6 +61,10 @@ div.rst-other-versions dl {
color: #000000;
}
div.non-compliant-code div.highlight {
background: #f7d7d7;
}
/* Make the version number more visible */
.wy-side-nav-search>div.version {
color: rgba(255,255,255,1);