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
f531205c
Commit
f531205c
authored
Feb 08, 2017
by
alisan617
Committed by
Brian Jacobel
Mar 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styling
parent
db6c2fe8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
2 deletions
+54
-2
lms/static/sass/_build-lms-v2.scss
+3
-0
lms/static/sass/shared-v2/_course-outline.scss
+44
-0
lms/templates/courseware/course-outline.html
+7
-2
No files found.
lms/static/sass/_build-lms-v2.scss
View file @
f531205c
...
@@ -20,3 +20,6 @@
...
@@ -20,3 +20,6 @@
@import
'shared-v2/help-tab'
;
@import
'shared-v2/help-tab'
;
@import
'notifications'
;
@import
'notifications'
;
// course outline
@import
'shared-v2/course-outline'
;
lms/static/sass/shared-v2/_course-outline.scss
0 → 100644
View file @
f531205c
.course-outline
{
color
:
$lms-gray
;
ul
{
margin
:
0
$baseline
;
list-style
:
none
;
>
ul
{
@include
margin-left
(
$baseline
/
2
);
}
li
.section-name
{
@include
padding
(
$baseline
*
0
.75
,
$baseline
*
0
.75
,
$baseline
*
0
.75
,
$baseline
/
4
);
background-color
:
$lms-background-color
;
border-top
:
1px
solid
$lms-border-color
;
}
ul
.outline-item
{
@include
margin-left
(
$baseline
);
padding-bottom
:
(
$baseline
/
2
);
li
{
a
{
padding
:
(
$baseline
/
4
)
(
$baseline
*
1
.5
);
display
:
block
;
&
:hover
{
background-color
:
$lms-background-color
;
text-decoration
:
none
;
}
}
}
}
.icon
{
margin
:
0
(
$baseline
*
0
.75
);
position
:
relative
;
top
:
-2px
;
font-size
:
12px
;
}
}
}
lms/templates/courseware/course-outline.html
View file @
f531205c
...
@@ -13,10 +13,15 @@ from django.utils.translation import ugettext as _
...
@@ -13,10 +13,15 @@ from django.utils.translation import ugettext as _
<section
class=
"course-outline"
id=
"main"
>
<section
class=
"course-outline"
id=
"main"
>
<ul
class=
"block-tree"
role=
"tree"
>
<ul
class=
"block-tree"
role=
"tree"
>
% for section in blocks.get('children') or []:
% for section in blocks.get('children') or []:
<li
class=
"outline-item focusable"
role=
"treeitem"
tabindex=
"0"
aria-expanded=
"true"
>
${ section['display_name'] }
</li>
<li
class=
"section-name outline-item focusable"
role=
"treeitem"
tabindex=
"0"
aria-expanded=
"true"
>
<span
class=
"icon fa fa-chevron-down"
aria-hidden=
"true"
></span>
${ section['display_name'] }
</li>
<ul
class=
"outline-item focusable"
role=
"group"
tabindex=
"0"
>
<ul
class=
"outline-item focusable"
role=
"group"
tabindex=
"0"
>
% for subsection in section.get('children') or []:
% for subsection in section.get('children') or []:
<li
class=
"outline-item focusable"
role=
"treeitem"
tabindex=
"0"
aria-expanded=
"true"
>
${ subsection['display_name'] }
</li>
<li
class=
"outline-item focusable"
role=
"treeitem"
tabindex=
"0"
aria-expanded=
"true"
>
<a
href=
"#"
>
${ subsection['display_name'] }
</a>
</li>
% endfor
% endfor
</ul>
</ul>
% endfor
% endfor
...
...
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