| 1 |
/*! |
| 2 |
* VisualEditor MediaWiki UserInterface internal link context item styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
* @license The MIT License (MIT); see LICENSE.txt |
| 6 |
*/ |
| 7 |
@import 'mediawiki.skin.variables.less'; |
| 8 |
|
| 9 |
.ve-ui-mwInternalLinkContextItem { |
| 10 |
.ve-ui-linearContextItem-body { |
| 11 |
overflow: auto; |
| 12 |
white-space: normal; |
| 13 |
} |
| 14 |
|
| 15 |
&-withImage > .oo-ui-iconElement.oo-ui-iconElement-icon { |
| 16 |
float: left; |
| 17 |
font-size: 2em; /* double-size icon */ |
| 18 |
background-color: @background-color-disabled; |
| 19 |
border: 0.35714em solid @border-color-subtle; |
| 20 |
opacity: 0.4; |
| 21 |
margin-bottom: 0.3em; |
| 22 |
} |
| 23 |
|
| 24 |
&-hasImage { |
| 25 |
background-color: transparent; |
| 26 |
background-size: cover; |
| 27 |
} |
| 28 |
|
| 29 |
&-withImage > &-hasImage.oo-ui-iconElement-icon { |
| 30 |
border: 0; |
| 31 |
background-size: cover; |
| 32 |
opacity: 1; |
| 33 |
padding: 0.35714em; |
| 34 |
} |
| 35 |
|
| 36 |
&-description { |
| 37 |
display: block; |
| 38 |
color: @color-base--subtle; |
| 39 |
margin-top: 0.5em; |
| 40 |
} |
| 41 |
|
| 42 |
&-withImage .ve-ui-linkContextItem-link, |
| 43 |
&-withImage &-description { |
| 44 |
margin-left: 5em; |
| 45 |
} |
| 46 |
|
| 47 |
&-withDescription .ve-ui-linkContextItem-link { |
| 48 |
font-weight: bold; |
| 49 |
} |
| 50 |
} |