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": { "ResourceModules": {
"ext.interwiki.specialpage": { "ext.interwiki.specialpage": {
"styles": "interwiki.css" "styles": "interwiki.less"
} }
}, },
"ResourceFileModulePaths": { "ResourceFileModulePaths": {

View file

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