2 * MediaWiki Widgets - MediaResultWidget styles.
4 * @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
8 .mw-widget-mediaResultWidget {
14 box-sizing: border-box
;
18 .mw-widget-mediaResultWidget-error {
19 background-color: #f3f3f3;
22 .mw-widget-mediaResultWidget-thumbnail {
24 display: inline-block
;
25 /* stylelint-disable no-unsupported-browser-features */
26 -webkit-transition: opacity
400ms;
27 -moz-transition: opacity
400ms;
28 transition: opacity
400ms;
29 /* stylelint-enable no-unsupported-browser-features */
32 .mw-widget-mediaResultWidget-done
.mw-widget-mediaResultWidget-thumbnail
,
33 .mw-widget-mediaResultWidget-error .mw-widget-mediaResultWidget-thumbnail {
37 .mw-widget-mediaResultWidget-crop {
38 background-size: cover
; /* stylelint-disable-line no-unsupported-browser-features */
39 background-position: center center
;
42 .mw-widget-mediaResultWidget-overlay {
48 box-shadow: inset
0 0 0 1px #ccc;
51 .mw-widget-mediaResultWidget
.oo-ui-optionWidget-highlighted
,
52 .mw-widget-mediaResultWidget.oo-ui-optionWidget-selected {
53 box-shadow: 0 0 0.3em #a7dcff, 0 0 0 #fff;
56 .mw-widget-mediaResultWidget-error .mw-widget-mediaResultWidget-thumbnail {
58 background-image: url
( broken-image
.png
);
59 background-size: auto
; /* stylelint-disable-line no-unsupported-browser-features */
60 background-position: center center
;
61 background-repeat: no-repeat
;
64 .mw-widget-mediaResultWidget .mw-widget-mediaResultWidget-nameLabel {
72 text-shadow: 1px 1px #000; /* stylelint-disable-line no-unsupported-browser-features */
74 background-color: rgba
( 0, 0, 0, 0.5 );
75 text-overflow: ellipsis
;
79 .mw-widget-mediaResultWidget.oo-ui-optionWidget-highlighted .mw-widget-mediaResultWidget-nameLabel {
80 background-color: rgba
( 0, 0, 0, 0.75 );
83 .mw-widget-mediaResultWidget.oo-ui-optionWidget-selected .mw-widget-mediaResultWidget-nameLabel {
84 background-color: #000;
87 .mw-widget-mediaSearchWidget-noresults {