| 1 |
/** |
| 2 |
* CSS for WikiEditor |
| 3 |
*/ |
| 4 |
|
| 5 |
/* Hide vanilla MediaWiki's "Editing help" link, as we provide it in the toolbar */ |
| 6 |
.client-js .editButtons { |
| 7 |
.editHelp { |
| 8 |
display: none; |
| 9 |
} |
| 10 |
} |
| 11 |
|
| 12 |
/* stylelint-disable selector-max-id */ |
| 13 |
|
| 14 |
form#editform { |
| 15 |
margin: 0; |
| 16 |
padding: 0; |
| 17 |
} |
| 18 |
|
| 19 |
#wpTextbox1 { |
| 20 |
line-height: 1.5em; |
| 21 |
resize: vertical; |
| 22 |
} |
| 23 |
|
| 24 |
/* Hide the WikiEditor toolbar until its css has loaded */ |
| 25 |
.wikiEditor-ui-toolbar { |
| 26 |
display: none; |
| 27 |
} |
| 28 |
|
| 29 |
/* This disables margin collapse for the children */ |
| 30 |
.client-js #editform::before, |
| 31 |
.client-js #editform::after { |
| 32 |
content: ' '; |
| 33 |
display: table; |
| 34 |
} |
| 35 |
/* Set a margin on the textarea while we load, matching the height, |
| 36 |
* of the wikieditor toolbar to prevent reflow. After the wikieditor ui is loaded, |
| 37 |
* the textarea is wrapped inside wikieditor-ui div and no longer matches */ |
| 38 |
.client-js .mw-editform > #wpTextbox1 { |
| 39 |
/* Toolbar height + padding + bottom border = 26 + 2*3 + 1 */ |
| 40 |
margin-top: 33px; |
| 41 |
} |