From 6689165a46dc16e8b5113c29c65f7209471f9289 Mon Sep 17 00:00:00 2001 From: Kevin Putnam Date: Mon, 16 Dec 2019 12:30:39 -0800 Subject: [PATCH] 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 --- source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css | 7 +++++++ source/get-started/cloud-install/digitalocean.rst | 2 ++ 2 files changed, 9 insertions(+) diff --git a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css index 8a68bcb7..4df47ff6 100644 --- a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css +++ b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css @@ -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; +} \ No newline at end of file diff --git a/source/get-started/cloud-install/digitalocean.rst b/source/get-started/cloud-install/digitalocean.rst index 142b01bc..94d14c01 100644 --- a/source/get-started/cloud-install/digitalocean.rst +++ b/source/get-started/cloud-install/digitalocean.rst @@ -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