| 1 |
/*! |
| 2 |
* VisualEditor MediaWiki UserInterface MWSaveDialog 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-mwSaveDialog { |
| 10 |
&-summaryLabel { |
| 11 |
padding: 0.25em 0; |
| 12 |
} |
| 13 |
|
| 14 |
&-summary { |
| 15 |
width: 100%; |
| 16 |
max-width: none; |
| 17 |
background-color: @background-color-base; |
| 18 |
|
| 19 |
textarea { |
| 20 |
height: 4em; |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
&-foot { |
| 25 |
margin: 0.5em 0; |
| 26 |
} |
| 27 |
|
| 28 |
&-options { |
| 29 |
position: relative; |
| 30 |
background-color: @background-color-neutral-subtle; |
| 31 |
border: 1px solid @border-color-subtle; |
| 32 |
border-top: 0; |
| 33 |
display: none; |
| 34 |
|
| 35 |
.ve-ui-mwSaveDialog-withOptions & { |
| 36 |
display: block; |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
&-checkboxes { |
| 41 |
margin-right: 3.25em; /* Hack to prevent overlap on edit summary count */ |
| 42 |
padding: 0.7857em 0.7857em 0 0.7857em; |
| 43 |
|
| 44 |
> .oo-ui-fieldLayout { |
| 45 |
display: inline-block; |
| 46 |
margin: 0 1.5em 0.5em 0; |
| 47 |
vertical-align: middle; |
| 48 |
|
| 49 |
&:last-child { |
| 50 |
margin-right: 0; |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
&-withExpiry > .ve-ui-mwSaveDialog-field-wpMinoredit { |
| 55 |
display: block; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
&-editSummary-count { |
| 60 |
position: absolute; |
| 61 |
right: 0; |
| 62 |
top: 0; |
| 63 |
bottom: 0; |
| 64 |
border-left: 1px solid @border-color-muted; |
| 65 |
line-height: 3em; |
| 66 |
padding: 0 1em; |
| 67 |
color: @color-subtle; |
| 68 |
|
| 69 |
&:empty { |
| 70 |
visibility: hidden; |
| 71 |
} |
| 72 |
} |
| 73 |
|
| 74 |
&-license { |
| 75 |
font-size: 0.9em; |
| 76 |
line-height: 1.4em; |
| 77 |
padding: 0; |
| 78 |
margin: 0; |
| 79 |
color: @color-subtle; |
| 80 |
} |
| 81 |
|
| 82 |
&-messages { |
| 83 |
/* Make a border that spans the whole width of the dialog */ |
| 84 |
margin: 1em -1.14285714em; |
| 85 |
padding: 0.5em 1.14285714em; |
| 86 |
border: 1px solid rgba( 0, 0, 0, 0.2 ); |
| 87 |
border-width: 1px 0; |
| 88 |
|
| 89 |
> .oo-ui-messageWidget { |
| 90 |
font-weight: normal; |
| 91 |
} |
| 92 |
|
| 93 |
&:empty { |
| 94 |
display: none; |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
&-reviewMode { |
| 99 |
float: right; |
| 100 |
margin: 0 0 0 1em; |
| 101 |
} |
| 102 |
|
| 103 |
&-viewer { |
| 104 |
margin-top: 1em; |
| 105 |
clear: both; |
| 106 |
} |
| 107 |
|
| 108 |
&-no-changes { |
| 109 |
color: @color-disabled; |
| 110 |
font-style: italic; |
| 111 |
} |
| 112 |
|
| 113 |
&-preview .mw-body { |
| 114 |
/* We use mw-body for realistic padding, but we don't need border/margin */ |
| 115 |
border: 0; |
| 116 |
/* Override specificity in Monobook */ |
| 117 |
/* stylelint-disable-next-line declaration-no-important */ |
| 118 |
margin: 0 !important; |
| 119 |
/* Override grid layout in Vector-2022 */ |
| 120 |
display: block; |
| 121 |
} |
| 122 |
} |