Merge "Update UserLinks styles to use classes instead of ids"

This commit is contained in:
jenkins-bot 2021-06-02 22:38:04 +00:00 committed by Gerrit Code Review
commit 8021270bce
2 changed files with 38 additions and 37 deletions

View File

@ -1,6 +1,6 @@
<div class="vector-user-links">
{{#is-anon}}
<div id="p-createaccount">
<div id="p-createaccount" class="vector-user-links-createaccount">
{{#data-userlinks}}{{{html-create-account}}}{{/data-userlinks}}
</div>
{{/is-anon}}

View File

@ -60,32 +60,6 @@
text-decoration: none;
}
}
}
#p-createaccount {
margin-left: 0.75em;
}
#p-user-page {
li {
margin-left: 1em;
padding-bottom: 0.5em;
a {
background-position: left center;
padding-left: 1.5em;
color: #000;
text-decoration: none;
}
}
}
#p-notifications {
li {
float: left;
margin-left: 0.75em;
}
}
// Copied from https://github.com/wikimedia/Vector/blob/master/resources/common/components/MenuDropdown.less#L88
.vector-user-menu-anon-editor,
@ -111,7 +85,34 @@
}
// "Log out" link in logged in user menus
// FIXME: Should not use ID selector. To be fixed as part of T281791.
#pt-logout {
border-top: 1px solid @border-color-base;
}
}
.mw-portlet-notifications {
li {
float: left;
margin-left: 0.75em;
}
}
.mw-portlet-user-page {
li {
margin-left: 1em;
padding-bottom: 0.5em;
a {
background-position: left center;
padding-left: 1.5em;
color: #000;
text-decoration: none;
}
}
}
.vector-user-links-createaccount {
margin-left: 0.75em;
}
}