fix: Tabellenformatierung in Leseansicht beibehalten
This commit is contained in:
@@ -5,7 +5,7 @@ class DocumentationConfig(PluginConfig):
|
||||
name = "netbox_documentation"
|
||||
verbose_name = "NetBox Dokumentation"
|
||||
description = "Wiki und Office-Dokumentation direkt in NetBox"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
author = "LKE"
|
||||
base_url = "documentation"
|
||||
min_version = "4.0.0"
|
||||
|
||||
@@ -3,37 +3,28 @@
|
||||
{% block head %}
|
||||
{{ block.super }}
|
||||
<style>
|
||||
.documentation-content { overflow-x: auto; }
|
||||
.documentation-content {
|
||||
overflow-x: auto;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 11pt;
|
||||
}
|
||||
.documentation-content table {
|
||||
width: max-content !important;
|
||||
min-width: 100%;
|
||||
max-width: none !important;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
table-layout: auto;
|
||||
border-collapse: collapse !important;
|
||||
border: 1px solid var(--tblr-border-color, #adb5bd) !important;
|
||||
font-size: .875rem;
|
||||
line-height: 1.25;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.documentation-content th,
|
||||
.documentation-content td {
|
||||
min-width: 8rem;
|
||||
max-width: 24rem;
|
||||
padding: .4rem .55rem !important;
|
||||
border: 1px solid var(--tblr-border-color, #adb5bd) !important;
|
||||
padding: .45rem;
|
||||
border: 1px solid #adb5bd;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: normal;
|
||||
vertical-align: top;
|
||||
}
|
||||
.documentation-content th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
background: var(--tblr-bg-surface-secondary, #f1f3f5) !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
.documentation-content tbody tr:nth-child(even) td {
|
||||
background: color-mix(in srgb, var(--tblr-bg-surface-secondary, #f1f3f5) 45%, transparent);
|
||||
}
|
||||
.documentation-content table.doc-table-full-width { width: 100% !important; }
|
||||
.documentation-content table.doc-table-compact th,
|
||||
.documentation-content table.doc-table-compact td { min-width: 5rem; padding: .2rem .35rem !important; font-size: .8rem; }
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
.summary { color: #4b5563; font-size: 13pt; margin: 0 0 1rem; }
|
||||
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: .65rem 0; margin-bottom: 1.4rem; color: #6b7280; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; font-size: 9pt; }
|
||||
.content img { max-width: 100%; height: auto; }
|
||||
.content table { width: auto; max-width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 9pt; line-height: 1.25; }
|
||||
.content th, .content td { border: 1px solid #777; padding: .35rem .5rem; vertical-align: top; }
|
||||
.content table { width: auto; max-width: 100%; border-collapse: collapse; margin: 1em 0; }
|
||||
.content th, .content td { border: 1px solid #adb5bd; padding: .45rem; vertical-align: top; overflow-wrap: anywhere; }
|
||||
.content table.doc-table-full-width { width: 100%; }
|
||||
.content table.doc-table-compact th, .content table.doc-table-compact td { padding: .15rem .25rem; font-size: 8pt; }
|
||||
.content table.doc-table-striped tbody tr:nth-child(even) td { background: #f1f3f5; }
|
||||
|
||||
Reference in New Issue
Block a user