Merge "Visual enhancements next: Fix alignments of icons"

This commit is contained in:
jenkins-bot 2022-10-05 02:24:16 +00:00 committed by Gerrit Code Review
commit 142aa4abcd
4 changed files with 17 additions and 3 deletions

View File

@ -8,6 +8,8 @@
background: url( ../common/images/arrow-down.svg ) 100% 50% no-repeat;
width: unit( 16 / @font-size-tabs / @font-size-browser, em );
height: unit( 16 / @font-size-tabs / @font-size-browser, em );
// https://phabricator.wikimedia.org/T319070#8284272
margin-left: -1px;
}
.mixin-vector-dropdown-menu-item() {

View File

@ -85,9 +85,9 @@
.mw-list-item {
.mw-ui-icon {
// Align small icons with the bottom of the tabs.
// Height of tab is 41px, and small icon is 36px,
// With 1px border, 41 - 36 + 1;
margin: 4px 0 0 0;
// Height of tab is 38px, and small icon is 32px,
// With 2px border, 38 - 32 + 2
margin: 8px 0 0 0;
}
}
}

View File

@ -42,6 +42,10 @@
&-context-bar {
display: flex;
align-items: center;
.vector-feature-visual-enhancement-next-enabled & {
column-gap: 8px;
}
}
&-start {

View File

@ -67,9 +67,17 @@
* Horizontal links menu - logged in and logged out.
*/
.vector-user-menu-overflow {
.vector-feature-visual-enhancement-next-enabled & {
margin-right: 8px;
}
.vector-menu-content-list {
display: flex;
align-items: center;
.vector-feature-visual-enhancement-next-enabled & {
column-gap: 8px;
}
}
// Add margin to links that don't have the .mw-ui-button or related icon classes.