From 05917ae56cf4d33fc59d3e83e607309f33d57bdf Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:23:51 +0300 Subject: [PATCH] feat: reduce admonition variant colours --- styles/_admonitions.scss | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/styles/_admonitions.scss b/styles/_admonitions.scss index 1037a41..c622e9c 100644 --- a/styles/_admonitions.scss +++ b/styles/_admonitions.scss @@ -6,32 +6,23 @@ .versionchanged, div.deprecated { @extend .iati-callout; -} -.admonition-title, -.topic-title { - @extend .iati-callout__title; -} + &.attention { + @extend .iati-callout--purple; + } -.attention, -.caution, -.warning, -.versionchanged { - @extend .iati-callout--orange; -} + &.caution { + @extend .iati-callout--orange; + } -.danger, -.error, -div.deprecated { - @extend .iati-callout--red; -} - -.versionadded { - @extend .iati-callout--green; -} + &.note { + @extend .iati-callout--green; + } -.tip { - @extend .iati-callout--purple; + .admonition-title, + .topic-title { + @extend .iati-callout__title; + } } .versionmodified {