mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "MWExternalLinkAnnotation: add CSS to override plainlinks styling"
This commit is contained in:
commit
9c82472546
|
@ -1616,7 +1616,8 @@
|
|||
"styles": [
|
||||
"modules/ve-mw/ui/styles/contextitems/ve.ui.MWInternalLinkContextItem.css",
|
||||
"modules/ve-mw/ui/styles/inspectors/ve.ui.MWLinkAnnotationInspector.css",
|
||||
"modules/ve-mw/ui/styles/tools/ve.ui.MWLinkInspectorTool.css"
|
||||
"modules/ve-mw/ui/styles/tools/ve.ui.MWLinkInspectorTool.css",
|
||||
"modules/ve-mw/ce/styles/annotations/ve.ce.MWExternalLinkAnnotation.css"
|
||||
],
|
||||
"dependencies": [
|
||||
"ext.visualEditor.mwcore"
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
/*!
|
||||
* VisualEditor ContentEditable MWExternalLinkAnnotation styles.
|
||||
*
|
||||
* @copyright 2011-2018 VisualEditor Team and others; see http://ve.mit-license.org
|
||||
*/
|
||||
|
||||
.plainlinks a.ve-ce-linkAnnotation-active.external {
|
||||
/*
|
||||
* plainlinks is a MW core class which tries to suppress the normal
|
||||
* external-link appearance; we don't want it to also suppress the
|
||||
* active-link styling that VE apples.
|
||||
* This is applying the same values as ve.ce.LinkAnnotation in VE core.
|
||||
*/
|
||||
background-color: #e6f1ff !important; /* stylelint-disable-line declaration-no-important */
|
||||
padding: 2px !important; /* stylelint-disable-line declaration-no-important */
|
||||
}
|
Loading…
Reference in a new issue