From 633798275231dcac2bb35dcf8c138f144ee8f9df Mon Sep 17 00:00:00 2001 From: Guy Willis Date: Mon, 29 Jun 2020 14:45:03 +0100 Subject: [PATCH 1/2] Set up example language specific font override --- less/_defaults/_font-mixins.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/less/_defaults/_font-mixins.less b/less/_defaults/_font-mixins.less index 83128532..7f5c8565 100644 --- a/less/_defaults/_font-mixins.less +++ b/less/_defaults/_font-mixins.less @@ -19,6 +19,14 @@ body { font-weight: @body-weight; line-height: @body-line-height; color: @font-color; + + // Set up a language specific font override. + // This will need to be uncommented out, duplicated and updated if there are + // more languages that require overriding. All overrides must be duplicated + // and added to each of the font mixins below. + // html[lang="de"] & { + // font-family: Impact; + // } } .instruction-text() { From ce0f3e3ebae393baaf2209b992d7b07e91b24800 Mon Sep 17 00:00:00 2001 From: Guy Willis Date: Mon, 29 Jun 2020 14:47:06 +0100 Subject: [PATCH 2/2] Sets up example language picker override fixes For language picker drawer item and notify confirmation pop up. Sets button / pop up to appear in target language font rather than current language font. --- .../languagePicker.less | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/less/plugins/adapt-contrib-languagePicker/languagePicker.less b/less/plugins/adapt-contrib-languagePicker/languagePicker.less index fe647a48..2160bf39 100644 --- a/less/plugins/adapt-contrib-languagePicker/languagePicker.less +++ b/less/plugins/adapt-contrib-languagePicker/languagePicker.less @@ -30,3 +30,48 @@ } } // -------------------------------------------------- + +// Language picker notify confirmation override +// Resolves https://github.com/adaptlearning/adapt_framework/issues/2818 +// Uncomment, amend and extend mixin to cover languages / fonts required. +// -------------------------------------------------- +// .notify-lp-mixin(en, @body-family, @title-family, @btn-family); +// .notify-lp-mixin(de, Impact, Impact, Impact); +// .notify-lp-mixin(ar, Arial, Arial, Arial); + +// .notify-lp-mixin(@language, @body, @title, @btn) { + +// .notify.is-lang-@{language} .notify { +// &__popup { +// font-family: @body; +// } + +// &__title { +// font-family: @title; +// } + +// &__btn { +// font-family: @btn; +// } +// } + +// } + +// Language picker drawer title override +// Resolves https://github.com/adaptlearning/adapt_framework/issues/2818 +// Uncomment, amend and extend mixin to cover languages / fonts required. +// -------------------------------------------------- +// .drawer-lp-mixin(en, @drawer-item-title-family); +// .drawer-lp-mixin(de, Impact); +// .drawer-lp-mixin(ar, Arial); + +// .drawer-lp-mixin(@language, @title) { + +// .languagepicker-drawer { +// &__item.is-@{language} &__title { +// // &__item-btn[data-language='@{language}'] &__title { +// font-family: @title; +// } +// } + +// }