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
This commit is contained in:
Markus Opolka 2025-03-05 15:27:05 +01:00 committed by Johannes Meyer
parent db851bbe33
commit 6c8453062f

View File

@ -1,17 +1,5 @@
/*! 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
code {
@ -84,7 +72,7 @@ table {
}
tbody > tr:nth-child(odd) {
.gradient()
background: @gray-light;
}
tbody > tr:nth-child(even) {