mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-26 21:13:01 +00:00
654d641c5f
Reorganize stylesheets in VE-MW to match JS directory structures, and update VisualEditor.php for similar reorganization in VE core. New changes: c6ed962 Reorganize stylesheets Change-Id: I4f1070643744fb2ee6726cb03e012e31a9a05c64
90 lines
2.1 KiB
CSS
90 lines
2.1 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki UserInterface MWMediaResultWidget styles.
|
|
*
|
|
* @copyright 2011-2014 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;
|
|
}
|
|
|
|
.ve-ui-mwMediaResultWidget-error {
|
|
background-color: #f3f3f3;
|
|
}
|
|
|
|
.ve-ui-mwMediaResultWidget-thumbnail {
|
|
position: absolute;
|
|
opacity: 0;
|
|
-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;
|
|
}
|
|
|
|
.ve-ui-optionWidget-highlighted .ve-ui-mwMediaResultWidget-overlay,
|
|
.ve-ui-optionWidget-selected .ve-ui-mwMediaResultWidget-overlay {
|
|
box-shadow: inset 0 0 0 1px #a7dcff;
|
|
}
|
|
|
|
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-highlighted {
|
|
box-shadow: 0 0 0.3em #a7dcff, 0 0 0 white;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.ve-ui-mwMediaResultWidget .oo-ui-labeledElement-label {
|
|
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;
|
|
}
|
|
|
|
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-highlighted .oo-ui-labeledElement-label {
|
|
background-color: rgba(0,0,0,0.75);
|
|
}
|
|
|
|
.ve-ui-mwMediaResultWidget.oo-ui-optionWidget-selected .oo-ui-labeledElement-label {
|
|
background-color: #000;
|
|
}
|