[FIX] website: allow different compatibility grays

Commit https://github.com/odoo/odoo/commit/4f9a0cb4fcdfa9fee66c042593f4d411dd0e192f
introduced a way for users to enable a compatibility template to provide
support for some old BS3 classes.

Some of these classes are the bg-gray-* classes. The problem is that
enabling the compatibility file forces them to the new BS4 gray values
while the user may have done a custo to generate them automatically
from other gray values. This commit allows to keep the compatibility
file enabled, without overriding compatibility grays the user may have
provided on its own.

closes odoo/odoo#34134

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2019-06-14 09:51:05 +00:00
parent 989590e9b1
commit 62b89ea467
@@ -9,10 +9,12 @@ $-compat-gray-map: (
'gray': '700',
'gray-light': '600',
'gray-lighter': '200',
);
) !default;
@each $old, $new in $-compat-gray-map {
@include bg-variant(".bg-#{$old}", gray($new));
@include text-emphasis-variant(".text-#{$old}", gray($new));
@if not map-has-key($grays, $old) {
@include bg-variant(".bg-#{$old}", gray($new));
@include text-emphasis-variant(".text-#{$old}", gray($new));
}
}
// Restore media ?