mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Allow the align property on th and td and add CSS rules for overriding text-alignment
This commit is contained in:
parent
0276f29067
commit
4b2922312a
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-print.css
vendored
BIN
netbox/project-static/dist/netbox-print.css
vendored
Binary file not shown.
@ -1002,6 +1002,18 @@ div.card-overlay {
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
th[align="left"] {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
th[align="center"] {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
th[align="right"] {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
/* Markdown widget */
|
/* Markdown widget */
|
||||||
.markdown-widget {
|
.markdown-widget {
|
||||||
.nav-link {
|
.nav-link {
|
||||||
|
@ -519,6 +519,8 @@ def clean_html(html, schemes):
|
|||||||
"h1": ["id"], "h2": ["id"], "h3": ["id"], "h4": ["id"], "h5": ["id"], "h6": ["id"],
|
"h1": ["id"], "h2": ["id"], "h3": ["id"], "h4": ["id"], "h5": ["id"], "h6": ["id"],
|
||||||
"a": ["href", "title"],
|
"a": ["href", "title"],
|
||||||
"img": ["src", "title", "alt"],
|
"img": ["src", "title", "alt"],
|
||||||
|
"th": ["align"],
|
||||||
|
"td": ["align"],
|
||||||
}
|
}
|
||||||
|
|
||||||
return bleach.clean(
|
return bleach.clean(
|
||||||
|
Loading…
Reference in New Issue
Block a user