Clean up card styles

This commit is contained in:
Jeremy Stretch 2024-01-04 21:25:29 -05:00
parent a1830cb109
commit f38973e7ea
4 changed files with 49 additions and 0 deletions

Binary file not shown.

View File

@ -6,5 +6,9 @@
// slim-select // slim-select
@import './select.scss'; @import './select.scss';
// Transitional styling
@import './transitional/cards.scss';
@import './transitional/tables.scss';
// Temporary overrides // Temporary overrides
@import './temp.scss'; @import './temp.scss';

View 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;
}
}
}

View 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;
}
}