Use LESS for Special:Interwiki styles

As a preparation for another fix.

Bug: T367124
Change-Id: Ie162f2df9ecedd4a44302602e74bfe9b5c0c57fe
This commit is contained in:
Ebrahim Byagowi 2024-07-01 23:08:46 +03:30 committed by Ebrahim
parent fabdf1d7ae
commit 21d9ceec59
2 changed files with 21 additions and 22 deletions

View file

@ -49,7 +49,7 @@
},
"ResourceModules": {
"ext.interwiki.specialpage": {
"styles": "interwiki.css"
"styles": "interwiki.less"
}
},
"ResourceFileModulePaths": {

View file

@ -1,31 +1,30 @@
/**
* CSS for Special:Interwiki
*/
// Styles for Special:Interwiki
table.mw-interwikitable {
width: 100%;
}
table.mw-interwikitable.intro th {
padding-right: 1.4ex;
vertical-align: top;
}
&.intro th {
padding-right: 1.4ex;
vertical-align: top;
}
table.mw-interwikitable.intro th.mw-align-start {
text-align: left;
}
&.intro th.mw-align-start {
text-align: left;
}
table.mw-interwikitable.intro th.mw-align-end {
text-align: right;
}
&.intro th.mw-align-end {
text-align: right;
}
table.mw-interwikitable.body td.mw-interwikitable-local,
table.mw-interwikitable.body td.mw-interwikitable-trans,
table.mw-interwikitable.body td.mw-interwikitable-modify {
text-align: center;
}
&.body td.mw-interwikitable-local,
&.body td.mw-interwikitable-trans,
&.body td.mw-interwikitable-modify {
text-align: center;
}
table.mw-interwikitable.body td.mw-interwikitable-local-yes {
background: #d5fdf4;
&.body td.mw-interwikitable-local-yes {
background: #d5fdf4;
}
}
/* It's safe enough to assume that URLs are usually LTR. */