Merge pull request #7107 from edx/ahsan/tnl-1382-css-background-used-home-link-issue-stage
CSS issue of the change on the stage
This commit is contained in:
@@ -472,28 +472,46 @@ header.global-new {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
a.user-link {
|
||||||
a.user-link {
|
@include padding(3px, 12px, 8px, 8px);
|
||||||
@include padding(6px, 12px, 8px, 35px);
|
|
||||||
position: relative;
|
position: relative;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
display: inline-block;
|
||||||
|
@include float(left);
|
||||||
|
margin: 3px 0 -3px 0;
|
||||||
|
font-size: 1.2em;
|
||||||
|
color: $m-gray;
|
||||||
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
@include background-image(url('../images/small-header-home-icon.png'));
|
|
||||||
background-repeat: no-repeat;
|
// CASE: right to left layout
|
||||||
height: 26px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@include left(8px);
|
@include left(8px);
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: absolute;
|
|
||||||
top: 4px;
|
top: 4px;
|
||||||
|
margin-top: 1px;
|
||||||
|
margin-right: 2px;
|
||||||
@include transition(all 0.15s linear 0s);
|
@include transition(all 0.15s linear 0s);
|
||||||
width: 19px;
|
width: 19px;
|
||||||
}
|
}
|
||||||
|
div {
|
||||||
|
margin-top: 3px;
|
||||||
|
float: right;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
margin-top: 3px;
|
||||||
|
float: right;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover, &:focus {
|
&:hover, &:focus {
|
||||||
.avatar {
|
.avatar {
|
||||||
|
|||||||
@@ -68,8 +68,11 @@ site_status_msg = get_site_status_msg(course_id)
|
|||||||
<ol class="user">
|
<ol class="user">
|
||||||
<li class="primary">
|
<li class="primary">
|
||||||
<a href="${reverse('dashboard')}" class="user-link">
|
<a href="${reverse('dashboard')}" class="user-link">
|
||||||
<span class="avatar"></span>
|
<i class="icon fa fa-home" aria-hidden="true"></i>
|
||||||
<span class="sr">${_("Dashboard for:")} </span> ${user.username}
|
<span class="sr">${_("Dashboard for:")}</span>
|
||||||
|
<div>
|
||||||
|
${user.username}
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="primary">
|
<li class="primary">
|
||||||
|
|||||||
Reference in New Issue
Block a user