Skip to content

Commit

Permalink
Incorporate suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Sep 20, 2024
1 parent 00bc45d commit 28e3a27
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/haddock/libs/libplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,39 +949,36 @@ def _css_styles_for_report():
font-family: Arial, sans-serif;
font-size: 32px;
font-weight: bold;
}
}
body {
margin-left: 1em;
}
table {
border-collapse: collapse;
}
th {
background-color: #f2f2f2;
padding: 8px;
border: 1px solid #ddd;
text-align: left;
}
th[scope="row"] {
position: sticky;
min-width: 16rem;
left: 0;
z-index: 1
}
td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
tr:nth-child(even) {
background-color: #f2f2f2
}
"""
css_link = "https://esm.sh/@i-vresse/haddock3-ui@~0.2.2/dist/index.css"
table_css = f' <link href={css_link} rel="stylesheet" />'
table_css = f' <link href="{css_link}" rel="stylesheet" />'
return f"{table_css}<style>{custom_css}</style>"


Expand Down

0 comments on commit 28e3a27

Please sign in to comment.