Due to the pervasive nature of font-size values in CSS (being defined in relative em's and used for values other than text, such as spacing etc.) there is a risk that changing font sizes in Vector 2022 could affect legacy Vector.
The chart below illustrates the interdependence between legacy and modern Vector CSS
tldr; That big thing in the middle called variables.less should be gone.
We should separate the CSS for legacy & Vector 2022 as much as possible. To do this, we need to:
- Remove the vector/resources/common module and copy the styles over to the skins.vector.styles and skins.vector.styles.legacy modules instead.
- Remove common variables.less file
- Copy the variables into mediawiki.less/vector/mediawiki.skins.variables.less and mediawiki.less/vector-2022/mediawiki.skins.variables.less instead.
There's some room for code optimization here:
- We should determine if mixins still need to be shared between legacy & modern Vector
- We can remove variables that are not used by legacy Vector from it's respective variables file.
A/C
- The Vector/resources/common folder no longer exists.
- There are no visual changes caused by this refactor.
- There are no bytesize increases caused by this refactor.