Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ui/styles/dialogs/ve.ui.MWGalleryDialog.less

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