Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
de64bfa0
Commit
de64bfa0
authored
Feb 23, 2015
by
ahsan-ul-haq
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6956 from edx/ahsan/tnl-1382-css-background-used-home-link
CSS Background Image used for important link
parents
e5039b8c
01435692
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
lms/static/sass/shared/_header.scss
+22
-9
lms/templates/navigation.html
+6
-3
No files found.
lms/static/sass/shared/_header.scss
View file @
de64bfa0
...
@@ -125,7 +125,7 @@ header.global {
...
@@ -125,7 +125,7 @@ header.global {
>
a
{
>
a
{
@include
border-radius
(
0
,
4px
,
4px
,
0
);
@include
border-radius
(
0
,
4px
,
4px
,
0
);
@include
border-left
(
none
);
@include
border-left
(
none
);
padding
:
5px
8px
7
px
8px
;
padding
:
3px
8px
9
px
8px
;
&
.shopping-cart
{
&
.shopping-cart
{
border-radius
:
4px
;
border-radius
:
4px
;
...
@@ -138,32 +138,45 @@ header.global {
...
@@ -138,32 +138,45 @@ header.global {
}
}
a
.user-link
{
a
.user-link
{
@include
padding
(
6px
,
12px
,
8px
,
35
px
);
@include
padding
(
3px
,
12px
,
8px
,
8
px
);
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
// CASE: right to left layout
@include
rtl
{
background-position
:
top
right
;
}
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
{
...
...
lms/templates/navigation.html
View file @
de64bfa0
...
@@ -68,12 +68,15 @@ site_status_msg = get_site_status_msg(course_id)
...
@@ -68,12 +68,15 @@ 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"
>
<a
href=
"#"
class=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
><span
class=
"sr"
>
${_("More options dropdown")}
</span>
▾
</a>
<a
href=
"#"
class=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
><span
class=
"sr"
>
${_("More options dropdown")}
</span>
<i
class=
"fa fa-sort-desc"
aria-hidden=
"true"
></i>
</a>
<ul
class=
"dropdown-menu"
aria-label=
"More Options"
role=
"menu"
>
<ul
class=
"dropdown-menu"
aria-label=
"More Options"
role=
"menu"
>
<
%
block
name=
"navigation_dropdown_menu_links"
>
<
%
block
name=
"navigation_dropdown_menu_links"
>
% if settings.MKTG_URL_LINK_MAP.get('FAQ'):
% if settings.MKTG_URL_LINK_MAP.get('FAQ'):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment