Bläddra i källkod

Merge pull request #6486 from YuriSizov/frontend-table-spacing

Adjust global table styles for better spacing and head styling
Max Hilbrunner 2 år sedan
förälder
incheckning
5f33a2eb27
2 ändrade filer med 28 tillägg och 9 borttagningar
  1. 25 6
      _static/css/custom.css
  2. 3 3
      tutorials/editor/command_line_tutorial.rst

+ 25 - 6
_static/css/custom.css

@@ -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
tutorials/editor/command_line_tutorial.rst

@@ -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).                                                               |