Skip to content

Commit 28e3a27

Browse files
committed
Incorporate suggestions
1 parent 00bc45d commit 28e3a27

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/haddock/libs/libplots.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -949,39 +949,36 @@ def _css_styles_for_report():
949949
font-family: Arial, sans-serif;
950950
font-size: 32px;
951951
font-weight: bold;
952-
}
953-
952+
}
953+
body {
954+
margin-left: 1em;
955+
}
954956
table {
955957
border-collapse: collapse;
956958
}
957-
958959
th {
959960
background-color: #f2f2f2;
960961
padding: 8px;
961962
border: 1px solid #ddd;
962963
text-align: left;
963964
}
964-
965965
th[scope="row"] {
966966
position: sticky;
967967
min-width: 16rem;
968968
left: 0;
969969
z-index: 1
970970
}
971-
972971
td {
973972
border: 1px solid #ddd;
974973
padding: 8px;
975974
text-align: left;
976975
}
977-
978976
tr:nth-child(even) {
979977
background-color: #f2f2f2
980978
}
981-
982979
"""
983980
css_link = "https://esm.sh/@i-vresse/haddock3-ui@~0.2.2/dist/index.css"
984-
table_css = f' <link href={css_link} rel="stylesheet" />'
981+
table_css = f' <link href="{css_link}" rel="stylesheet" />'
985982
return f"{table_css}<style>{custom_css}</style>"
986983

987984

0 commit comments

Comments
 (0)