mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-30 17:04:28 +00:00
Merge "Fix external icon specificity"
This commit is contained in:
commit
99e72700d2
|
@ -40,15 +40,19 @@ a {
|
|||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
&.external {
|
||||
// background-image is specified by ResourceLoader.
|
||||
// Force the image size to be 10px.
|
||||
background-size: 10px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
padding-right: 13px;
|
||||
}
|
||||
// External links
|
||||
// Use of `a` element selector due to its widespread usage and for limiting generic class scope.
|
||||
// `a.external` is for footer's “Creative Commons” license link only.
|
||||
a.external,
|
||||
.mw-parser-output a.external {
|
||||
// background-image is specified by ResourceLoader via skin.json.
|
||||
background-position: center right;
|
||||
background-repeat: no-repeat;
|
||||
// Force the image size to be 10px.
|
||||
background-size: 10px;
|
||||
padding-right: 13px;
|
||||
}
|
||||
|
||||
// Generic class name needed
|
||||
|
|
|
@ -286,9 +286,9 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"toast.mw-notification-type-error,.mw-notification.mw-notification-type-error":
|
||||
"toast.mw-notification-type-error, .mw-notification.mw-notification-type-error":
|
||||
"resources/skins.minerva.content.styles.images/error.svg",
|
||||
"a.external": {
|
||||
"a.external, .mw-parser-output a.external": {
|
||||
"file": {
|
||||
"ltr": "resources/skins.minerva.content.styles.images/link-external-ltr.svg",
|
||||
"rtl": "resources/skins.minerva.content.styles.images/link-external-rtl.svg"
|
||||
|
|
Loading…
Reference in a new issue