source/_static/css/dataframe.css (52 lines of code) (raw):
/* Pandas dataframe css */
/* Taken from: https://github.com/spatialaudio/nbsphinx/blob/fb3ba670fc1ba5f54d4c487573dbc1b4ecf7e9ff/src/nbsphinx.py#L587-L619 */
table.dataframe {
width: 100%;
border: none !important;
border-collapse: collapse;
border-spacing: 0;
font-size: 12px;
table-layout: fixed;
}
table.dataframe thead {
border-bottom: 1px solid;
vertical-align: bottom;
}
table.dataframe tr,
table.dataframe th,
table.dataframe td {
text-align: right;
vertical-align: middle;
padding: 0.5em 0.5em;
line-height: normal;
white-space: normal;
max-width: none;
border: none;
}
table.dataframe th {
font-weight: bold;
}
/* Colors */
html[data-theme="light"] table.dataframe {
border-color: transparent;
color: black;
}
html[data-theme="light"] table.dataframe thead {
border-bottom-color: black;
}
html[data-theme="light"] table.dataframe tbody tr:nth-child(odd) {
background: #f5f5f5;
}
html[data-theme="light"] table.dataframe tbody tr:hover {
background: rgba(128, 69, 229, 0.2);
}
html[data-theme="dark"] table.dataframe {
border-color: transparent;
color: white;
}
html[data-theme="dark"] table.dataframe thead {
border-bottom-color: white;
}
html[data-theme="dark"] table.dataframe tbody tr:nth-child(odd) {
background: #101010;
}
html[data-theme="dark"] table.dataframe tbody tr:hover {
background: rgba(10, 125, 145, 0.2);
}