Skip to content

Commit 4712ac3

Browse files
authored
Fix external link icon going to new line alone (#3118)
1 parent c2a36fc commit 4712ac3

4 files changed

Lines changed: 12 additions & 28 deletions

File tree

docs/api/php_api/php_api_reference/css/base.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,9 @@ figcaption {
578578
text-align: center;
579579
}
580580

581-
a.external:not(.card):after {
582-
content: url(../../../../images/open-in-new.svg);
583-
font-style: normal;
584-
padding-left: 0px;
585-
position: relative;
586-
font-size: 11px;
587-
top: -5px;
581+
a.external:not(.card) {
582+
background: url(../../../../images/open-in-new.svg) no-repeat 100% -2px;
583+
padding-right: 12px;
588584
}
589585

590586
.md-typeset .md-content__icon {

docs/api/php_api/php_api_reference/css/template.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,9 @@ figcaption {
670670
text-align: center;
671671
}
672672

673-
a.external:not(.card):after {
674-
content: url(../../../../images/open-in-new.svg);
675-
font-style: normal;
676-
padding-left: 0px;
677-
position: relative;
678-
font-size: 11px;
679-
top: -5px;
673+
a.external:not(.card) {
674+
background: url(../../../../images/open-in-new.svg) no-repeat 100% -2px;
675+
padding-right: 12px;
680676
}
681677

682678
.md-typeset .md-content__icon {

docs/css/custom.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,9 @@ figcaption {
406406
text-align: center;
407407
}
408408

409-
a.external:not(.card):after {
410-
content: url(../images/open-in-new.svg);
411-
font-style: normal;
412-
padding-left: 2px;
413-
position: relative;
414-
font-size: 11px;
415-
top: -5px;
409+
a.external:not(.card) {
410+
background: url(../images/open-in-new.svg) no-repeat 100% -2px;
411+
padding-right: 12px;
416412
}
417413

418414
.md-typeset .md-content__icon {

tools/api_refs/.phpdoc/template/css/custom.css.twig

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,9 @@ figcaption {
394394
text-align: center;
395395
}
396396

397-
a.external:not(.card):after {
398-
content: url(../../../../images/open-in-new.svg);
399-
font-style: normal;
400-
padding-left: 0px;
401-
position: relative;
402-
font-size: 11px;
403-
top: -5px;
397+
a.external:not(.card) {
398+
background: url(../../../../images/open-in-new.svg) no-repeat 100% -2px;
399+
padding-right: 12px;
404400
}
405401

406402
.md-typeset .md-content__icon {

0 commit comments

Comments
 (0)