Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSS entries for audbcards preview table #84

Merged
merged 5 commits into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion sphinx_audeering_theme/static/css/audeering.css
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ dl.property dt em {
}
.wy-table-responsive thead th {
/* Fix border lines in table headers */
border: solid 1px var(--grey);
border-bottom: solid 2px var(--grey);
}
.wy-table-responsive tbody tr th.stub {
Expand Down Expand Up @@ -343,6 +342,36 @@ dl.property dt em {
margin-bottom: 0 !important;
}

/***** TABLE PREVIEW in AUDBCARDS ****************************************/
.rst-content table.docutils:not(.field-list) tr.clickable table.preview tr:nth-child(2n-1) td {
/* Don't style odd and even rows differently in preview table */
background-color: inherit;
}
.rst-content table.docutils:not(.field-list) tr.clickable table.preview td,
.rst-content table.docutils:not(.field-list) tr.clickable table.preview th {
/* Reduce padding to vertically center cell content in preview table,
* and reduce height of table cells */
padding-bottom: 4px;
}
table.preview th p {
/* Adjust font size of header in preview table to table content */
font-size: 13px;
}
.rst-content table.docutils:not(.field-list) tr.clickable td.expanded-row-content {
/* Remove double border on left side of cell holding preview table */
border-left: none;
}
.rst-content table.docutils:not(.field-list) tr.clickable td table.preview td {
/* Remove complete border in preview table cells */
border-left: none;
border-bottom: none;
}
table.clickable tr.clicked td:not(.expanded-row-content):not(:first-child) {
/* Remove left border on clicked row when preview is shown,
* without changing position of the text */
border-left: 1px solid transparent;
}

/***** FIGURE AND TABLE CAPTIONS *****************************************/
.wy-table caption, .rst-content table.docutils caption,
.rst-content table.field-list caption, .rst-content div.figure p.caption {
Expand Down