Skip to content

Commit

Permalink
accordion triangle styling
Browse files Browse the repository at this point in the history
  • Loading branch information
edsaperia committed Feb 12, 2024
1 parent 911a7de commit 7cb4970
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -519,3 +519,20 @@ label {
.event-actions {
margin-top: 1em;
}

/* Accordion triangle styling */

details summary::-webkit-details-marker {
display: none; /* Hide default triangle marker for WebKit browsers */
}

details summary::before {
content: '\25B6'; /* Unicode character for right-pointing triangle */
display: inline-block;
margin-right: 0.5em; /* Adjust spacing between marker and text */
}

/* Change triangle marker when details are open */
details[open] summary::before {
content: '\25BC'; /* Unicode character for down-pointing triangle */
}

0 comments on commit 7cb4970

Please sign in to comment.