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
55905759
Commit
55905759
authored
Feb 27, 2017
by
Brian Jacobel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to new styling
parent
10105b7b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
44 deletions
+38
-44
lms/static/sass/shared-v2/_course-outline.scss
+35
-30
lms/static/sass/shared-v2/_layouts.scss
+0
-10
lms/templates/courseware/course_outline.html
+2
-3
lms/templates/courseware/unified-course-view.html
+1
-1
No files found.
lms/static/sass/shared-v2/_course-outline.scss
View file @
55905759
.course-outline
{
color
:
$lms-gray
;
ol
{
margin
:
0
$baseline
;
list-style
:
none
;
.block-tree
{
margin
:
0
;
list-style
-type
:
none
;
>
ol
{
@include
margin-left
(
$baseline
/
2
);
}
.section
{
margin
:
0
(
-1
*
$baseline
);
width
:
calc
(
100%
+
(
2
*
$baseline
));
padding
:
0
(
$baseline
*
2
);
div
.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
;
margin-bottom
:
$baseline
*
0
.5
;
}
&
:not
(
:first-child
)
{
border-top
:
1px
solid
$lms-border-color
;
.section-name
{
margin-top
:
$baseline
;
}
}
.section-name
{
@include
margin
(
0
,
0
,
(
$baseline
/
2
)
,
(
$baseline
/
2
));
padding
:
0
;
font-weight
:
bold
;
}
.outline-item
{
@include
padding-left
(
0
);
}
ol
.outline-item
{
@include
margin-left
(
$baseline
);
padding-bottom
:
(
$baseline
/
2
);
ol
.outline-item
{
margin
:
0
0
(
$baseline
/
2
)
0
;
li
{
.subsection
{
list-style-type
:
none
;
a
{
padding
:
(
$baseline
/
4
)
(
$baseline
*
1
.5
)
;
display
:
block
;
a
.outline-item
{
display
:
block
;
padding
:
(
$baseline
/
2
)
;
&
:hover
{
background-color
:
$lms-background-color
;
text-decoration
:
none
;
&
:hover
{
background-color
:
palette
(
primary
,
x-back
);
text-decoration
:
none
;
}
}
}
}
}
.icon
{
margin
:
0
(
$baseline
*
0
.75
);
position
:
relative
;
top
:
-2px
;
font-size
:
12px
;
}
}
}
lms/static/sass/shared-v2/_layouts.scss
View file @
55905759
...
...
@@ -46,16 +46,6 @@
display
:
inline-block
;
}
.form-actions
>
*
{
@include
margin-left
(
$baseline
/
2
);
vertical-align
:
middle
;
height
:
34px
;
}
.form-actions
>
button
{
height
:
34px
;
}
.form-actions
>
*
:first-child
{
@include
margin-left
(
0
);
}
...
...
lms/templates/courseware/course_outline.html
View file @
55905759
...
...
@@ -15,18 +15,17 @@ from django.utils.translation import ugettext as _
% for section in blocks.get('children') or []:
<li
aria-expanded=
"true"
class=
"outline-item focusable"
class=
"outline-item focusable
section
"
id=
"${ section['id'] }"
role=
"treeitem"
tabindex=
"0"
>
<div
class=
"section-name"
>
<span
class=
"icon fa fa-chevron-down"
aria-hidden=
"true"
></span>
<span>
${ section['display_name'] }
</span>
</div>
<ol
class=
"outline-item focusable"
role=
"group"
tabindex=
"0"
>
% for subsection in section.get('children') or []:
<li
role=
"treeitem"
tabindex=
"-1"
aria-expanded=
"true"
>
<li
class=
"subsection"
role=
"treeitem"
tabindex=
"-1"
aria-expanded=
"true"
>
<a
class=
"outline-item focusable"
href=
"${ subsection['lms_web_url'] }"
...
...
lms/templates/courseware/unified-course-view.html
View file @
55905759
...
...
@@ -46,7 +46,7 @@ ${HTML(outline_fragment.foot_html())}
</div>
<div
class=
"page-header-secondary"
>
<div
class=
"form-actions"
>
<a
class=
"btn
btn-small
"
href=
"${reverse('courseware', kwargs={'course_id': unicode(course.id.to_deprecated_string())})}"
>
<a
class=
"btn"
href=
"${reverse('courseware', kwargs={'course_id': unicode(course.id.to_deprecated_string())})}"
>
${_("Resume Course")}
</a>
</div>
...
...
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