Problem
In Vector 2022, many elements in the sidebar combine both margin and padding to create spacing. For the most part, this is unnecessary leads to confusion because the value of both properties has to be combined to determine the spacing or size of elements.
The following margin+padding combinations can be removed in favour of one or the other.
menu header | the ToC width | the language box margins | area inside language box |
special bottom margin | padding + margin creating menu width | menu sections with padding+margin | |
With regards to margin and padding creating the width of the sidebar, those properties should be removed and with width should be determined by the grid area instead. The space between that grid area and the content should be handled by the grid-gap property.