Skip to content
Snippets Groups Projects
Commit 1dccc64c authored by Huste, Tobias's avatar Huste, Tobias
Browse files

Merge branch 'expand-button-fa' into 'master'

Use fontawesome icon for the HTML details element

See merge request hifis/hifis.net!249
parents 53ab9d7f 54669591
No related branches found
No related tags found
1 merge request!249Use fontawesome icon for the HTML details element
......@@ -95,3 +95,25 @@ h2 {
width: 100%;
}
}
// Replace the HTML details triangle with Fontawesome icons
summary {
list-style: none;
&::-webkit-details-marker {
display: none;
}
}
details {
summary::before {
content: "\f138"; // fas fa-chevron-circle-right
font-family: "Font Awesome 5 Free";
font-weight: 900;
margin-right: 0.25rem;
}
&[open] summary::before {
content: "\f13a"; // fas fa-chevron-circle-down
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment