Merge "MWExternalLinkAnnotation: add CSS to override plainlinks styling"

This commit is contained in:
jenkins-bot 2018-04-04 15:53:51 +00:00 committed by Gerrit Code Review
commit 9c82472546
2 changed files with 18 additions and 1 deletions

View file

@ -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"

View file

@ -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 */
}