mediawiki-extensions-Visual.../modules/ve-mw/ui/styles/widgets/ve.ui.MWMediaResultWidget.css
James D. Forrester 8c7ed92288 Update VE core submodule to master (eeaf1e2)
New changes:
c54a48a build: Fix watch list (csslint -> stylelint)
58ba3d9 Add stylelint rules for @-rules
3f8c75a Stylelint: Add rule for unsupported browser features
3b96ff3 Fix minimum Opera version (15 -> 12)
9a1110b Stylelint: No ID selectors
9800bb8 build: Remove remaining references to csslint
b6ab14a stylelint: Re-enable features by names
6cc1f3c Move stylelint to npm
1d15fa0 build: Bump stylelint version to v0.2.0
ccc1724 stylelint: Use the preset rather than extending

Change-Id: I22fa8098592338a5e912aba9ad21131b21d9c0ea
2016-05-18 07:06:53 +01:00

98 lines
2.4 KiB
CSS

/*!
* VisualEditor MediaWiki UserInterface MWMediaResultWidget styles.
*
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ui-mwMediaResultWidget {
display: inline-block;
position: relative;
padding: 0;
margin: 2px;
overflow: hidden;
box-sizing: border-box;
text-align: center;
}
.ve-ui.mwMediaResultWidget-eol::after {
content: '.';
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ve-ui-mwMediaResultWidget-error {
background-color: #f3f3f3;
}
.ve-ui-mwMediaResultWidget-thumbnail {
opacity: 0;
display: inline-block;
/* stylelint-disable no-unsupported-browser-features */
-webkit-transition: opacity 400ms;
-moz-transition: opacity 400ms;
transition: opacity 400ms;
/* stylelint-enable no-unsupported-browser-features */
}
.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; /* stylelint-disable-line no-unsupported-browser-features */
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;
}
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-highlighted,
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-selected {
box-shadow: 0 0 0.3em #a7dcff, 0 0 0 #fff;
}
.ve-ui-mwMediaResultWidget-error .ve-ui-mwMediaResultWidget-thumbnail {
/* @embed */
background-image: url( images/broken-image.png );
background-size: auto; /* stylelint-disable-line no-unsupported-browser-features */
background-position: center center;
background-repeat: no-repeat;
}
.ve-ui-mwMediaResultWidget .ve-ui-mwMediaResultWidget-nameLabel {
position: absolute;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
padding: 0.5em;
color: #fff;
text-shadow: 1px 1px #000; /* stylelint-disable-line no-unsupported-browser-features */
line-height: 1.125em;
background-color: rgba( 0, 0, 0, 0.5 );
text-overflow: ellipsis;
text-align: left;
}
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-highlighted .ve-ui-mwMediaResultWidget-nameLabel {
background-color: rgba( 0, 0, 0, 0.75 );
}
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-selected .ve-ui-mwMediaResultWidget-nameLabel {
background-color: #000;
}
.ve-ui-mwMediaSearchWidget-noresults {
padding-top: 1em;
}