Adjust global table styles for better spacing and head styling

This commit is contained in:
Yuri Sizov
2022-12-12 20:17:26 +03:00
parent d84c5ae6e0
commit 15719033bd
2 changed files with 28 additions and 9 deletions
+25 -6
View File
@@ -691,12 +691,20 @@ footer {
}
.wy-table-bordered-all td,
.rst-content table.docutils td,
.wy-table thead th,
.rst-content table.docutils td,
.rst-content table.docutils thead th,
.rst-content table.field-list thead th {
border-bottom: 2px solid var(--code-border-color);
border-left: 2px solid var(--code-border-color);
padding: 4px 16px;
}
html.writer-html5 .rst-content table.docutils th {
border-bottom: 4px solid var(--code-border-color);
border-left: 2px solid var(--code-border-color);
padding: 8px 16px;
vertical-align: middle;
}
.wy-table-odd td,
@@ -728,6 +736,22 @@ footer {
white-space: nowrap;
}
/* Artificially increasing specificity to make it override theme.css. */
html.writer-html5 .rst-content .wy-table-responsive > table td > p {
line-height: 1.425rem;
}
html.writer-html5 .rst-content .wy-table-responsive > table th > p {
line-height: 1.425rem;
font-size: .95rem;
font-weight: 600;
}
html.writer-html5 .rst-content .wy-table-responsive > table td > p tt.literal,
html.writer-html5 .rst-content .wy-table-responsive > table td > p code.literal {
font-size: .85rem;
padding: 2px 5px;
}
/* Code display tweaks */
code,
@@ -1153,11 +1177,6 @@ p + .classref-constant {
width: 100%;
}
/* Artificially increasing specificity to make it override theme.css. */
html.writer-html5 .rst-content .classref-reftable-group .wy-table-responsive > table td > p {
line-height: 1.3rem;
}
/* Buttons */
.btn-neutral {
+3 -3
View File
@@ -181,9 +181,9 @@ Command line reference
| ``--export-pack <preset> <path>`` | Like ``--export-release``, but only export the game pack for the given preset. The ``<path>`` extension determines whether it will be in PCK |
| | or ZIP format (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled). |
+------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| ``--convert-3to4 [<max_file_kb>] [<max_line_size>]`` | Converts project from Godot 3.x to Godot 4.x. |
+----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``--validate-conversion-3to4 [<max_file_kb>] [<max_line_size>]`` | Shows what elements will be renamed when converting project from Godot 3.x to Godot 4.x. |
| ``--convert-3to4 [<max_file_kb>] [<max_line_size>]`` | Convert project from Godot 3.x to Godot 4.x. |
+------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| ``--validate-conversion-3to4 [<max_file_kb>] [<max_line_size>]`` | Show what elements will be renamed when converting project from Godot 3.x to Godot 4.x. |
+------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| ``--doctool <path>`` | Dump the engine API reference to the given ``<path>`` in XML format, merging if existing files are found |
| | (:ref:`tools <doc_introduction_to_the_buildsystem_tools>` must be enabled). |