From 3d5493593bd03908fa14ca38aa44eae05b585775 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Thu, 5 Dec 2024 12:41:41 -0800 Subject: [PATCH] docs: deprecated styling (#28546) from ![image](https://github.com/user-attachments/assets/52565861-618b-407c-8bb4-f16dce3b5718) to ![image](https://github.com/user-attachments/assets/fafeef00-6101-42cd-a8c6-ca15808d1e7c) --- docs/api_reference/_static/css/custom.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/api_reference/_static/css/custom.css b/docs/api_reference/_static/css/custom.css index 87195de8f72ef..6775608a72daa 100644 --- a/docs/api_reference/_static/css/custom.css +++ b/docs/api_reference/_static/css/custom.css @@ -80,6 +80,8 @@ html { --pst-font-family-base: 'Inter'; --pst-font-family-heading: 'Inter Tight', sans-serif; + + --pst-icon-versionmodified-deprecated: var(--pst-icon-exclamation-triangle); } /******************************************************************************* @@ -408,4 +410,13 @@ dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(. p { font-size: 0.9rem; margin-bottom: 0.5rem; -} \ No newline at end of file +} + +div.deprecated { + background-color: var(--pst-color-warning-bg); + border-color: var(--pst-color-warning); +} + +span.versionmodified.deprecated:before { + color: var(--pst-color-warning); +}