Skip to content

Commit

Permalink
Merge pull request godotengine#6486 from YuriSizov/frontend-table-spa…
Browse files Browse the repository at this point in the history
…cing

Adjust global table styles for better spacing and head styling
  • Loading branch information
mhilbrunner authored Dec 12, 2022
2 parents 519e2ae + 1571903 commit 5f33a2e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
31 changes: 25 additions & 6 deletions _static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions tutorials/editor/command_line_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:`target=editor <doc_introduction_to_the_buildsystem_target>` must be used). |
+------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| ``--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:`target=editor <doc_introduction_to_the_buildsystem_target>` must be used). |
Expand Down

0 comments on commit 5f33a2e

Please sign in to comment.