Skip to content

Commit

Permalink
Get card toggle above itables
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Nov 15, 2023
1 parent f78e1b8 commit 329a806
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions src/resources/formats/dashboard/quarto-dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -391,21 +391,6 @@ $valuebox-colors: (
padding: 0;
border: none;
}

.card-header,
.card-footer {
p:last-child {
margin-bottom: 0;
}
}

.card-body > .h4:first-child {
margin-top: 0;
}

.card-footer {
font-size: 0.9em;
}
}

.quarto-dashboard-img-contain {
Expand Down Expand Up @@ -784,7 +769,29 @@ $valuebox-colors: (
}

/* Card Toolbar */
/* Card */
.card {
.card-header,
.card-footer {
p:last-child {
margin-bottom: 0;
}
}

.card-body > .h4:first-child {
margin-top: 0;
}

// This ensures that elements in the card body (notably the expansion toggle)
// appear above the elements inside of it (notably itables, which cause issues)
.card-body {
z-index: 1000;
}

.card-footer {
font-size: 0.9em;
}

.card-toolbar {
display: flex;
flex-grow: 1;
Expand Down

0 comments on commit 329a806

Please sign in to comment.