Last active
May 1, 2022 11:27
-
-
Save ThomasRettig/81c98da848a1b7bea1ef00d439efa63e to your computer and use it in GitHub Desktop.
Display an icon if the link opens in a new tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a[target="_blank"]::after { | |
content: " "; | |
display: inline-block; | |
margin-left: 0.2em; | |
width: 0.75em; | |
height: 0.75em; | |
background: url("data:image/svg+xml;utf8,%3Csvg%20height%3D%22100pt%22%20viewBox%3D%220%200%20100%20100%22%20width%3D%22100pt%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m70.996%2060.371v5.7812%208.9141c0%20.86719.039062%201.7578-.058594%202.6172.070312-.51562.13672-1.0352.20312-1.5625-.085937.65625-.26562%201.2812-.50781%201.8945.19531-.46875.39063-.9375.58594-1.3984-.25391.59375-.57812%201.1406-.96875%201.6602.30469-.39062.61719-.78906.91797-1.1797-.39844.50781-.84766.95703-1.3477%201.3477.39063-.30469.78906-.61719%201.1797-.91797-.51562.39062-1.0625.71094-1.6602.96875.46875-.19531.9375-.39062%201.3984-.58594-.61719.25391-1.2422.42188-1.8945.50781.51562-.070313%201.0352-.13672%201.5625-.20312-.72266.085937-1.4648.058594-2.1953.058594h-3.8281-12.883-15.742-13.477c-2.0898%200-4.1797.007812-6.2695%200-.33203%200-.65625-.019532-.98438-.058594.51562.070312%201.0352.13672%201.5625.20312-.65625-.085938-1.2812-.26562-1.8945-.50781.46875.19531.9375.39062%201.3984.58594-.59375-.25391-1.1406-.57812-1.6602-.96875.39062.30469.78906.61719%201.1797.91797-.50781-.39844-.95703-.84766-1.3477-1.3477.30469.39062.61719.78906.91797%201.1797-.39062-.51562-.71094-1.0625-.96875-1.6602.19531.46875.39062.9375.58594%201.3984-.25391-.61719-.42188-1.2422-.50781-1.8945.070312.51562.13672%201.0352.20312%201.5625-.085938-.72266-.058594-1.4648-.058594-2.1953v-3.8281-12.883-15.742-13.477c0-2.0898-.007812-4.1797%200-6.2695%200-.33203.019531-.65625.058594-.98437-.070313.51562-.13672%201.0352-.20312%201.5625.085937-.65625.26562-1.2812.50781-1.8945-.19531.46875-.39062.9375-.58594%201.3984.25391-.59375.57812-1.1406.96875-1.6602-.30469.39062-.61719.78906-.91797%201.1797.39844-.50781.84766-.95703%201.3477-1.3477-.39062.30469-.78906.61719-1.1797.91797.51562-.39063%201.0625-.71094%201.6602-.96875-.46875.19531-.9375.39062-1.3984.58594.61719-.25391%201.2422-.42188%201.8945-.50781-.51562.070313-1.0352.13672-1.5625.20313%201.2969-.15625%202.6562-.058594%203.9648-.058594h8.0664%209.9023%208.6719c1.4062%200%202.8125.019531%204.2188%200h.058594c1.5039%200%203.0781-.65625%204.1406-1.7188%201.0156-1.0156%201.7773-2.6875%201.7188-4.1406-.070312-1.5156-.56641-3.0859-1.7188-4.1406-1.1406-1.0547-2.5586-1.7188-4.1406-1.7188h-5.4219-11.855-11.699-3.7383c-.68359%200-1.375-.03125-2.0508.046875-2.3633.24219-4.707.83984-6.6406%202.2969-.63281.48047-1.2891.94531-1.8555%201.5039-.42188.42188-.77344.89062-1.1328%201.3594-.35156.44922-.70312.89844-.99609%201.3867-.41016.71094-.72266%201.5156-1.0234%202.2656-.60547%201.5156-.78125%203.1953-.78125%204.8125v5.8203%2010.566%2012.664%2012.102%208.8594c0%202.0781-.070313%204.0938.37109%206.1523.48828%202.2734%201.7695%204.4062%203.3398%206.0859.78125.83984%201.7383%201.5625%202.7148%202.168.29297.1875.59375.34375.91016.48047.75.34375%201.5234.69531%202.3125.91797%201.3477.39062%202.7656.49609%204.1602.49609h6.1133%2010.734%2012.695%2012%208.625c2.2188%200%204.5312.125%206.6602-.59375%202.1875-.74219%204.3164-1.9414%205.8398-3.7109.75-.87891%201.5234-1.8359%202.0234-2.8984.48047-1.0469.97656-2.1289%201.1641-3.2617.27344-1.6719.3125-3.1641.3125-4.8359v-11.68-2.6367c0-1.5039-.65625-3.0781-1.7188-4.1406-1.0156-1.0156-2.6875-1.7773-4.1406-1.7188-1.5156.070313-3.0859.56641-4.1406%201.7188-1.0312%201.1523-1.6953%202.5586-1.6953%204.1484z%22%2F%3E%3Cpath%20d%3D%22m97.258%2036.203v-6.8555-10.938-2.5312c0-3.1641-2.6875-5.8594-5.8594-5.8594h-6.8555-10.938-2.5312c-1.5039%200-3.0781.65625-4.1406%201.7188-1.0156%201.0156-1.7773%202.6875-1.7188%204.1406.070312%201.5156.56641%203.0859%201.7188%204.1406%201.1406%201.0547%202.5586%201.7188%204.1406%201.7188h6.8555%2010.938%202.5312c-1.9531-1.9531-3.9062-3.9062-5.8594-5.8594v6.8555%2010.938%202.5312c0%201.5039.65625%203.0781%201.7188%204.1406%201.0156%201.0156%202.6875%201.7773%204.1406%201.7188%201.5156-.070312%203.0859-.56641%204.1406-1.7188%201.0547-1.1445%201.7188-2.5508%201.7188-4.1406z%22%2F%3E%3Cpath%20d%3D%22m49.367%2066.191%204.6016-4.6016c3.6836-3.6836%207.3633-7.3633%2011.047-11.047l24.844-24.844c1.875-1.875%203.7578-3.7188%205.6172-5.6172.03125-.03125.046876-.046875.078126-.078125%201.0625-1.0625%201.7188-2.6367%201.7188-4.1406%200-1.4375-.63281-3.1523-1.7188-4.1406-1.1133-1.0234-2.5781-1.7891-4.1406-1.7188-1.5547.070313-3.0156.59375-4.1406%201.7188-1.5312%201.5312-3.0664%203.0664-4.6016%204.6016-3.6836%203.6836-7.3633%207.3633-11.047%2011.047l-24.844%2024.844c-1.875%201.875-3.7578%203.7188-5.6172%205.6172-.03125.03125-.046874.046875-.078124.078125-1.0625%201.0625-1.7188%202.6367-1.7188%204.1406%200%201.4375.63281%203.1523%201.7188%204.1406%201.1133%201.0234%202.5781%201.7891%204.1406%201.7188%201.5508-.066406%203.0156-.59766%204.1406-1.7188z%22%2F%3E%3C%2Fsvg%3E") no-repeat 50%/contain; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment