Skip to content

Commit

Permalink
maint: fix normal table rendering styles (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 authored Aug 16, 2023
1 parent 598c54b commit e6d0846
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions doc/source/examples/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ The table directive with ansys sphinx theme allows for rendering of tables.
There are different types of tables, such as the data table, longtable-centered,
and table-centered, each serving different purposes.

Normal table
------------


.. table:: Truth table for "not"
:widths: auto
:align: center

+--------------------+------------------------+----------------------------------+
| **A** | **B** | **C** |
+====================+========================+==================================+
| || True || False |
| False || False || True |
+--------------------+------------------------+----------------------------------+
| || True || False |
| False || False || True |
+--------------------+------------------------+----------------------------------+
| || || |
| || True || |
| | || |
| False +------------------------+| False +
| || True || |
| || False || True |
+--------------------+------------------------+----------------------------------+



Data table
----------
This is an example of a data table that can be rendered using the table directive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,14 @@ Table
########
*/

table {
.table {
width: 100%;
max-width: 100%;
border-spacing: 0;
border-collapse: collapse;
overflow: hidden;
vertical-align: middle;

color: var(--pst-color-text-base);
/* Disabling scroll bars */
overflow-y: scroll;
scrollbar-width: none; /* Firefox */
Expand Down

0 comments on commit e6d0846

Please sign in to comment.