qsm-odoo
7c533fce5c
[FIX] web: properly display table texts over any background
...
Bootstrap tables can basically be customized with the `$table-bg` and
`$table-color` variables. The problem is that, by default, BS4 defines
them so that the background-color is null (so transparent: displaying
the background-color of its ancestors) but the color is forced to the
body color (by default: white). This is a problem as soon as the
ancestors background colors are a color close to the body text color:
the text becomes invisible. For instance, in website:
- Set a body background color to black, the body text will automatically
become white.
- Add a table in a snippet: still ok, the text in the table is white
over the black body (the table being transparent).
- Then set the snippet background to white -> the table text will still
be white... but now over a white background.
This should be reviewed in master: it should be ok to set the variable
$table-color to `null` thus letting the table be transparent and have
the same text color as its parent. But in stable, changing a color
variable to `null` could break customizations relying on the fact this
is a set color. It would also not make sense if the user set up a
`$table-bg` value going well with table text forced to the body color.
Instead, here, in the very specific case we have a transparent table bg
and table color equal to the body color, we temporarily unset the table
color variable for the duration of the bootstrap table rules.
Note: we cannot create a rule in an "Odoo file" to fix this as unsetting
the color for the `.table` rule would also unset the color in the case
of a `.table.bg-XXX` where we still want `.bg-XXX` to force the color.
task-2728923
opw-3048306
opw-3180568
closes odoo/odoo#114631
X-original-commit: 02c2cfdff7c29252c7036e587b12d82442906e59
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com >
2023-03-08 15:14:41 +01:00
..
2023-03-08 11:37:04 +01:00
2023-03-07 02:56:57 +01:00
2023-01-27 17:29:16 +01:00
2023-03-07 12:24:53 +01:00
2023-02-01 10:25:01 +01:00
2023-03-05 20:04:00 +01:00
2023-03-08 11:36:53 +01:00
2023-01-26 19:56:07 +01:00
2022-12-13 11:47:49 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 09:02:50 +01:00
2023-03-05 15:12:57 +01:00
2023-01-17 01:10:09 +01:00
2023-03-08 11:37:07 +01:00
2023-03-07 11:11:51 +01:00
2023-02-28 18:08:12 +01:00
2023-01-27 23:17:35 +01:00
2023-03-07 11:11:51 +01:00
2023-01-27 23:17:35 +01:00
2023-02-16 14:13:32 +01:00
2023-01-24 10:20:30 +01:00
2022-12-16 16:17:41 +01:00
2023-01-25 16:36:53 +01:00
2023-03-03 17:04:49 +01:00
2023-03-03 17:05:13 +01:00
2023-03-07 09:03:06 +01:00
2023-02-01 10:25:01 +01:00
2023-02-15 10:14:42 +01:00
2023-01-27 21:10:16 +01:00
2023-03-07 08:02:33 +01:00
2023-02-09 19:07:08 +01:00
2023-02-21 21:08:00 +01:00
2023-03-07 02:00:09 +01:00
2023-01-24 10:20:30 +01:00
2023-01-27 23:17:35 +01:00
2023-03-07 01:59:05 +01:00
2023-02-01 10:25:01 +01:00
2023-02-24 13:16:56 +01:00
2023-01-09 16:39:15 +01:00
2023-03-02 18:18:56 +01:00
2023-03-06 18:52:41 +01:00
2023-02-16 14:13:32 +01:00
2023-02-03 06:06:23 +01:00
2023-03-07 09:02:50 +01:00
2023-01-24 10:20:30 +01:00
2023-03-02 19:24:45 +01:00
2023-03-02 19:24:45 +01:00
2023-03-05 15:12:54 +01:00
2023-02-14 13:13:53 +01:00
2023-03-06 17:47:09 +01:00
2023-03-07 09:03:04 +01:00
2023-03-07 02:00:09 +01:00
2023-03-01 23:28:07 +01:00
2023-01-11 22:43:14 +01:00
2023-03-08 08:24:21 +01:00
2023-03-02 18:18:56 +01:00
2023-03-07 18:03:19 +01:00
2023-03-07 18:02:47 +01:00
2023-03-07 18:02:31 +01:00
2023-03-07 19:04:15 +01:00
2023-02-15 10:14:53 +01:00
2023-03-01 23:28:18 +01:00
2023-01-24 10:20:30 +01:00
2023-03-02 18:18:56 +01:00
2023-02-01 10:25:01 +01:00
2023-03-02 12:32:11 +01:00
2022-12-16 16:17:41 +01:00
2023-01-27 19:56:08 +01:00
2023-03-02 17:12:59 +01:00
2023-02-13 14:05:09 +01:00
2023-01-24 10:20:30 +01:00
2023-03-07 20:31:53 +01:00
2023-02-03 10:25:00 +01:00
2023-02-23 16:08:20 +01:00
2023-03-02 17:13:03 +01:00
2023-03-05 15:12:55 +01:00
2023-02-16 09:01:07 +01:00
2023-02-17 12:07:48 +01:00
2023-01-31 12:55:49 +01:00
2023-01-17 18:12:48 +01:00
2023-03-06 13:13:16 +01:00
2022-12-14 14:19:58 +01:00
2023-03-07 09:02:52 +01:00
2023-03-05 20:04:00 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-08 11:37:02 +01:00
2023-01-23 16:01:27 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-01 18:43:01 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-02 16:00:53 +01:00
2023-01-18 13:25:32 +01:00
2023-01-24 16:18:23 +01:00
2023-01-27 14:03:35 +01:00
2023-01-18 13:25:32 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-06 23:34:46 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-02-16 17:57:09 +01:00
2023-03-02 19:24:45 +01:00
2023-01-24 16:18:18 +01:00
2023-02-01 14:37:50 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-08 10:31:07 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-27 11:47:11 +01:00
2023-02-27 11:47:11 +01:00
2023-01-23 16:01:27 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-02-06 09:20:56 +01:00
2023-03-07 10:06:13 +01:00
2023-03-03 19:10:10 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-01 13:30:46 +01:00
2023-03-07 10:06:13 +01:00
2023-02-01 10:25:01 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 18:02:19 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-01 14:37:50 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-01-20 06:21:02 +01:00
2023-03-07 09:02:50 +01:00
2023-02-08 13:27:58 +01:00
2023-03-08 12:42:06 +01:00
2023-01-27 19:56:03 +01:00
2023-01-17 20:58:34 +01:00
2023-03-05 15:12:54 +01:00
2023-03-06 17:47:29 +01:00
2023-01-26 22:09:53 +01:00
2023-01-26 22:09:53 +01:00
2022-12-22 15:55:07 +01:00
2023-02-21 19:08:09 +01:00
2023-02-21 21:07:34 +01:00
2023-02-17 11:01:42 +01:00
2023-02-04 10:45:02 +01:00
2023-03-08 13:49:16 +01:00
2023-02-27 17:07:54 +01:00
2023-03-01 17:01:17 +01:00
2023-03-07 01:59:16 +01:00
2023-03-03 17:05:07 +01:00
2023-03-03 17:05:07 +01:00
2023-03-02 16:01:28 +01:00
2023-02-08 12:25:52 +01:00
2023-03-08 10:31:12 +01:00
2023-03-08 11:36:53 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-24 18:16:00 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-17 14:09:43 +01:00
2023-03-07 16:56:40 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-24 18:16:00 +01:00
2023-03-05 15:12:54 +01:00
2023-03-08 11:36:56 +01:00
2023-03-05 15:12:56 +01:00
2023-03-05 15:12:57 +01:00
2023-02-27 09:37:12 +01:00
2023-02-27 09:37:12 +01:00
2023-01-25 08:18:01 +01:00
2023-01-23 16:01:27 +01:00
2023-03-08 09:26:47 +01:00
2023-02-07 16:38:34 +01:00
2023-03-07 18:02:45 +01:00
2023-02-27 09:37:12 +01:00
2023-03-08 09:26:47 +01:00
2023-01-25 16:37:10 +01:00
2023-01-23 16:01:27 +01:00
2023-02-27 09:37:12 +01:00
2023-01-23 16:01:27 +01:00
2023-01-19 18:49:53 +01:00
2023-02-07 16:38:34 +01:00
2023-02-27 09:37:12 +01:00
2023-02-07 16:38:34 +01:00
2023-03-05 15:12:57 +01:00
2023-01-17 20:58:34 +01:00
2023-03-07 10:06:00 +01:00
2023-02-01 10:25:01 +01:00
2023-01-04 11:35:49 +01:00
2023-01-24 10:20:30 +01:00
2023-03-08 13:48:57 +01:00
2023-03-05 15:12:54 +01:00
2023-03-05 15:12:54 +01:00
2023-03-05 15:12:54 +01:00
2023-02-03 14:23:02 +01:00
2023-03-08 13:49:08 +01:00
2023-03-03 18:10:57 +01:00
2023-02-13 15:15:34 +01:00
2023-03-07 09:02:50 +01:00
2023-03-06 15:18:48 +01:00
2023-01-13 16:27:26 +01:00
2023-01-13 16:27:26 +01:00
2023-03-07 12:24:53 +01:00
2023-03-01 17:01:03 +01:00
2023-03-08 13:49:11 +01:00
2023-02-22 20:25:16 +01:00
2023-03-08 11:36:53 +01:00
2023-02-01 10:25:01 +01:00
2023-03-05 15:12:54 +01:00
2023-02-24 10:06:06 +01:00
2023-02-17 16:45:15 +01:00
2023-03-07 02:00:20 +01:00
2023-02-23 18:29:02 +01:00
2023-03-07 16:56:43 +01:00
2023-01-18 21:08:52 +01:00
2023-03-07 01:59:57 +01:00
2023-02-22 20:26:07 +01:00
2023-01-13 16:27:26 +01:00
2023-02-03 11:45:19 +01:00
2023-01-16 15:43:00 +01:00
2023-03-07 16:56:43 +01:00
2023-02-13 15:15:08 +01:00
2023-03-07 20:31:53 +01:00
2023-02-03 05:09:05 +01:00
2023-03-01 17:01:03 +01:00
2023-03-07 09:02:50 +01:00
2023-03-07 09:02:55 +01:00
2023-03-03 19:10:10 +01:00
2023-03-07 02:00:06 +01:00
2023-03-07 02:00:06 +01:00
2023-03-07 02:00:06 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-13 16:27:17 +01:00
2023-01-24 10:20:30 +01:00
2023-01-26 19:56:04 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-02-03 07:07:08 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-26 19:56:04 +01:00
2023-03-08 13:49:08 +01:00
2023-03-08 13:49:14 +01:00
2023-02-22 15:39:02 +01:00
2023-03-07 16:56:21 +01:00
2023-02-21 21:07:11 +01:00
2023-02-01 10:25:01 +01:00
2023-03-01 17:01:03 +01:00
2023-01-13 16:27:38 +01:00
2023-02-21 17:02:06 +01:00
2023-03-07 18:03:03 +01:00
2023-03-07 18:03:01 +01:00
2023-02-13 22:46:41 +01:00
2023-03-06 17:47:29 +01:00
2023-02-03 10:25:00 +01:00
2023-03-02 19:24:45 +01:00
2023-03-07 11:11:42 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-24 11:11:40 +01:00
2023-03-01 17:01:03 +01:00
2023-03-08 15:14:41 +01:00
2023-03-08 13:48:51 +01:00
2023-03-07 09:02:50 +01:00
2023-02-28 20:38:50 +01:00
2023-02-21 00:47:34 +01:00
2023-03-07 19:04:21 +01:00
2023-03-06 13:13:14 +01:00
2023-01-27 23:17:35 +01:00
2023-01-17 20:58:34 +01:00
2023-03-01 23:28:27 +01:00
2023-02-10 15:44:24 +01:00
2023-02-17 09:50:50 +01:00
2023-02-17 09:50:50 +01:00
2023-03-02 19:24:45 +01:00
2023-02-17 09:50:50 +01:00
2023-02-03 10:25:00 +01:00
2023-01-24 10:20:30 +01:00
2023-01-16 19:45:57 +01:00
2023-02-08 08:30:52 +01:00
2023-03-02 19:24:45 +01:00
2023-01-17 20:58:41 +01:00
2023-03-03 15:56:48 +01:00
2023-01-24 21:10:52 +01:00
2023-03-07 02:56:41 +01:00
2023-02-08 15:39:08 +01:00
2023-02-10 14:37:30 +01:00
2023-02-28 20:38:49 +01:00
2023-02-07 16:38:23 +01:00
2023-03-08 11:36:53 +01:00
2023-02-24 18:16:11 +01:00
2023-03-03 15:56:49 +01:00
2023-03-08 07:04:14 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-03-02 19:24:45 +01:00
2023-01-16 19:45:57 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-15 10:14:47 +01:00
2023-01-27 23:17:35 +01:00
2023-02-13 14:05:09 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-03-06 17:47:09 +01:00
2023-02-03 11:45:30 +01:00
2023-03-07 09:02:58 +01:00
2023-01-24 10:20:30 +01:00