msg | March 2019 | Using :not() to mark all outgoing links of a site | Alexander Schwartz 3 <a href="https://jamstack.org/">JAMstack</a> <a href="/aboutme">contact me via a direct message on twitter or via email</a> <a itemprop="url" title="Twitter" target="_blank" href="https://twitter.com/intent/..." rel="noopener" class="button is-info">Tweet</span></a> External Link, same window: add mark Button, external link: no mark Internal Link: no mark
msg | March 2019 | Using :not() to mark all outgoing links of a site | Alexander Schwartz 6 a[target="_blank"]:not( [title] )::after { // arrow upper right // alternative: \29C9 (two window) content: '\00A0\2197'; vertical-align: text-top; font-size: 75%; } a:not( [href*='ahus1.de'] ):not( [href^='#'] ):not( [href^='/'] ):not( [href^='mailto:'] ):not( [title] )::after { /* ... */ } :not() tends to attract more :not()s… you might end up with unmaintainable code soon. Be careful! (thanks to @mirjam_diala for pointing this out)