Debian Codegraph @

skins/MinervaNeue/skinStyles/mediawiki.action.history.styles.less

raw
1 /* stylelint-disable selector-max-id, no-descending-specificity */
2
3 @import 'mediawiki.skin.variables';
4 @import 'mediawiki.mixins.less';
5 @import '../minerva.less/minerva.variables.less';
6 @import '../minerva.less/minerva.mixins.less';
7
8 /* Simplify default version */
9 .mw-mf-amc-disabled {
10 /** compare feature not available, T353401 */
11 #mw-history-compare input,
12 .mw-history-compareselectedversions,
13 /* Header shows date, so this is superfluous. */
14 &.action-history .mw-changeslist-date,
15 /* current link is hidden as previous link spans entire row. */
16 .mw-history-histlinks-current,
17 /* tools are hidden for historic reasons. Feel free to reconsider. */
18 &.action-history .mw-tag-markers,
19 /* tools are hidden for historic reasons. Feel free to reconsider. */
20 .mw-usertoollinks,
21 /* Hidden for historic reasons. Feel free to reconsider. */
22 .mw-history-revisionactions,
23 /* tools are hidden for historic reasons. Feel free to reconsider. */
24 .mw-pager-tools {
25 display: none;
26 }
27
28 .mw-changeslist-time {
29 display: block !important;
30 }
31
32 .mw-history-histlinks span {
33 &::before,
34 &::after {
35 content: none !important;
36 }
37 }
38
39 &.action-history #pagehistory li {
40 .history-user a {
41 color: @color-subtle;
42
43 bdi {
44 word-break: break-word;
45 }
46 }
47 }
48
49 .mw-history-histlinks-previous {
50 .changeslist-make-row-linkable();
51 }
52 }
53
54 .action-history {
55 #mw-content-text > form {
56 margin: 0;
57 }
58
59 // the margin value used to create a "faux" column after the
60 // radio buttons.
61 @revision-selectors-width: 50px;
62
63 // form element wrapping history page content. Overrides #mw-content-text > form
64 // for tablet widths.
65 #mw-history-compare {
66 width: 100%;
67 max-width: 100%;
68 }
69
70 // The large "Compare selected revisions" button container
71 .mw-history-compareselectedversions {
72 background: @background-color-base;
73 .position-sticky();
74 top: 0;
75 z-index: @z-index-above-content;
76
77 // "Compare selected revisions" button
78 .mw-history-compareselectedversions-button {
79 width: 100%;
80 max-width: 100%;
81 -webkit-appearance: unset;
82 font-weight: bold;
83 border-radius: @border-radius-base;
84 margin: 10px 0;
85 }
86
87 .mw-history-revisionactions {
88 margin-bottom: 2%;
89 white-space: pre-wrap;
90 }
91
92 // Admin specific "change visibility of selected revisions" buttons.
93 .mw-checkbox-toggle-controls {
94 display: none;
95 }
96
97 // Second large "Compare selected revisions" button container at bottom of page
98 & ~ .mw-history-compareselectedversions {
99 // hide second "Compare selected revisions" button near bottom
100 .mw-history-compareselectedversions-button {
101 display: none;
102 }
103
104 // show second "Change visibility of selected revisions" button near bottom
105 .mw-history-revisionactions,
106 .mw-checkbox-toggle-controls {
107 display: block;
108 }
109 }
110 }
111
112 .mw-thanks-thank-link {
113 margin-right: 1em;
114 }
115
116 .jquery-confirmable-text {
117 display: flex;
118 align-items: center;
119 padding-right: 8px;
120 }
121
122 // "Change visibility of selected revisions" button (for admins only)
123 .mw-history-revisiondelete-button {
124 background-color: @background-color-interactive-subtle;
125 margin-bottom: 1em;
126 }
127
128 #pagehistory {
129 margin-bottom: 24px;
130 padding: 0;
131
132 li {
133 .changeslist-row();
134 box-sizing: border-box;
135 position: relative;
136 min-height: inherit;
137 padding: 12px 0 10px 60px;
138 }
139
140 li::after {
141 .clearfix();
142 }
143
144 .mw-history-histlinks {
145 float: right;
146 }
147
148 // Diff radio buttons, admin revision-delete checkbox.
149 input[ type='radio' ],
150 input[ type='checkbox' ] {
151 // Align checkboxes with text.
152 top: 5px;
153 }
154
155 input[ type='radio' ] {
156 position: absolute;
157 top: 16px;
158 }
159
160 input[ name='oldid' ] {
161 left: 8px;
162 }
163
164 input[ name='diff' ] {
165 left: 32px;
166 }
167
168 // checkbox appears slightly smaller than radio buttons,
169 // moving down 6px to vertically center.
170 input[ type='checkbox' ] {
171 position: absolute;
172 top: 46px;
173 left: 32px;
174 }
175 }
176
177 .mw-diff-bytes,
178 .mw-changeslist-date {
179 display: block;
180 }
181
182 // removes space between the .mw-diff-bytes and comments.
183 .comment {
184 float: left;
185 width: 100%;
186 margin-bottom: 6px;
187 }
188
189 // hide page instructions, article size, double dot separator, thank link
190 .mw-history-legend,
191 .history-size.mw-diff-bytes,
192 .mw-changeslist-separator {
193 display: none;
194 }
195
196 abbr {
197 background: @background-color-interactive;
198 border-radius: 2px;
199 font-size: 0.9em;
200 font-weight: bold;
201 padding: 0 6px 1px;
202 }
203
204 // Disable the parentheseses around the undo and rollback link.
205 .mw-changeslist-links:not( .mw-usertoollinks ):not( .mw-history-histlinks ) {
206 & > span::after,
207 & > span::before {
208 content: '';
209 }
210 }
211
212 .mw-tag-markers {
213 // Disable the core margins of tags.
214 margin: 0;
215 // places the tags on the same line as the float-right undo button.
216 display: inline;
217 }
218
219 .history-user {
220 // (hack) - the history page injects unstyleable whitespace. to keep user aligned with other elements
221 // it most be moved to the left.
222 .mw-mf-amc-enabled & {
223 margin-left: -5px;
224 }
225 }
226
227 .mw-history-undo {
228 float: right;
229 // Push the tags down to bottom so undo and tags do not overlay.
230 padding-bottom: 10px;
231
232 a {
233 // Increase touch area of undo button.
234 padding: 5px 8px;
235 }
236 }
237 }