Fix doc module markdown table rows in light mode

- Replaced the gradient mixin with a simple color
  for odd rows. This fixes and markdown table rows
  in light mode and - since there are very gradients
  in general - it makes the overall look more uniform.

See https://github.com/Icinga/icingaweb2/issues/5320

(cherry picked from commit 6c8453062f48fa203fb2d9dc3b8b051ede2669f6)
This commit is contained in:
Markus Opolka 2025-03-05 15:27:05 +01:00 committed by Johannes Meyer
parent a821cdc40f
commit cb50e33409

View File

@ -1,17 +1,5 @@
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */ /*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
// Mixins
.gradient(@a: @gray-lighter; @b: @gray-lightest) {
background: @a;
background: -webkit-gradient(linear, left top, left bottom, from(@a), to(@b));
background: -webkit-linear-gradient(top, @a, @b);
background: -moz-linear-gradient(top, @a, @b);
background: -ms-linear-gradient(top, @a, @b);
background: -o-linear-gradient(top, @a, @b);
background: linear-gradient(to bottom, @a, @b);
}
// General styles // General styles
code { code {
@ -84,7 +72,7 @@ table {
} }
tbody > tr:nth-child(odd) { tbody > tr:nth-child(odd) {
.gradient() background: @gray-light;
} }
tbody > tr:nth-child(even) { tbody > tr:nth-child(even) {