Skip to content

Commit aabe57d

Browse files
authored
Various table fixes (#1833)
This PR makes a few changes to the _tables.scss file: - Matches our table alignment classes with an [update to MyST from 2021](executablebooks/MyST-Parser#450) (version [0.16.0](https://github.com/executablebooks/MyST-Parser/releases/tag/v0.16.0)) - Removes the redundant and useless `display: table` and `overflow: auto` rules - Updates a comment Fixes #1804.
1 parent 7551fa1 commit aabe57d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/pydata_sphinx_theme/assets/styles/content/_tables.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
table {
77
@include table-colors;
88

9-
display: table;
10-
overflow: auto;
11-
129
// default to table-center
1310
margin-left: auto;
1411
margin-right: auto;
@@ -33,15 +30,15 @@ table caption {
3330
// MyST Markdown tables use these classes to control alignment
3431
th,
3532
td {
36-
&.text-align\:left {
33+
&.text-left {
3734
text-align: left;
3835
}
3936

40-
&.text-align\:right {
37+
&.text-right {
4138
text-align: right;
4239
}
4340

44-
&.text-align\:center {
41+
&.text-center {
4542
text-align: center;
4643
}
4744
}
@@ -57,7 +54,7 @@ td {
5754
}
5855

5956
.pst-scrollable-table-container {
60-
// Put a scrollbar just below tables that are too wide to fit within the main
61-
// column
57+
// Put a horizontal scrollbar just below tables that are too wide to fit
58+
// within the main column
6259
overflow-x: auto;
6360
}

0 commit comments

Comments
 (0)