Skip to content

Commit

Permalink
Improve accordion styles
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-nc committed Apr 15, 2024
1 parent 0c0669e commit 1f8ba11
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _sass/_custom_classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,25 @@ section#search-section {
border-radius: $border-radius;
}
}

/*-----Accordion styles-----*/

// Add a bottom border to the last accordion.
a.info-collapse[aria-expanded="false"]:last-of-type,
a.info-collapse[aria-expanded="true"]:last-of-type + .show {
border-bottom: 1px solid var(--bs-border-color);
}

// Remove border hover effect.
.info-collapse:hover, .info-collapse[aria-expanded="true"] {
border-color: var(--bs-border-color) !important;
}

// Add hover effect to accordion header text.
a.info-collapse h3 {
transition: color .2s ease-in-out;
}

a.info-collapse:hover h3 {
color: rgba(var(--bs-link-color-rgb), .8) !important;
}

0 comments on commit 1f8ba11

Please sign in to comment.