2016-03-08 21:14:12 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface MWGalleryDialog styles.
|
|
|
|
*
|
2018-01-03 00:54:47 +00:00
|
|
|
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
2016-03-08 21:14:12 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog .ve-ui-mwGalleryDialog-image-container {
|
|
|
|
height: 100px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
2017-08-16 20:42:24 +00:00
|
|
|
border: 1px solid #c8ccd1;
|
2016-03-08 21:14:12 +00:00
|
|
|
cursor: pointer;
|
|
|
|
background-size: contain;
|
|
|
|
-webkit-transition: border 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 ), box-shadow 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 );
|
|
|
|
-moz-transition: border 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 ), box-shadow 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 );
|
|
|
|
transition: border 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 ), box-shadow 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 );
|
2017-06-23 18:57:27 +00:00
|
|
|
/* Override default padding of DraggableElement */
|
|
|
|
/* TODO: Remove once T168745 is resolved */
|
|
|
|
padding: 0;
|
2016-03-08 21:14:12 +00:00
|
|
|
}
|
|
|
|
|
2018-10-10 13:09:39 +00:00
|
|
|
.ve-ui-mwGalleryDialog .ve-ui-mwGalleryDialog-image-container-desktop {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog .ve-ui-mwGalleryDialog-image-container-mobile {
|
|
|
|
width: 100px;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
2016-10-14 23:49:01 +00:00
|
|
|
.ve-ui-mwGalleryDialog .ve-ui-mwGalleryDialog-image-container-highlighted {
|
2016-09-19 22:25:45 +00:00
|
|
|
border-color: #36c;
|
|
|
|
box-shadow: inset 0 0 0 0.1em #36c;
|
2016-03-08 21:14:12 +00:00
|
|
|
}
|
|
|
|
|
2017-06-23 19:12:45 +00:00
|
|
|
.ve-ui-mwGalleryDialog .oo-ui-fieldsetLayout + .oo-ui-fieldsetLayout,
|
|
|
|
.ve-ui-mwGalleryDialog-remove-button {
|
|
|
|
margin-top: 1em;
|
2017-06-06 14:46:31 +00:00
|
|
|
}
|
|
|
|
|
2016-03-08 21:14:12 +00:00
|
|
|
.ve-ui-mwGalleryDialog-highlighted-image {
|
2017-08-16 20:42:24 +00:00
|
|
|
background-color: #f8f9fa;
|
2016-03-08 21:14:12 +00:00
|
|
|
width: 100%;
|
2016-09-30 16:07:10 +00:00
|
|
|
/* Matches default height in GalleryImageInfoCache */
|
2016-03-08 21:14:12 +00:00
|
|
|
height: 200px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
2017-04-07 00:03:16 +00:00
|
|
|
background-size: contain;
|
2016-03-08 21:14:12 +00:00
|
|
|
}
|
|
|
|
|
2018-10-10 13:09:39 +00:00
|
|
|
.ve-ui-mwGalleryDialog-menuLayout-desktop > .oo-ui-menuLayout-menu {
|
2016-03-08 21:14:12 +00:00
|
|
|
width: 14em;
|
2017-08-16 20:42:24 +00:00
|
|
|
border-right: 1px solid #c8ccd1;
|
2016-03-08 21:14:12 +00:00
|
|
|
}
|
|
|
|
|
2018-10-10 13:09:39 +00:00
|
|
|
.ve-ui-mwGalleryDialog-menuLayout-mobile > .oo-ui-menuLayout-menu {
|
|
|
|
height: calc( 102px + 2em );
|
|
|
|
border-bottom: 1px solid #c8ccd1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-menuLayout-desktop > .oo-ui-menuLayout-content {
|
2016-03-08 21:14:12 +00:00
|
|
|
left: 14em;
|
|
|
|
right: 14em;
|
|
|
|
}
|
2016-11-30 21:48:37 +00:00
|
|
|
|
2018-10-10 13:09:39 +00:00
|
|
|
.ve-ui-mwGalleryDialog-menuLayout-mobile > .oo-ui-menuLayout-content {
|
|
|
|
top: calc( 102px + 2em );
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-content {
|
2016-11-30 21:48:37 +00:00
|
|
|
bottom: 5em;
|
|
|
|
}
|
|
|
|
|
2018-10-10 13:09:39 +00:00
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout-mobile > .oo-ui-menuLayout-content {
|
|
|
|
right: 4em;
|
|
|
|
border-right: 1px solid #eaecf0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout-mobile > .oo-ui-menuLayout-content > .oo-ui-panelLayout-scrollable {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
2018-10-04 12:36:45 +00:00
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout > .oo-ui-menuLayout-menu {
|
2018-10-10 13:09:39 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-menu {
|
|
|
|
box-shadow: 0 -1px 0 0 rgba( 0, 0, 0, 0.05 );
|
2016-11-30 21:48:37 +00:00
|
|
|
height: 5em;
|
2017-08-16 20:42:24 +00:00
|
|
|
border-top: 1px solid #eaecf0;
|
2018-10-10 13:09:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout-mobile > .oo-ui-menuLayout-menu {
|
|
|
|
box-shadow: -1px 0 0 0 rgba( 0, 0, 0, 0.05 );
|
|
|
|
line-height: 102px;
|
|
|
|
width: 4em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout-mobile > .oo-ui-menuLayout-menu > .oo-ui-panelLayout-padded {
|
|
|
|
padding: 1em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout-mobile > .oo-ui-menuLayout-menu .oo-ui-buttonElement-frameless.oo-ui-iconElement:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwGalleryDialog-imageListMenuLayout .oo-ui-draggableGroupElement-horizontal {
|
|
|
|
white-space: nowrap;
|
|
|
|
line-height: 0;
|
2016-11-30 21:48:37 +00:00
|
|
|
}
|