mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-18 10:16:34 +00:00
Tweak object list sizing, alignment
This commit is contained in:
parent
f2f9c926bb
commit
347ea4ca98
File diff suppressed because one or more lines are too long
2
netbox/project-static/dist/netbox-dark.css
vendored
2
netbox/project-static/dist/netbox-dark.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
netbox/project-static/dist/netbox-light.css
vendored
2
netbox/project-static/dist/netbox-light.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -278,22 +278,26 @@ body {
|
|||||||
}
|
}
|
||||||
td,
|
td,
|
||||||
th {
|
th {
|
||||||
font-size: $font-size-xs;
|
font-size: $font-size-sm;
|
||||||
line-height: $line-height-sm;
|
line-height: $line-height-sm;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
&.min-width {
|
||||||
|
width: 1%;
|
||||||
|
}
|
||||||
& input.form-check-input {
|
& input.form-check-input {
|
||||||
// Ensure checkboxes aren't too small inside object tables.
|
// Ensure checkboxes aren't too small inside object tables.
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
|
margin-top: 0.125em;
|
||||||
}
|
}
|
||||||
& .btn-sm {
|
& .btn-sm {
|
||||||
line-height: $line-height-xs;
|
line-height: $line-height-xs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.attr-table {
|
&.object-list {
|
||||||
td,
|
|
||||||
th {
|
th {
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-xs;
|
||||||
line-height: $line-height-sm;
|
line-height: $line-height-xs;
|
||||||
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@ $font-weight-lighter: 200;
|
|||||||
$font-weight-medium: 600;
|
$font-weight-medium: 600;
|
||||||
$font-weight-bolder: 800;
|
$font-weight-bolder: 800;
|
||||||
|
|
||||||
$font-size-xs: 0.9rem;
|
$font-size-xs: 0.75rem;
|
||||||
|
|
||||||
$line-height-base: 1.5;
|
$line-height-base: 1.5;
|
||||||
$line-height-xs: 1;
|
$line-height-xs: 1;
|
||||||
|
|||||||
@ -24,7 +24,7 @@ class BaseTable(tables.Table):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
attrs = {
|
attrs = {
|
||||||
'class': 'table table-hover table-headings',
|
'class': 'table table-hover object-list',
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, *args, user=None, **kwargs):
|
def __init__(self, *args, user=None, **kwargs):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user