Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Commit 881ab05

Browse files
edg2sMatmaRex
authored andcommitted
Fix table section header positioning on mobile
1 parent abe4cb3 commit 881ab05

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

css/common.css

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,18 @@ summary > .oo-ui-labelElement-label:not( .oo-ui-inline-help ) {
211211
display: none;
212212
}
213213

214+
.wikis .headerRow,
215+
.wikis .wikiSection {
216+
background: #eaecf0;
217+
position: sticky;
218+
top: 5em;
219+
}
220+
221+
.wikis .wikiSection {
222+
text-align: left;
223+
top: 8.71em;
224+
}
225+
214226
.wikis th,
215227
.wikis td {
216228
border: 1px solid #a2a9b1;
@@ -219,13 +231,6 @@ summary > .oo-ui-labelElement-label:not( .oo-ui-inline-help ) {
219231
vertical-align: top;
220232
}
221233

222-
.wikis th {
223-
background: #eaecf0;
224-
position: sticky;
225-
/* Adjust for <header> */
226-
top: calc( 5em - 1px );
227-
}
228-
229234
.wikis th em {
230235
font-weight: normal;
231236
font-size: 90%;
@@ -243,11 +248,6 @@ summary > .oo-ui-labelElement-label:not( .oo-ui-inline-help ) {
243248
background: #fef6e7;
244249
}
245250

246-
.wikis .wikiSection th {
247-
text-align: left;
248-
top: calc( 8.65em - 1px );
249-
}
250-
251251
.wikis .patches,
252252
.wikis .linkedTasks {
253253
overflow: hidden;
@@ -296,7 +296,7 @@ summary > .oo-ui-labelElement-label:not( .oo-ui-inline-help ) {
296296
margin-bottom: 5px;
297297
}
298298

299-
.wikis tr:first-child {
299+
.wikis .headerRow {
300300
display: none;
301301
}
302302

@@ -305,6 +305,10 @@ summary > .oo-ui-labelElement-label:not( .oo-ui-inline-help ) {
305305
display: inline-block;
306306
}
307307

308+
.wikis .wikiSection {
309+
top: 5em;
310+
}
311+
308312
.wikis .patches,
309313
.wikis .linkedTasks {
310314
display: block;

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
}
348348

349349
echo '<table class="wikis">' .
350-
'<tr>' .
350+
'<tr class="headerRow">' .
351351
'<th>Wiki</th>' .
352352
'<th>Patches<br /><em>✓=Merged ✗=Abandoned 🛇=<abbr title="Open patches marked with \'DNM\' or \'DO NOT MERGE\'">Do not merge</abbr></em></th>' .
353353
'<th>Linked tasks<br /><em>✓=Resolved ✗=Declined/Invalid</em></th>' .

0 commit comments

Comments
 (0)