mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
Clean up object list styling
This commit is contained in:
parent
17f400e88f
commit
b4a5e194e4
@ -162,7 +162,7 @@ class ToggleColumn(tables.CheckBoxColumn):
|
|||||||
if 'attrs' not in kwargs:
|
if 'attrs' not in kwargs:
|
||||||
kwargs['attrs'] = {
|
kwargs['attrs'] = {
|
||||||
'td': {
|
'td': {
|
||||||
'class': 'min-width',
|
'class': 'w-1',
|
||||||
},
|
},
|
||||||
'input': {
|
'input': {
|
||||||
'class': 'form-check-input'
|
'class': 'form-check-input'
|
||||||
|
BIN
netbox/project-static/dist/netbox.css
vendored
BIN
netbox/project-static/dist/netbox.css
vendored
Binary file not shown.
@ -6,3 +6,7 @@ $sidebar-width: 18rem;
|
|||||||
// Reduce the default button padding
|
// Reduce the default button padding
|
||||||
$btn-padding-x: 0.5rem;
|
$btn-padding-x: 0.5rem;
|
||||||
$btn-padding-y: 0.25rem;
|
$btn-padding-y: 0.25rem;
|
||||||
|
|
||||||
|
// Reduce the default table cell padding
|
||||||
|
$table-cell-padding-x: 0.5rem;
|
||||||
|
$table-cell-padding-y: 0.5rem;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
|
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
|
||||||
{% include 'inc/table_controls_htmx.html' %}
|
{% include 'inc/table_controls_htmx.html' %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">{{ title }}</h5>
|
<h5 class="card-header">{{ title }}</h5>
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer noprint">
|
<div class="card-footer noprint">
|
||||||
@ -37,7 +37,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">{{ title }}</h5>
|
<h5 class="card-header">{{ title }}</h5>
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">{{ title }}</h5>
|
<h5 class="card-header">{{ title }}</h5>
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer noprint">
|
<div class="card-footer noprint">
|
||||||
@ -37,7 +37,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">{{ title }}</h5>
|
<h5 class="card-header">{{ title }}</h5>
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -110,7 +110,7 @@ Context:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body htmx-container table-responsive p-1" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row px-3">
|
<div class="row px-3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body htmx-container table-responsive" id="object_list">
|
<div class="htmx-container table-responsive" id="object_list">
|
||||||
{% include 'htmx/table.html' %}
|
{% include 'htmx/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user