/*! * VisualEditor MediaWiki UserInterface MWGalleryDialog styles. * * @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt * @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%; border: 1px solid #c8ccd1; 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 ); /* Override default padding of DraggableElement */ /* TODO: Remove once T168745 is resolved */ padding: 0; } .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; } .ve-ui-mwGalleryDialog .ve-ui-mwGalleryDialog-image-container-highlighted { border-color: #36c; box-shadow: inset 0 0 0 0.1em #36c; } .ve-ui-mwGalleryDialog .oo-ui-fieldsetLayout + .oo-ui-fieldsetLayout, .ve-ui-mwGalleryDialog-remove-button { margin-top: 1em; } .ve-ui-mwGalleryDialog-highlighted-image { background-color: #f8f9fa; width: 100%; /* Matches default height in GalleryImageInfoCache */ height: 200px; background-repeat: no-repeat; background-position: 50% 50%; background-size: contain; } .ve-ui-mwGalleryDialog-menuLayout-desktop > .oo-ui-menuLayout-menu { width: 14em; border-right: 1px solid #c8ccd1; } .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 { left: 14em; right: 14em; } .ve-ui-mwGalleryDialog-menuLayout-mobile > .oo-ui-menuLayout-content { top: calc( 102px + 2em ); } .ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-content { bottom: 5em; } .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; } .ve-ui-mwGalleryDialog-imageListMenuLayout > .oo-ui-menuLayout-menu { text-align: center; } .ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-menu { box-shadow: 0 -1px 0 0 rgba( 0, 0, 0, 0.05 ); height: 5em; border-top: 1px solid #eaecf0; } .ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-menu .oo-ui-panelLayout-padded { /* Center the button vertically */ padding: 0 12px; line-height: 5em; } .ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-menu .oo-ui-panelLayout-padded .oo-ui-buttonElement-button { white-space: normal; } .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; }