mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-21 02:22:51 +00:00
2fc809dc17
Replaces hardcoded color hex values with their equivalent values from Codex, via the "mediawiki.skin.variables" system. Bug: T366197 Change-Id: Ia929a1a8d6351222acb454c8ec750e920ae6d072
51 lines
1 KiB
Plaintext
51 lines
1 KiB
Plaintext
/*!
|
|
* VisualEditor MediaWiki UserInterface internal link context item styles.
|
|
*
|
|
* @copyright See AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
.ve-ui-mwInternalLinkContextItem {
|
|
.ve-ui-linearContextItem-body {
|
|
overflow: auto;
|
|
white-space: normal;
|
|
}
|
|
|
|
&-withImage > .oo-ui-iconElement.oo-ui-iconElement-icon {
|
|
float: left;
|
|
font-size: 2em; /* double-size icon */
|
|
background-color: @background-color-disabled;
|
|
border: 0.35714em solid @border-color-subtle;
|
|
opacity: 0.4;
|
|
margin-bottom: 0.3em;
|
|
}
|
|
|
|
&-hasImage {
|
|
background-color: transparent;
|
|
background-size: cover;
|
|
}
|
|
|
|
&-withImage > &-hasImage.oo-ui-iconElement-icon {
|
|
border: 0;
|
|
background-size: cover;
|
|
opacity: 1;
|
|
padding: 0.35714em;
|
|
}
|
|
|
|
&-description {
|
|
display: block;
|
|
color: @color-base--subtle;
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
&-withImage .ve-ui-linkContextItem-link,
|
|
&-withImage &-description {
|
|
margin-left: 5em;
|
|
}
|
|
|
|
&-withDescription .ve-ui-linkContextItem-link {
|
|
font-weight: bold;
|
|
}
|
|
}
|