[FIX] *: remove yiq threshold overrides

Many themes were overriding the yiq threshold, thus having an impact
on which of the dark or light text is used over a particuler background
by default. This is a tricky value to change and only made some sense
when the Odoo themes were defining their own color palettes. Now that
all palettes can be used in all themes, it makes no sense to change the
yiq threshold as it induces inconsistent behavior for a same palette
used in different themes. Besides, leaving the value by default is most
of the time what you want and when it is not entirely correct, the user
has full control over the color combination text colors anyway.

task-2655730

closes odoo/design-themes#507

X-original-commit: f244035809
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2021-09-27 11:44:58 +00:00
parent 7a9597405b
commit a6529ea67b
11 changed files with 0 additions and 47 deletions
@@ -2,9 +2,6 @@
// Bootstrap
//------------------------------------------------------------------------------//
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 200 !default;
// Spacing
//
// Control the default styling of most Bootstrap elements by modifying these
@@ -2,9 +2,6 @@
// Bootstrap
//------------------------------------------------------------------------------//
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 200 !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.
@@ -21,9 +21,6 @@
// Bootstrap
//------------------------------------------------------------------------------//
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 200 !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.
@@ -1,5 +0,0 @@
// Colors
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light".
// Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 140 !default;
-7
View File
@@ -1,10 +1,3 @@
// Colors
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light".
// Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 150 !default;
// Components
//
// Define common padding and border radius sizes and more.
-5
View File
@@ -1,8 +1,3 @@
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light".
// Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 150 !default;
// Shadow
$box-shadow-sm: 0 0 .3125rem rgba(0,0,0,.25) !default;
-3
View File
@@ -63,9 +63,6 @@
// Bootstrap
//------------------------------------------------------------------------------//
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 200 !default;
// Typography
//
// Font, line-height, and color for body text, headings, and more.
-5
View File
@@ -1,8 +1,3 @@
// Colors
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 200 !default;
// Shadows
$box-shadow-sm: 0 0 .3125rem rgba(0,0,0,.25) !default;
@@ -1,10 +1,3 @@
//------------------------------------------------------------------------------
// Bootstrap Overridden
//------------------------------------------------------------------------------
$yiq-contrasted-threshold: 170 !default;
// Headings
$headings-line-height: 1.1 !default;
@@ -22,9 +22,6 @@
// Bootstrap
//------------------------------------------------------------------------------//
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 200 !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.
-3
View File
@@ -57,9 +57,6 @@
// Bootstrap
//------------------------------------------------------------------------------//
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 200 !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.