Fix specificity of widespread `.external` selector
Returning to `a.external` over only `.external` as it's used widely within MediaWiki and skins and it needs to kick in in appropriate places. `.external` is besides one false positive only for anchor elements, nonetheless more specific is simpler and more fail-safe than the other way round. Change-Id: I3e2fec26d1f835b11f9a66fdf4ba7faeca12d9d2
This commit is contained in:
parent
a20bf464b3
commit
2ba2af97cf
|
@ -136,11 +136,10 @@ pre,
|
|||
}
|
||||
|
||||
// External links
|
||||
.mw-parser-output {
|
||||
.external {
|
||||
background-image: url( images/external-link-ltr-icon.svg );
|
||||
background-position: center right;
|
||||
background-repeat: no-repeat;
|
||||
padding-right: 13px;
|
||||
}
|
||||
// Use of `a` element selector due to its widespread usage and for limiting generic class scope.
|
||||
.mw-parser-output a.external {
|
||||
background-image: url( images/external-link-ltr-icon.svg );
|
||||
background-position: center right;
|
||||
background-repeat: no-repeat;
|
||||
padding-right: 13px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue