1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
/*!
* VisualEditor MediaWiki UserInterface MWGalleryDialog styles.
*
* @copyright See AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
@import 'mediawiki.skin.variables.less';
.ve-ui-mwGalleryDialog {
&-image-container {
height: 100px;
background-repeat: no-repeat;
background-position: 50% 50%;
border: @border-subtle;
cursor: pointer;
background-size: contain;
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;
&-desktop {
width: 100%;
margin-bottom: 0.5em;
}
&-mobile {
width: 100px;
margin-right: 0.5em;
}
&-highlighted {
border-color: @border-color-progressive;
box-shadow: inset 0 0 0 0.1em @color-progressive;
&-image {
background-color: @background-color-neutral-subtle;
width: 100%;
/* Matches default height in GalleryImageInfoCache */
height: 200px;
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: contain;
}
}
}
.oo-ui-fieldsetLayout + .oo-ui-fieldsetLayout,
&-remove-button {
margin-top: 1em;
}
&-menuLayout-desktop {
> .oo-ui-menuLayout-menu {
width: 14em;
border-right: 1px solid @border-color-subtle;
}
> .oo-ui-menuLayout-content {
left: 14em;
right: 14em;
}
}
&-menuLayout-mobile {
> .oo-ui-menuLayout-menu {
height: calc( 102px + 2em );
border-bottom: 1px solid @border-color-subtle;
}
> .oo-ui-menuLayout-content {
top: calc( 102px + 2em );
}
}
&-imageListMenuLayout {
> .oo-ui-menuLayout-menu {
text-align: center;
}
.oo-ui-draggableGroupElement-horizontal {
white-space: nowrap;
line-height: 0;
}
&-desktop {
> .oo-ui-menuLayout-content {
bottom: 5em;
}
> .oo-ui-menuLayout-menu {
box-shadow: 0 -1px 0 0 rgba( 0, 0, 0, 0.05 );
height: 5em;
border-top: 1px solid @background-color-neutral;
.oo-ui-panelLayout-padded {
/* Center the button vertically */
padding: 0 12px;
line-height: 5em;
.oo-ui-buttonElement-button {
white-space: normal;
}
}
}
}
&-mobile {
> .oo-ui-menuLayout-content {
right: 4em;
border-right: 1px solid @border-color-muted;
> .oo-ui-panelLayout-scrollable {
overflow-y: hidden;
}
}
> .oo-ui-menuLayout-menu {
box-shadow: -1px 0 0 0 rgba( 0, 0, 0, 0.05 );
/* stylelint-disable-next-line declaration-property-unit-disallowed-list */
line-height: 102px;
width: 4em;
> .oo-ui-panelLayout-padded {
padding: 1em 0;
}
.oo-ui-buttonElement-frameless.oo-ui-iconElement:first-child {
margin-left: 0;
}
}
}
}
}
|