From 1f4eaa1695bde5891a786784a8845b54ad18e1f9 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Mon, 10 Aug 2020 11:17:12 -0700 Subject: Update use of Sass variable background variant colors The hardcoded Sass variable assignments to lighter variant background colors does not work well with the theme-color functions that are used. Use Bootstrap's built in theme-color-level function to programatically get a lighter variant color to use for component backgrounds. https://getbootstrap.com/docs/4.5/getting-started/theming/#functions Signed-off-by: Yoshie Muranaka Change-Id: I9d5a1a66c92d347ba1797be5e0810a24c34094f9 --- src/assets/styles/bmc/helpers/_functions.scss | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/assets/styles/bmc/helpers/_functions.scss (limited to 'src/assets/styles/bmc/helpers/_functions.scss') diff --git a/src/assets/styles/bmc/helpers/_functions.scss b/src/assets/styles/bmc/helpers/_functions.scss new file mode 100644 index 00000000..456caf36 --- /dev/null +++ b/src/assets/styles/bmc/helpers/_functions.scss @@ -0,0 +1,5 @@ +// This function is usually used to get a lighter +// theme variant color to use as a background color +@function theme-color-light($variant) { + @return theme-color-level($variant, -11.3); +} \ No newline at end of file -- cgit v1.2.3