Debian Codegraph @

extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.less

raw
1 @import 'mediawiki.mixins';
2 @import 'mediawiki.skin.variables.less';
3
4 /**
5 * CSS for WikiEditor Toolbar jQuery plugin
6 */
7
8 .wikiEditor-ui-toolbar {
9 position: relative;
10 display: block;
11 z-index: 7;
12
13 .empty {
14 display: none;
15 }
16
17 /* Expandable Sections */
18 .sections {
19 float: left;
20 width: 100%;
21 clear: both;
22
23 .section {
24 float: left;
25 width: 100%;
26 border-top: @border-subtle;
27 }
28
29 .section-hidden {
30 display: none;
31 }
32 }
33
34 /* Top Level Containers */
35 /* Tabs */
36 .tabs {
37 float: left;
38 height: 100%;
39 list-style: none;
40 margin: 0 3px;
41 min-height: 32px;
42 position: relative;
43
44 span.tab {
45 position: relative;
46 float: left;
47 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
48 line-height: 32px;
49
50 a {
51 color: @color-progressive;
52 cursor: pointer;
53 display: block;
54 height: 32px;
55 padding-left: 18px;
56 padding-right: 12px;
57
58 &::before {
59 content: '';
60 background: url( images/toolbar/arrow-down.svg ) center no-repeat;
61 display: block;
62 position: absolute;
63 top: 0;
64 left: 0;
65 width: 16px;
66 height: 32px;
67 transition: transform 100ms;
68
69 body.ltr & {
70 transform: rotate( -90deg );
71 }
72
73 body.rtl & {
74 transform: rotate( 90deg );
75 }
76 }
77 }
78
79 a:visited {
80 color: @color-progressive;
81 }
82
83 a.current,
84 a.current:visited {
85 color: @color-base;
86
87 &:hover {
88 text-decoration: none;
89 }
90
91 &::before {
92 body.ltr &,
93 body.rtl & {
94 transform: rotate( 0 );
95 }
96 }
97 }
98 }
99 }
100
101 /* Top Level Containers */
102 .tabs,
103 .section-main,
104 .section-secondary {
105 position: relative;
106 float: left;
107 min-height: 32px;
108 height: 100%;
109 }
110
111 .section-secondary {
112 float: right;
113
114 .group {
115 padding-right: 0;
116 margin-left: 6px;
117 border-left: @border-subtle;
118 }
119 }
120
121 /* Groups */
122 .group {
123 float: left;
124 display: flex;
125 min-height: 26px;
126 padding-right: 6px;
127 border-right: @border-subtle;
128 margin: 3px;
129
130 /* Toolbar */
131 .label {
132 float: left;
133 border: 0;
134 height: 22px;
135 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
136 line-height: 22px;
137 margin: 2px 8px 2px 5px;
138 color: @color-subtle;
139 cursor: default;
140 }
141
142 img.tool {
143 float: left;
144 border: 0;
145 height: 22px;
146 width: 22px;
147 padding: 2px;
148 cursor: pointer;
149 }
150
151 .tool-select {
152 float: left;
153 margin: 2px 0 2px 2px;
154 height: 22px;
155 cursor: pointer;
156 border: @border-subtle;
157 padding: 0;
158 background-color: @background-color-base;
159
160 .label {
161 position: relative;
162 padding: 0 26px 0 4px;
163 margin: 0;
164 cursor: pointer;
165 text-decoration: none;
166 color: @color-base;
167
168 &::after {
169 content: '';
170 background: url( images/toolbar/arrow-down.svg ) center no-repeat;
171 display: block;
172 position: absolute;
173 top: 0;
174 right: 4px;
175 width: 16px;
176 height: 22px;
177 }
178 }
179
180 &.options-shown .label::after {
181 transform: rotate( 180deg );
182 }
183
184 .options {
185 position: absolute;
186 display: none;
187 margin-left: -1px;
188 margin-top: 22px;
189 border: @border-subtle;
190 background-color: @background-color-base;
191 z-index: 1;
192
193 .option {
194 display: block;
195 padding: 0.5em;
196 text-decoration: none;
197 color: @color-base;
198 white-space: nowrap;
199
200 &:hover {
201 background-color: #eaf3ff;
202 }
203
204 &[ rel='heading-2' ] {
205 font-size: 150%;
206 font-weight: normal;
207 }
208
209 &[ rel='heading-3' ] {
210 font-size: 132%;
211 font-weight: normal;
212 }
213
214 &[ rel='heading-4' ] {
215 font-size: 116%;
216 font-weight: normal;
217 }
218
219 &[ rel='heading-5' ] {
220 font-size: 100%;
221 font-weight: bold;
222 }
223 }
224 }
225
226 &:hover .options,
227 &.options-shown .options {
228 display: block;
229 }
230 }
231 }
232
233 .group-search {
234 float: right;
235 border-right: 0;
236 border-left: @border-subtle;
237 }
238
239 /* Booklet */
240 .booklet {
241 > .index {
242 float: left;
243 width: 20%;
244 height: 125px;
245 overflow: auto;
246 resize: horizontal;
247
248 > div {
249 padding: 4px 4px 4px 6px;
250 cursor: pointer;
251 }
252
253 .wikiEditor-character-highlighted {
254 background-color: rgba( 41, 98, 204, 0.1 );
255 color: @color-base;
256 }
257 }
258
259 .pages {
260 height: 125px;
261 overflow: auto;
262 }
263 }
264
265 /* Help Pages */
266 .page-table {
267 padding-left: 5px;
268 padding-right: 5px;
269
270 table {
271 background: none;
272 border-collapse: collapse;
273 width: 100%;
274 }
275
276 th {
277 color: @color-subtle;
278 }
279
280 td {
281 color: @color-base;
282 border-top: @border-subtle;
283 }
284
285 th,
286 td {
287 margin: 0;
288 padding: 5px;
289 text-align: left;
290 }
291 }
292
293 .section-help {
294 .page-table {
295 .cell {
296 vertical-align: top;
297 }
298
299 .cell-syntax {
300 font-family: monospace, 'Courier';
301 }
302
303 .cell-syntax,
304 .cell-result {
305 width: 40%;
306 }
307
308 .cell-description {
309 width: 20%;
310 }
311
312 /* T33649 */
313 .table-link {
314 .cell-syntax,
315 span.pre-wrap {
316 white-space: pre;
317 }
318 }
319 }
320
321 .cell-result {
322 h2,
323 h3,
324 h4,
325 h5 {
326 margin-bottom: 0;
327 margin-top: 0;
328 padding-top: 0;
329 }
330 }
331 }
332
333 /* Characters Pages */
334 .page-characters {
335 padding-bottom: 5px;
336
337 div {
338 span {
339 border: @border-subtle;
340 padding: 5px 8px;
341 margin-left: 5px;
342 margin-top: 5px;
343 height: 1em;
344 display: inline-block;
345 color: @color-base;
346 text-decoration: none;
347 cursor: pointer;
348 font-family: monospace, 'Courier';
349 font-size: 1.25em;
350 line-height: 1;
351
352 &:hover {
353 background-color: @background-color-base;
354 text-decoration: none;
355 border-color: @border-color-interactive;
356 }
357 }
358
359 .wikiEditor-character-highlighted {
360 background-color: #7db1c5;
361 color: @color-base;
362 }
363 }
364
365 div[ dir='rtl' ] span {
366 /* @noflip */
367 direction: rtl;
368 }
369 }
370 }
371
372 .tool-button {
373 background-position: 50% 50%;
374 background-size: 22px;
375 background-repeat: no-repeat;
376 vertical-align: middle;
377 width: 24px;
378 height: 24px;
379 text-indent: -9999px;
380 cursor: pointer;
381 overflow: hidden;
382 }
383
384 /* OOUI buttons */
385 .tool.oo-ui-buttonElement-frameless.oo-ui-iconElement {
386 margin: 0;
387 }
388
389 .ui-widget {
390 table {
391 td.wikieditor-toolbar-table-preview-wrapper {
392 background: @background-color-neutral;
393 padding: 10px;
394
395 span {
396 padding: 4px 6px 0;
397 display: block;
398 }
399 }
400
401 .wikieditor-toolbar-table-preview-frame {
402 width: 340px;
403 background: @background-color-base;
404 padding: 10px;
405 overflow: hidden;
406 display: block;
407 position: relative;
408 }
409
410 .wikieditor-toolbar-table-preview-content {
411 width: 375px;
412 display: block;
413 }
414
415 .wikieditor-toolbar-table-preview {
416 width: 340px;
417 }
418 }
419 }