From f38973e7ea1568896ce6e2337d82bb2a0e7b07ee Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 4 Jan 2024 21:25:29 -0500 Subject: [PATCH] Clean up card styles --- netbox/project-static/dist/netbox.css | Bin 542717 -> 543174 bytes netbox/project-static/styles/_netbox.scss | 4 +++ .../styles/transitional/cards.scss | 25 ++++++++++++++++++ .../styles/transitional/tables.scss | 20 ++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 netbox/project-static/styles/transitional/cards.scss create mode 100644 netbox/project-static/styles/transitional/tables.scss diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 0bcfea81f403cc2f5324c2858531682306c3c635..0183904b822be5eec1ba3af7bb4d6b77af2b0a6d 100644 GIT binary patch delta 391 zcmey{uXt>-VnYjK3sVbo3rh=Y3tJ2O7LLj8oCS&Lsk%w|DV5VNUSt!Ut}vN}rM^}V zE~=oHoLH0sA$2oS6H`))ba2Rm48bLrmY-jeT2x(-n39s2mu{tJZd#O@i_4nn?={#B z1u$S@CbbVnYjK3sVbo3rh=Y3tJ2O7LLj8(=V%Y$WC9Y!of4W)sw>!05qTt)&Kwi diff --git a/netbox/project-static/styles/_netbox.scss b/netbox/project-static/styles/_netbox.scss index 04264a628..c37c59b5a 100644 --- a/netbox/project-static/styles/_netbox.scss +++ b/netbox/project-static/styles/_netbox.scss @@ -6,5 +6,9 @@ // slim-select @import './select.scss'; +// Transitional styling +@import './transitional/cards.scss'; +@import './transitional/tables.scss'; + // Temporary overrides @import './temp.scss'; diff --git a/netbox/project-static/styles/transitional/cards.scss b/netbox/project-static/styles/transitional/cards.scss new file mode 100644 index 000000000..661d4eb9c --- /dev/null +++ b/netbox/project-static/styles/transitional/cards.scss @@ -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; + } + + } +} diff --git a/netbox/project-static/styles/transitional/tables.scss b/netbox/project-static/styles/transitional/tables.scss new file mode 100644 index 000000000..dc9dfdb7a --- /dev/null +++ b/netbox/project-static/styles/transitional/tables.scss @@ -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; + } + +}