mediawiki-extensions-Visual.../modules/ve-mw/ui/styles/contextitems/ve.ui.MWInternalLinkContextItem.css
David Lynch ab1e5d58d4 MWInternalLinkContextItem: increase specificity to override OOUI changes
OOUI 8e31b2f273 increased changed various icon CSS rules, and increased their
specificity. Increase ours to match. This restores the correct size/ratio of
the images in the link context item.

Bug: T178933
Change-Id: I4f1a6dde363cf99f7665dc83f4b0fa6b1dd3c29e
2017-10-24 16:09:38 -05:00

54 lines
1.3 KiB
CSS

/*!
* VisualEditor MediaWiki UserInterface internal link context item styles.
*
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ui-mwInternalLinkContextItem .ve-ui-linearContextItem-body {
overflow: auto;
white-space: normal;
}
.ve-ui-mwInternalLinkContextItem-withImage > .oo-ui-iconElement.oo-ui-iconElement-icon {
float: left;
width: 3.75em;
height: 3.75em;
left: -3.75em;
background-color: #c8ccd1;
border: 0.5em solid #c8ccd1;
opacity: 0.4;
}
.ve-ui-mwInternalLinkContextItem-hasImage {
background-color: transparent;
background-size: cover;
}
.ve-ui-mwInternalLinkContextItem-withImage > .ve-ui-mwInternalLinkContextItem-hasImage.oo-ui-iconElement-icon {
border: 0;
background-size: cover;
opacity: 1;
width: 4.75em;
height: 4.75em;
}
.ve-ui-mwInternalLinkContextItem-link,
.ve-ui-mwInternalLinkContextItem-description {
display: block;
}
.ve-ui-mwInternalLinkContextItem-description {
color: #72777d;
margin-top: 0.5em;
}
.ve-ui-mwInternalLinkContextItem-withImage .ve-ui-mwInternalLinkContextItem-link,
.ve-ui-mwInternalLinkContextItem-withImage .ve-ui-mwInternalLinkContextItem-description {
margin-left: 5.75em;
}
.ve-ui-mwInternalLinkContextItem-withDescription .ve-ui-mwInternalLinkContextItem-link {
font-weight: bold;
}