2014-03-18 20:52:39 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface MWMediaResultWidget styles.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 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
|
|
|
}
|
|
|
|
|
2014-09-18 19:49:22 +00:00
|
|
|
.ve-ui.mwMediaResultWidget-eol:after {
|
|
|
|
content: ".";
|
|
|
|
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;
|
2014-03-18 20:52:39 +00:00
|
|
|
-webkit-transition: opacity 400ms;
|
|
|
|
-moz-transition: opacity 400ms;
|
|
|
|
-o-transition: opacity 400ms;
|
|
|
|
transition: opacity 400ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-done .ve-ui-mwMediaResultWidget-thumbnail,
|
|
|
|
.ve-ui-mwMediaResultWidget-error .ve-ui-mwMediaResultWidget-thumbnail {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-crop {
|
|
|
|
background-size: cover;
|
|
|
|
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 {
|
|
|
|
box-shadow: 0 0 0.3em #a7dcff, 0 0 0 white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwMediaResultWidget-error .ve-ui-mwMediaResultWidget-thumbnail {
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(images/broken-image.png);
|
|
|
|
background-size: auto;
|
|
|
|
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;
|
|
|
|
text-shadow: 1px 1px #000;
|
|
|
|
line-height: 1.125em;
|
|
|
|
background-color: rgba(0,0,0,0.5);
|
|
|
|
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 {
|
2014-03-18 20:52:39 +00:00
|
|
|
background-color: rgba(0,0,0,0.75);
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|