From 71e5e376bc8d30812f6bfff25c5a059683ee3b65 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Thu, 16 Jan 2025 12:54:26 -0800 Subject: [PATCH] Remove units from zero valued size in CSS, fix a typo. PiperOrigin-RevId: 716345043 Change-Id: I22b28e8e1d6db8ae4e482541169f1ffc46d3db34 --- doc/css/theme_overrides.css | 12 ++++++------ doc/ext/header_reader.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/css/theme_overrides.css b/doc/css/theme_overrides.css index e51e4eb0..00b8042d 100644 --- a/doc/css/theme_overrides.css +++ b/doc/css/theme_overrides.css @@ -72,7 +72,7 @@ h4 { /* Paragraph margins don't apply to table cell contents. */ .rst-content table.docutils td>p { - margin-top: 0px; + margin-top: 0; } /* Set padding of in-line highlighted text. */ @@ -200,8 +200,8 @@ table.docutils:not(.mjcf-attributes) > tbody > tr.row-odd { /* MJCF attributes table. */ table.mjcf-attributes { border-style: none; - margin-left: 0px; - margin-right: 0px; + margin-left: 0; + margin-right: 0; width: 100%; box-shadow: none; } @@ -209,7 +209,7 @@ table.mjcf-attributes { table.mjcf-attributes tbody tr td, table.mjcf-attributes tbody tr:nth-child(2n-1) td { border-style: none; - padding: 0px 0px 0px 0px; + padding: 0 0 0 0; width: 25%; } @@ -217,13 +217,13 @@ table.mjcf-attributes tbody tr td p { margin: 0; } -div.table-wrapper.mjcf-attributes { +.table-wrapper.mjcf-attributes { margin: 0.5em; padding: 0; } table td > div.wy-table-responsive { - margin-bottom: 0px; + margin-bottom: 0; } /* Remove vertical spacing before/after code blocks. */ diff --git a/doc/ext/header_reader.py b/doc/ext/header_reader.py index 42a93a14..e81f98a8 100644 --- a/doc/ext/header_reader.py +++ b/doc/ext/header_reader.py @@ -98,7 +98,7 @@ def read(lines: List[str]) -> Dict[str, ApiDefinition]: if section is not None: if 'MJAPI FUNCTIONS' in section: # Stripped functions do not begin with MJAPI, and must be under the - # predefiend section 'MJAPI FUNCTIONS'. This is because the docs don't + # predefined section 'MJAPI FUNCTIONS'. This is because the docs don't # include this prefix, and so we need to read such functions from the # reference header. stripped_functions = True