mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +00:00
refactor(core): ♻️ re-implement VE action icon
This commit is contained in:
parent
9a403ee44a
commit
a81bf1fc16
|
@ -417,10 +417,7 @@ class SkinHooks implements
|
||||||
'edit' => 'edit',
|
'edit' => 'edit',
|
||||||
'view-foreign' => 'linkExternal',
|
'view-foreign' => 'linkExternal',
|
||||||
// Extension:VisualEditor
|
// Extension:VisualEditor
|
||||||
// For some reason the icon span element keeps getting removed
|
've-edit' => 'edit',
|
||||||
// So we are adding this the legacy way
|
|
||||||
// Bug: T323188
|
|
||||||
// 've-edit' => 'edit',
|
|
||||||
// Extension:DiscussionTools
|
// Extension:DiscussionTools
|
||||||
'addsection' => 'speechBubbleAdd'
|
'addsection' => 'speechBubbleAdd'
|
||||||
];
|
];
|
||||||
|
|
|
@ -171,7 +171,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> a,
|
|
||||||
.citizen-ui-icon {
|
.citizen-ui-icon {
|
||||||
&::before {
|
&::before {
|
||||||
filter: invert( 1 );
|
filter: invert( 1 );
|
||||||
|
@ -184,18 +183,6 @@
|
||||||
// VE styles shouldn't be core but it is just a few lines :/
|
// VE styles shouldn't be core but it is just a few lines :/
|
||||||
#ca-ve-edit {
|
#ca-ve-edit {
|
||||||
order: 98; // Before source edit
|
order: 98; // Before source edit
|
||||||
|
|
||||||
> a {
|
|
||||||
// See SkinHooks.php for why VE is here
|
|
||||||
&::before {
|
|
||||||
width: var( --size-icon );
|
|
||||||
height: var( --size-icon );
|
|
||||||
content: '';
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
background-size: var( --size-icon );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ca-edit {
|
#ca-edit {
|
||||||
|
|
|
@ -19,6 +19,11 @@
|
||||||
"Disabled": [
|
"Disabled": [
|
||||||
"citizen"
|
"citizen"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"VisualEditor": {
|
||||||
|
"IconSkins": [
|
||||||
|
"citizen"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ValidSkinNames": {
|
"ValidSkinNames": {
|
||||||
|
@ -277,8 +282,7 @@
|
||||||
"selector": "{name}",
|
"selector": "{name}",
|
||||||
"defaultColor": "#000",
|
"defaultColor": "#000",
|
||||||
"images": {
|
"images": {
|
||||||
".citizen-toc__top:before": "resources/skins.citizen.icons/backToTop.svg",
|
".citizen-toc__top:before": "resources/skins.citizen.icons/backToTop.svg"
|
||||||
"#ca-ve-edit > a:before": "resources/skins.citizen.icons/wmui/edit.svg"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skins.citizen.icons.wmui": {
|
"skins.citizen.icons.wmui": {
|
||||||
|
|
Loading…
Reference in a new issue