File: ve.ui.MWSaveDialog.less

package info (click to toggle)
mediawiki 1%3A1.43.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 417,464 kB
  • sloc: php: 1,062,949; javascript: 664,290; sql: 9,714; python: 5,458; xml: 3,489; sh: 1,131; makefile: 64
file content (122 lines) | stat: -rw-r--r-- 2,147 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/*!
 * VisualEditor MediaWiki UserInterface MWSaveDialog styles.
 *
 * @copyright See AUTHORS.txt
 * @license The MIT License (MIT); see LICENSE.txt
 */
@import 'mediawiki.skin.variables.less';

.ve-ui-mwSaveDialog {
	&-summaryLabel {
		padding: 0.25em 0;
	}

	&-summary {
		width: 100%;
		max-width: none;
		background-color: @background-color-base;

		textarea {
			height: 4em;
		}
	}

	&-foot {
		margin: 0.5em 0;
	}

	&-options {
		position: relative;
		background-color: @background-color-neutral-subtle;
		border: 1px solid @border-color-subtle;
		border-top: 0;
		display: none;

		.ve-ui-mwSaveDialog-withOptions & {
			display: block;
		}
	}

	&-checkboxes {
		margin-right: 3.25em; /* Hack to prevent overlap on edit summary count */
		padding: 0.7857em 0.7857em 0 0.7857em;

		> .oo-ui-fieldLayout {
			display: inline-block;
			margin: 0 1.5em 0.5em 0;
			vertical-align: middle;

			&:last-child {
				margin-right: 0;
			}
		}

		&-withExpiry > .ve-ui-mwSaveDialog-field-wpMinoredit {
			display: block;
		}
	}

	&-editSummary-count {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		border-left: 1px solid @border-color-muted;
		line-height: 3em;
		padding: 0 1em;
		color: @color-subtle;

		&:empty {
			visibility: hidden;
		}
	}

	&-license {
		font-size: 0.9em;
		line-height: 1.4em;
		padding: 0;
		margin: 0;
		color: @color-subtle;
	}

	&-messages {
		/* Make a border that spans the whole width of the dialog */
		margin: 1em -1.14285714em;
		padding: 0.5em 1.14285714em;
		border: 1px solid rgba( 0, 0, 0, 0.2 );
		border-width: 1px 0;

		> .oo-ui-messageWidget {
			font-weight: normal;
		}

		&:empty {
			display: none;
		}
	}

	&-reviewMode {
		float: right;
		margin: 0 0 0 1em;
	}

	&-viewer {
		margin-top: 1em;
		clear: both;
	}

	&-no-changes {
		color: @color-disabled;
		font-style: italic;
	}

	&-preview .mw-body {
		/* We use mw-body for realistic padding, but we don't need border/margin */
		border: 0;
		/* Override specificity in Monobook */
		/* stylelint-disable-next-line declaration-no-important */
		margin: 0 !important;
		/* Override grid layout in Vector-2022 */
		display: block;
	}
}