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
7a02e414
Commit
7a02e414
authored
Aug 10, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #377 from MITx/feature/tomg/fall-design
wayfinding style changes
parents
8d6d4e18
966c253c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
2 deletions
+59
-2
lms/static/sass/course/_textbook.scss
+26
-0
lms/static/sass/course/base/_extends.scss
+19
-0
lms/templates/navigation.html
+6
-1
lms/templates/staticbook.html
+8
-1
No files found.
lms/static/sass/course/_textbook.scss
View file @
7a02e414
...
@@ -9,6 +9,27 @@ div.book-wrapper {
...
@@ -9,6 +9,27 @@ div.book-wrapper {
ul
#booknav
{
ul
#booknav
{
font-size
:
em
(
14
);
font-size
:
em
(
14
);
.chapter-number
{
}
.chapter
{
float
:
left
;
width
:
87%
;
line-height
:
1
.4em
;
}
.page-number
{
float
:
right
;
width
:
12%
;
font-size
:
.8em
;
line-height
:
2
.1em
;
text-align
:
right
;
color
:
#9a9a9a
;
opacity
:
0
;
@include
transition
(
opacity
.15s
);
}
li
{
li
{
background
:
none
;
background
:
none
;
border-bottom
:
0
;
border-bottom
:
0
;
...
@@ -16,9 +37,14 @@ div.book-wrapper {
...
@@ -16,9 +37,14 @@ div.book-wrapper {
a
{
a
{
padding
:
0
;
padding
:
0
;
@include
clearfix
;
&
:hover
{
&
:hover
{
background-color
:
transparent
;
background-color
:
transparent
;
.page-number
{
opacity
:
1
;
}
}
}
}
}
...
...
lms/static/sass/course/base/_extends.scss
View file @
7a02e414
...
@@ -185,3 +185,21 @@ h1.top-header {
...
@@ -185,3 +185,21 @@ h1.top-header {
.tran
{
.tran
{
@include
transition
(
all
,
.2s
,
$ease-in-out-quad
);
@include
transition
(
all
,
.2s
,
$ease-in-out-quad
);
}
}
.global
{
h2
{
float
:
left
;
font-size
:
0
.9em
;
font-weight
:
600
;
line-height
:
40px
;
letter-spacing
:
0
;
text-transform
:
none
;
text-shadow
:
0
1px
0
#fff
;
.provider
{
font
:
inherit
;
font-weight
:
bold
;
color
:
#6d6d6d
;
}
}
}
\ No newline at end of file
lms/templates/navigation.html
View file @
7a02e414
...
@@ -7,11 +7,16 @@
...
@@ -7,11 +7,16 @@
<header
class=
"global"
aria-label=
"Global Navigation"
>
<header
class=
"global"
aria-label=
"Global Navigation"
>
<nav>
<nav>
<h1
class=
"logo"
><a
href=
"${reverse('root')}"
></a></h1>
<h1
class=
"logo"
><a
href=
"${reverse('root')}"
></a></h1>
<ol
class=
"left"
>
%if course:
<h2><span
class=
"provider"
>
${course.org}:
</span>
${course.number} ${course.title}
</h2>
%else:
<ol
class=
"left"
>
<li
class=
"primary"
>
<li
class=
"primary"
>
<a
href=
"${reverse('courses')}"
>
Find Courses
</a>
<a
href=
"${reverse('courses')}"
>
Find Courses
</a>
</li>
</li>
</ol>
</ol>
%endif
%if user.is_authenticated():
%if user.is_authenticated():
<ol
class=
"user"
>
<ol
class=
"user"
>
...
...
lms/templates/staticbook.html
View file @
7a02e414
...
@@ -75,7 +75,14 @@ $("#open_close_accordion a").click(function(){
...
@@ -75,7 +75,14 @@ $("#open_close_accordion a").click(function(){
<
%
def
name=
"print_entry(entry)"
>
<
%
def
name=
"print_entry(entry)"
>
<li>
<li>
<a
href=
"javascript:goto_page(${entry.get('page')})"
>
<a
href=
"javascript:goto_page(${entry.get('page')})"
>
${' '.join(entry.get(attribute, '') for attribute in ['chapter', 'name', 'page_label'])}
<span
class=
"chapter"
>
%if entry.get('chapter'):
<span
class=
"chapter-number"
>
${entry.get('chapter')}.
</span>
${entry.get('name')}
%else:
${entry.get('name')}
%endif
</span>
<span
class=
"page-number"
>
${entry.get('page_label')}
</span>
</a>
</a>
% if len(entry) > 0:
% if len(entry) > 0:
<ul>
<ul>
...
...
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