2014-03-18 20:52:39 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface MWMediaResultWidget styles.
|
|
|
|
*
|
2016-01-03 22:56:59 +00:00
|
|
|
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
|
2014-03-18 20:52:39 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
padding: 0;
|
|
|
|
margin: 2px;
|
|
|
|
overflow: hidden;
|
2015-02-12 01:07:44 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
text-align: center;
|
2014-03-18 20:52:39 +00:00
|
|
|
}
|
|
|
|
|
2016-05-24 12:41:13 +00:00
|
|
|
.ve-ui.mwMediaResultWidget-eol:after {
|
2016-05-16 14:38:57 +00:00
|
|
|
content: '.';
|
2014-09-18 19:49:22 +00:00
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2014-03-18 20:52:39 +00:00
|
|
|
.ve-ui-mwMediaResultWidget-error {
|
|
|
|
background-color: #f3f3f3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-thumbnail {
|
|
|
|
opacity: 0;
|
2015-02-12 01:07:44 +00:00
|
|
|
display: inline-block;
|
2016-05-17 12:11:08 +00:00
|
|
|
/* stylelint-disable no-unsupported-browser-features */
|
2014-03-18 20:52:39 +00:00
|
|
|
-webkit-transition: opacity 400ms;
|
|
|
|
-moz-transition: opacity 400ms;
|
|
|
|
transition: opacity 400ms;
|
2016-05-17 17:32:58 +00:00
|
|
|
/* stylelint-enable no-unsupported-browser-features */
|
2014-03-18 20:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-done .ve-ui-mwMediaResultWidget-thumbnail,
|
|
|
|
.ve-ui-mwMediaResultWidget-error .ve-ui-mwMediaResultWidget-thumbnail {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-crop {
|
2016-05-17 12:11:08 +00:00
|
|
|
background-size: cover; /* stylelint-disable-line no-unsupported-browser-features */
|
2014-03-18 20:52:39 +00:00
|
|
|
background-position: center center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-overlay {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
box-shadow: inset 0 0 0 1px #ccc;
|
|
|
|
}
|
|
|
|
|
2014-07-28 12:07:49 +00:00
|
|
|
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-highlighted,
|
2014-03-18 20:52:39 +00:00
|
|
|
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-selected {
|
2016-05-16 14:38:57 +00:00
|
|
|
box-shadow: 0 0 0.3em #a7dcff, 0 0 0 #fff;
|
2014-03-18 20:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-error .ve-ui-mwMediaResultWidget-thumbnail {
|
|
|
|
/* @embed */
|
2015-10-02 18:23:13 +00:00
|
|
|
background-image: url( images/broken-image.png );
|
2016-05-17 12:11:08 +00:00
|
|
|
background-size: auto; /* stylelint-disable-line no-unsupported-browser-features */
|
2014-03-18 20:52:39 +00:00
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
2014-09-18 19:49:22 +00:00
|
|
|
.ve-ui-mwMediaResultWidget .ve-ui-mwMediaResultWidget-nameLabel {
|
2014-03-18 20:52:39 +00:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0.5em;
|
|
|
|
color: #fff;
|
2016-05-17 12:11:08 +00:00
|
|
|
text-shadow: 1px 1px #000; /* stylelint-disable-line no-unsupported-browser-features */
|
2014-03-18 20:52:39 +00:00
|
|
|
line-height: 1.125em;
|
2015-10-02 18:23:13 +00:00
|
|
|
background-color: rgba( 0, 0, 0, 0.5 );
|
2014-03-18 20:52:39 +00:00
|
|
|
text-overflow: ellipsis;
|
2015-02-12 01:07:44 +00:00
|
|
|
text-align: left;
|
2014-03-18 20:52:39 +00:00
|
|
|
}
|
|
|
|
|
2014-09-18 19:49:22 +00:00
|
|
|
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-highlighted .ve-ui-mwMediaResultWidget-nameLabel {
|
2015-10-02 18:23:13 +00:00
|
|
|
background-color: rgba( 0, 0, 0, 0.75 );
|
2014-03-18 20:52:39 +00:00
|
|
|
}
|
|
|
|
|
2014-09-18 19:49:22 +00:00
|
|
|
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-selected .ve-ui-mwMediaResultWidget-nameLabel {
|
2014-03-18 20:52:39 +00:00
|
|
|
background-color: #000;
|
|
|
|
}
|
2014-05-13 06:27:18 +00:00
|
|
|
|
|
|
|
.ve-ui-mwMediaSearchWidget-noresults {
|
|
|
|
padding-top: 1em;
|
|
|
|
}
|