Debian Codegraph @

skins/MinervaNeue/skinStyles/mediawiki.diff.styles.less

raw
1 /* stylelint-disable selector-max-id */
2 @import '../minerva.less/minerva.variables.less';
3
4 // By default a pseudo element is used for skins like Vector. We don't want this on Minerva.
5 .mw-diff-movedpara-right,
6 .mw-diff-movedpara-left,
7 .rtl .mw-diff-movedpara-left,
8 .rtl .mw-diff-movedpara-right {
9 &::after {
10 content: none;
11 }
12 }
13
14 // Will be enhanced with JS
15 .mw-diff-timestamp {
16 display: block;
17 min-height: 20px;
18 }
19
20 .minoredit {
21 margin-right: 8px;
22 background: @background-color-interactive;
23 border-radius: 2px;
24 font-size: 0.9em;
25 padding: 0 6px 1px;
26 }
27
28 @media all and ( max-width: @max-width-breakpoint-mobile ) {
29 //
30 // Navigation links
31 //Reveal the previous and next navigation links
32 //
33 .mw-diff-revision-history-links {
34 display: flex;
35 justify-content: space-between;
36 font-size: 0.9em;
37 margin-top: 8px;
38 }
39
40 .mw-diff-revision-history-link-previous {
41 flex-grow: 1;
42 text-align: start;
43 }
44
45 .mw-diff-revision-history-link-next {
46 flex-grow: 1;
47 text-align: end;
48 }
49
50 //
51 // Diff header
52 //
53 .diff-ntitle {
54 text-align: left;
55
56 > div {
57 padding-bottom: 0.5em;
58 }
59
60 // Special case since #mw-diff-ntitle2 is position fixed.
61 #mw-diff-ntitle3 {
62 padding-top: 0.5em;
63 }
64 }
65
66 .minor-edit {
67 display: block;
68 }
69
70 //
71 // date of edit
72 //
73 .mw-diff-timestamp {
74 color: #72777d;
75 height: 1em;
76 line-height: 1em;
77 display: block;
78 }
79
80 .comment {
81 display: block;
82 }
83
84 //
85 // Diff
86 //
87 .content table.diff {
88 display: block;
89
90 tbody,
91 tr,
92 td {
93 display: block;
94 padding: 0;
95 }
96
97 .diff-otitle {
98 display: none;
99 }
100 }
101
102 //
103 // Sticky User box at bottom of page
104 //
105 #mw-diff-ntitle2 {
106 text-align: left;
107 position: fixed;
108 height: 8em;
109 padding: 1em;
110 background-color: @background-color-interactive-subtle;
111 border-top: 1px solid @border-color-subtle;
112 bottom: 0;
113 left: 0;
114 right: 0;
115 z-index: @z-index-above-content;
116 }
117
118 .mw-diff-tool {
119 bottom: 7em;
120 position: fixed;
121 z-index: @z-index-stacking-2;
122 right: 8px;
123
124 .jquery-confirmable-interface {
125 background-color: @background-color-interactive-subtle;
126 border: @border-subtle;
127 padding: @spacing-50;
128 }
129
130 .jquery-confirmable-element {
131 ~ .jquery-confirmable-interface {
132 display: none;
133 }
134
135 &.hidden {
136 ~ .jquery-confirmable-interface {
137 display: block;
138 }
139 }
140 }
141 }
142
143 .mw-userlink {
144 &::before {
145 content: '';
146 margin-right: 8px;
147 .cdx-mixin-css-icon( @cdx-icon-user-avatar, @color-subtle);
148 }
149
150 &.mw-anonuserlink::before {
151 .cdx-mixin-css-icon( @cdx-icon-user-anonymous, @color-subtle);
152 }
153 }
154
155 .mw-diff-usermetadata {
156 display: block;
157 }
158
159 .mw-diff-userroles {
160 margin-top: 0.7em;
161 }
162
163 .mw-diff-usereditcount {
164 margin-top: 1.2em;
165 display: inline-block;
166
167 span {
168 text-align: center;
169 font-size: 1.85em;
170 color: @color-subtle;
171 display: block;
172 line-height: 20px;
173 }
174 }
175
176 //
177 // Typography
178 //
179
180 .mw-diff-usermetadata,
181 .mw-diff-timestamp {
182 font-size: 0.7em;
183 text-transform: uppercase;
184 }
185
186 //
187 // HIDDEN UI ELEMENTS
188 //
189 // hidden for now to match historic Special:MobileDiff
190 // Sam Walton's team should enable this as needed.
191 .mw-usertoollinks,
192 #mw-diff-ntitle4,
193 .mw-diff-inline-legend,
194 .mw-diff-inline-header,
195 .mw-diffPage-inlineToggle-container,
196 #mw-diff-ntitle5,
197 .mw-diff-edit,
198 .mw-diff-undo,
199 .mw-revdelundel-link {
200 display: none !important;
201 }
202
203 #mw-diff-ntitle1 strong {
204 font-weight: normal;
205
206 > a {
207 padding: 0.5em 0;
208 display: block;
209 line-height: 1.6;
210 }
211 }
212 }
213
214 // Wikitext font size is restored to 100%, as in mediawiki.editfont.styles
215 .diff-addedline,
216 .diff-deletedline,
217 .diff-context,
218 .mw-diff-inline-added,
219 .mw-diff-inline-deleted,
220 .mw-diff-inline-moved,
221 .mw-diff-inline-changed,
222 .mw-diff-inline-context {
223 font-size: 100%;
224 }
225
226 .mw-article-diff {
227 #firstHeading {
228 font-size: 1.5em;
229 }
230 }
231
232 // Bug: T357213 - always show patrol link. Previews are hidden by default
233 // on mobile, but we trust patrollers to only patrol diffs that do not require
234 // viewing the preview.
235 .patrollink.patrollink-diffonly {
236 display: block;
237 }
238 /* stylelint-enable selector-max-id */