mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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#506 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user