From 0e99465adb7c6d7b49397d1eaf0adc371537347b Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 5 Nov 2024 10:22:12 +0100 Subject: [PATCH] Fix SASS warnings due to deprecated functions (#6839) --- lms/static/styles/moodle_pages/moodle_pages.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lms/static/styles/moodle_pages/moodle_pages.scss b/lms/static/styles/moodle_pages/moodle_pages.scss index e2436e5190..13c3319bda 100644 --- a/lms/static/styles/moodle_pages/moodle_pages.scss +++ b/lms/static/styles/moodle_pages/moodle_pages.scss @@ -13,6 +13,8 @@ // * https://github.com/moodle/moodle/blob/main/theme/boost/scss/preset/default.scss // * https://github.com/moodle/moodle/blob/main/theme/boost/scss/bootstrap/_variables.scss +@use 'sass:color'; + // These are some of the sass variables defined in the files mentioned above: $font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, @@ -23,7 +25,7 @@ $font-size-base: 0.9375rem; $gray-600: #6a737b; $gray-900: #1d2125; $link-color: #ec7f13; -$link-hover-color: darken($link-color, 15%); +$link-hover-color: color.adjust($link-color, $lightness: -15%, $space: hsl); body { font-family: $font-family-sans-serif;