[refactor] Remove common UserLinks code
There is no common UserLinks code. These styles serve legacy only. Bug: T288852 Change-Id: Ied191bc1bc5dbd48491fa285b5def265c7d5262d
This commit is contained in:
parent
2efbbc7af8
commit
ff8e29d240
|
@ -22,7 +22,6 @@
|
|||
@import './components/SearchBox.less';
|
||||
@import './components/SidebarLogo.less';
|
||||
@import './components/Footer.less';
|
||||
@import './components/UserLinks.less';
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
// Common styles for the UserLinks component.
|
||||
|
||||
@import '../variables.less';
|
||||
@import 'mediawiki.mixins.less';
|
||||
|
||||
/* Personal Menu */
|
||||
#p-personal .vector-menu-content-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-grow: 1;
|
||||
justify-content: flex-end;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
/* Icon for registered user names & anonymous message */
|
||||
#pt-anonuserpage,
|
||||
.vector-user-menu-legacy #pt-userpage a {
|
||||
background-image: url( images/user-avatar.svg );
|
||||
background-repeat: no-repeat;
|
||||
background-size: @background-size-nav-personal-icon @background-size-nav-personal-icon;
|
||||
padding-top: 0;
|
||||
padding-left: 1.5em;
|
||||
}
|
|
@ -10,7 +10,11 @@
|
|||
#pt-anonuserpage,
|
||||
#pt-userpage a {
|
||||
background-position: @background-position-nav-personal-icon;
|
||||
background-image: url( images/user-avatar.svg );
|
||||
background-repeat: no-repeat;
|
||||
background-size: @background-size-nav-personal-icon @background-size-nav-personal-icon;
|
||||
padding-top: 0.5em;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
#pt-userpage {
|
||||
|
@ -25,4 +29,12 @@
|
|||
#pt-anonuserpage {
|
||||
color: #54595d;
|
||||
}
|
||||
|
||||
.vector-menu-content-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-grow: 1;
|
||||
justify-content: flex-end;
|
||||
align-items: baseline;
|
||||
}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 254 B |
|
@ -46,10 +46,6 @@
|
|||
@margin-horizontal-search: unit( 40px / @font-size-browser / @font-size-base, em ); // 2.85714286em @ 16 & 0.875em
|
||||
@margin-end-search: 12px;
|
||||
|
||||
// Personal menu
|
||||
|
||||
@min-width-personal-tools: unit( 300px / @font-size-browser, em ); // 18.75 @ 16
|
||||
|
||||
// Sidebar
|
||||
|
||||
@margin-top-sidebar: 0.5em;
|
||||
|
@ -232,15 +228,6 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
// When ConsolidateUserLinks is off, "vector-user-menu-legacy" is used in modern Vector
|
||||
.vector-user-menu-legacy {
|
||||
flex-grow: 1;
|
||||
flex-basis: @min-width-personal-tools;
|
||||
margin-left: @margin-horizontal-search;
|
||||
// Support IE9: This is reset in @support query below if Flexbox is available.
|
||||
float: right;
|
||||
}
|
||||
|
||||
#mw-sidebar-button {
|
||||
float: left; // Browser: IE9 support - button as flex-child fallback.
|
||||
margin-left: -@margin-horizontal-sidebar-button-icon;
|
||||
|
|
Loading…
Reference in New Issue