From 335ce2a206bc577e94e04249567614583420e66a Mon Sep 17 00:00:00 2001 From: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com> Date: Mon, 23 Jan 2023 09:24:26 +0100 Subject: [PATCH] Add the depreciation styles (#182) --- doc/source/getting_started/index.rst | 2 +- .../static/css/ansys_sphinx_theme.css | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst index a1d1ddfc..6f3d9721 100644 --- a/doc/source/getting_started/index.rst +++ b/doc/source/getting_started/index.rst @@ -28,7 +28,7 @@ Consider using the ``conf.py`` for this repository: .. literalinclude:: ../conf.py :language: python - + .. toctree:: :hidden: :maxdepth: 2 diff --git a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css index a4cdf365..65dc30a4 100644 --- a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css +++ b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css @@ -855,4 +855,14 @@ max-width: 220px; margin-left: auto; margin-right: auto; font-family: var(--pst-font-family-base); +} + +div.deprecated { + border-color: var(--pst-color-danger); + background-color: #dc354514; +} + +div.versionadded { + border-color: var(--pst-color-success); + background: #88ca881f; } \ No newline at end of file