Thanks for the thorough answer, @jyurek. To avoid repeition, I’m considering merely doing a css attribute wildcard matchers to avoid all the MIME registers I’ll have to do…
For example I can do the following, removing my Sass directives, modernizer chain of no-svg
and svg
cases, and $file_format variable…
a
&[href*= ".pdf"]
color: red
&::before
background: url('./images/file_format/pdf.png') no-repeat 32px 32px
width: 32px
height: 32px
display: inline-block
margin-right: .5em
content: ""