Added ability to put drop shadows under images in figures using rst-class.

.. code-block:: rst

   .. rst-class:: dropshadow

   .. figure:: path/to/image.png
      :scale: 100%
      :alt: Alt text for figure.

      Caption for figure.

Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>
This commit is contained in:
Kevin Putnam
2019-12-16 12:30:39 -08:00
parent b753e49df3
commit 6689165a46
2 changed files with 9 additions and 0 deletions
@@ -520,3 +520,10 @@ div.linenodiv:before { /*add extra new line to make sure code and line numbers a
}
/*End support for multi-column sections*/
/*Add drop shadow to figures*/
div.figure.dropshadow img {
box-shadow: 10px 10px 10px LightGray;
}
@@ -147,6 +147,8 @@ Upload image
See Figure 1.
.. rst-class:: dropshadow
.. figure:: ../../_figures/digitalocean/01-digitalocean.png
:scale: 100 %
:alt: DigitalOcean - Upload custom images