Skip to content

Commit b5dde7f

Browse files
Color active releases dark blue (#6282) (#6283)
* Color active releases dark blue * Color links B0B0B0 * Blue * Only apply to distros table --------- (cherry picked from commit 567f127) Signed-off-by: Shane Loretz <sloretz@intrinsic.ai> Co-authored-by: Shane Loretz <shane.loretz@gmail.com>
1 parent 70546f1 commit b5dde7f

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

source/Releases.rst

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ List of Distributions
1818
---------------------
1919

2020
Below is a list of current and historic ROS 2 distributions.
21-
Rows in the table marked in green are the currently supported distributions.
21+
Rows in the table marked in blue are the currently supported distributions.
2222

2323
.. toctree::
2424
:hidden:
@@ -34,22 +34,33 @@ Rows in the table marked in green are the currently supported distributions.
3434
.. raw:: html
3535

3636
<!--
37-
This CSS overrides the styles of certain rows to mark them green, indicating they are supported releases.
37+
This CSS overrides the styles of certain rows to mark them blue, indicating they are supported releases.
3838
For the odd number rows, a line like the following must be used:
3939
40-
.rst-content table.docutils:not(.field-list) tr:nth-child(1) td {background-color: #33cc66;}
40+
.rst-content table.distros:not(.field-list) tr:nth-child(1) td {...}
4141
4242
For the even number rows, a line like the following must be used:
4343
44-
.rst-content tr:nth-child(2) {background-color: #33cc66;}
44+
.rst-content tr:nth-child(2) {...}
4545
4646
No other combination I've found has worked. Yes, this is extremely fragile. No, I don't understand
4747
why it is like this.
4848
-->
4949
<style>
50-
.rst-content table.docutils:not(.field-list) tr:nth-child(1) td {background-color: #33cc66;}
51-
.rst-content tr:nth-child(2) {background-color: #33cc66;}
52-
.rst-content tr:nth-child(4) {background-color: #33cc66;}
50+
/* Targeting the cells and rows for the background and plain text */
51+
.rst-content table.distros:not(.field-list) tr:nth-child(1) td,
52+
.rst-content table.distros tr:nth-child(2),
53+
.rst-content table.distros tr:nth-child(4) {
54+
background-color: #22314E;
55+
color: white;
56+
}
57+
58+
/* Targeting the links inside those specific rows to force them to be not-blue */
59+
.rst-content table.distros:not(.field-list) tr:nth-child(1) td a,
60+
.rst-content table.distros tr:nth-child(2) a,
61+
.rst-content table.distros tr:nth-child(4) a {
62+
color: #B0B0B0 !important;
63+
}
5364
</style>
5465

5566
.. |rolling| image:: Releases/rolling-small.png

0 commit comments

Comments
 (0)