|
85 | 85 | // External link styles with `external_links_class = "external"`.
|
86 | 86 | main {
|
87 | 87 | --external-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M11 5h-6v14h14v-6'/%3E%3Cpath d='M13 11l7 -7'/%3E%3Cpath d='M21 3h-6M21 3v6'/%3E%3C/g%3E%3C/svg%3E");
|
88 |
| - a.external:not(:has(img, svg, video, picture, figure)) { |
89 |
| - display: inline-block; |
90 |
| - padding-inline-end: 0.9em; |
91 |
| - } |
92 | 88 |
|
93 | 89 | a.external:not(:has(img, svg, video, picture, figure))::after {
|
94 |
| - -webkit-mask-image: var(--external-link-icon); |
95 |
| - -webkit-mask-size: 100% 100%; |
96 | 90 | display: inline-block;
|
97 |
| - position: absolute; |
98 |
| - top: 50%; |
99 |
| - transform: translateY(-50%); |
100 |
| - mask-image: var(--external-link-icon); |
101 |
| - mask-size: 100% 100%; |
102 |
| - margin-inline-start: 0.2em; |
103 |
| - inset-inline-end: 0; |
| 91 | + vertical-align: -0.05em; |
| 92 | + margin-inline-start: 0.1em; |
104 | 93 | background-color: currentColor;
|
105 | 94 | width: 0.8em;
|
106 | 95 | height: 0.8em;
|
107 | 96 | content: '';
|
| 97 | + -webkit-mask-image: var(--external-link-icon); |
| 98 | + -webkit-mask-size: 100% 100%; |
108 | 99 | }
|
109 | 100 |
|
110 | 101 | &:dir(rtl) a.external:not(:has(img, svg, video, picture, figure))::after {
|
111 |
| - transform: translateY(-50%) rotate(-90deg); |
| 102 | + transform: rotate(-90deg); |
112 | 103 | }
|
113 | 104 |
|
114 | 105 | .meta a.external:not(:has(img, svg, video, picture, figure))::after {
|
|
0 commit comments