Debian Codegraph @

resources/src/mediawiki.action/mediawiki.action.edit.styles.less

raw
1 /*!
2 * Styles for elements of the editing form.
3 */
4 @import 'mediawiki.skin.variables.less';
5
6 /* stylelint-disable selector-class-pattern */
7
8 #mw-sitecsspreview,
9 #mw-sitejspreview,
10 #mw-usercsspreview,
11 #mw-userjspreview {
12 direction: ltr;
13 unicode-bidi: embed;
14 }
15
16 /* Prevent editing textarea from jumping when toolbar is loaded */
17 #toolbar {
18 height: 22px;
19 }
20
21 /* Stop floats from intruding into edit area in previews */
22 #editform,
23 #toolbar,
24 #wpTextbox1 {
25 clear: both;
26 }
27
28 /*
29 * Add a bit of margin space between the preview and the toolbar.
30 * This replaces the ugly <p><br /></p> we used to insert into the page source
31 */
32 .previewnote,
33 #wikiPreview.ontop {
34 margin-bottom: 1em;
35 }
36
37 .mw-editform {
38 /* General layout */
39 #wpTextbox1 {
40 margin: 0;
41 display: block;
42 /* Ensure the textarea is not higher than browser's viewport on small screens */
43 max-height: 100vh;
44 /* But don't let it collapse into nothingness on really tiny screens */
45 min-height: 5em;
46 }
47
48 /* Adjustments to edit form elements */
49 #editpage-copywarn {
50 font-size: 0.9em;
51 line-height: 1.26;
52 }
53
54 #wpSummaryWidget {
55 display: block;
56 margin-bottom: 1em;
57 }
58
59 #wpSummaryLabel {
60 margin: 0;
61 }
62
63 #wpSummaryWidget,
64 #wpSummaryLabel .oo-ui-fieldLayout-header {
65 max-width: none;
66 }
67
68 .editCheckboxes .oo-ui-fieldLayout {
69 margin-right: 1em;
70 }
71
72 .editHelp {
73 margin-left: 0.5em;
74 vertical-align: middle;
75
76 a {
77 font-weight: bold;
78 }
79 }
80
81 .editOptions {
82 border-radius: 0 0 @border-radius-base @border-radius-base;
83 }
84
85 .editButtons {
86 margin-top: 0.5em;
87 }
88
89 .cancelLink,
90 .editHelp {
91 display: inline-block;
92 vertical-align: middle;
93 }
94
95 /* T188737 */
96 .templatesUsed .mw-redirect {
97 font-style: italic;
98 }
99 }
100
101 .editOptions {
102 background-color: @background-color-neutral;
103 color: @color-base;
104 border: @border-subtle;
105 border-top: 0;
106 padding: 1em 1em 1.5em 1em;
107 margin-bottom: 2em;
108 }