2 * MediaWiki Widgets - MediaResultWidget styles.
4 * @copyright 2011-2024 VisualEditor Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
8 @import 'mediawiki.skin.variables.less';
10 .mw-widget-mediaResultWidget {
11 display: inline-block;
16 box-sizing: border-box;
20 background-color: @background-color-disabled-subtle;
25 display: inline-block;
26 transition: opacity 400ms;
35 background-size: cover;
36 background-position: center center;
45 box-shadow: inset 0 0 0 1px #c8ccd1;
48 &.oo-ui-optionWidget-highlighted,
49 &.oo-ui-optionWidget-selected {
50 box-shadow: 0 0 2px #36c;
53 &.oo-ui-optionWidget-highlighted &-overlay,
54 &.oo-ui-optionWidget-selected &-overlay {
55 box-shadow: inset 0 0 0 1px #36c;
59 background-image: url( broken-image.png );
60 background-size: auto;
61 background-position: center center;
62 background-repeat: no-repeat;
65 .mw-widget-mediaResultWidget-nameLabel {
73 text-shadow: 1px 1px #000;
75 background-color: rgba( 0, 0, 0, 0.5 );
76 text-overflow: ellipsis;
80 &.oo-ui-optionWidget-highlighted &-nameLabel {
81 background-color: rgba( 0, 0, 0, 0.75 );
84 &.oo-ui-optionWidget-selected &-nameLabel {
85 background-color: #000;
89 .mw-widget-mediaSearchWidget-noresults {