API link badges covers text
Eg: On https://develop.kde.org/docs/plasma/ the API badge covers the "I" in "KDecoration2 API".
-
.api-link
haspadding-right: 17px
-
.api-link:after
hasmargin-right: -15px
andwidth: 20px
-
17 - 15
which is essentially aactually I think it's amargin-left: 2px
margin-right: 2px
. - Since
width: 20px
, it also covers the text following by5px
(usually a space).
So remove the padding-right
and margin-right
, then set margin-left: 2px
.
If you're worried about API
wrapping to a separate line, then use one of these:
.api-link { display: inline-block; }
.api-link { white-space: nowrap; }
Edited by Chris Holland