mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 21:18:16 -06:00
Clean up card styles
This commit is contained in:
parent
a1830cb109
commit
f38973e7ea
BIN
netbox/project-static/dist/netbox.css
vendored
BIN
netbox/project-static/dist/netbox.css
vendored
Binary file not shown.
@ -6,5 +6,9 @@
|
||||
// slim-select
|
||||
@import './select.scss';
|
||||
|
||||
// Transitional styling
|
||||
@import './transitional/cards.scss';
|
||||
@import './transitional/tables.scss';
|
||||
|
||||
// Temporary overrides
|
||||
@import './temp.scss';
|
||||
|
25
netbox/project-static/styles/transitional/cards.scss
Normal file
25
netbox/project-static/styles/transitional/cards.scss
Normal file
@ -0,0 +1,25 @@
|
||||
.page-body {
|
||||
.card {
|
||||
|
||||
// Add bottom margin for vertical separation between cards
|
||||
margin-bottom: 1rem;
|
||||
|
||||
// Reduce padding
|
||||
.card-header,
|
||||
.card-body,
|
||||
.card-footer {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
// Add background color
|
||||
.card-header {
|
||||
background: var(--#{$prefix}bg-surface-tertiary);
|
||||
}
|
||||
|
||||
// Reduce padding
|
||||
.list-group-item {
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
20
netbox/project-static/styles/transitional/tables.scss
Normal file
20
netbox/project-static/styles/transitional/tables.scss
Normal file
@ -0,0 +1,20 @@
|
||||
table.attr-table {
|
||||
|
||||
// Restyle row header
|
||||
th {
|
||||
color: $gray-700;
|
||||
font-weight: normal;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
// Restyle row border
|
||||
th, td {
|
||||
border-bottom-style: dashed;
|
||||
}
|
||||
|
||||
// Hide border of last row in table
|
||||
tr:last-child {
|
||||
border-bottom-style: hidden;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user