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
a018b614
Commit
a018b614
authored
Apr 05, 2012
by
Lyla Fischer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:MITx/mitx
parents
abee6176
0704bb37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
17 deletions
+111
-17
rakefile
+1
-0
static/css/application.css
+0
-0
templates/info.html
+18
-0
templates/sass/_info.scss
+92
-17
No files found.
rakefile
View file @
a018b614
...
...
@@ -65,6 +65,7 @@ task :package do
"--depends=python-markdown"
,
"--depends=python-pygments"
,
"--depends=mysql-client"
,
"--provides=
#{
PACKAGE_NAME
}
"
,
"--name=
#{
DEPLOY_NAME
}
"
,
"--version=
#{
VERSION
}
"
,
"-a"
,
"all"
,
...
...
static/css/application.css
View file @
a018b614
This diff is collapsed.
Click to expand it.
templates/info.html
View file @
a018b614
<
%
inherit
file=
"main.html"
/>
<
%
block
name=
"js_extra"
>
<script>
$
(
document
).
ready
(
function
(){
//if(!page) {
// cookie_page = $.cookie("book_page");
// if(cookie_page) {
// goto_page(cookie_page);
// }
//}
$
(
".handouts ol"
).
treeview
({
collapsed
:
true
,
unique
:
true
/*, cookieId: "treeview-book-nav", persist: "cookie"*/
});
});
</script>
</
%
block>
<
%
block
name=
"title"
><title>
Course Info - MITx 6.002x
</title></
%
block>
<
%
include
file=
"navigation.html"
args=
"active_page='info'"
/>
...
...
templates/sass/_info.scss
View file @
a018b614
...
...
@@ -59,39 +59,115 @@ div.info-wrapper {
border-right
:
0
;
border-left
:
1px
solid
#d3d3d3
;
h1
{
padding
:
lh
(
.5
)
lh
();
font-size
:
18px
;
margin
:
0
;
header
{
@extend
.bottom-border
;
padding
:
lh
(
.5
)
lh
(
.75
);
h1
{
font-size
:
18px
;
margin
:
0
;
}
p
{
margin-bottom
:
0
;
margin-top
:
4px
;
font-size
:
12px
;
color
:
#666
;
}
}
ol
{
list-style
:
none
;
background
:
none
;
li
{
@include
box-shadow
(
0
1px
0
#eee
);
border-bottom
:
1px
solid
#d3d3d3
;
@include
box-sizing
(
border-box
);
@extend
.clearfix
;
padding
:
7px
lh
(
.75
);
background
:
none
;
position
:
relative
;
&
.expandable
,
&
.collapsable
{
h4
{
padding-left
:
18px
;
font-style
:
$body-font-size
;
font-weight
:
normal
;
}
}
ul
{
background
:
none
;
margin
:
7px
(
-
(
lh
(
.75
)))
0
;
li
{
padding-left
:
18px
+
lh
(
.75
);
@include
box-shadow
(
inset
0
1px
0
#eee
);
border-top
:
1px
solid
#d3d3d3
;
border-bottom
:
0
;
}
}
&
:hover
{
background-color
:
#e9e9e9
;
}
div
.hitarea
{
background-image
:
url('/static/images/treeview-default.gif')
;
width
:
100%
;
height
:
100%
;
max-height
:
20px
;
display
:
block
;
position
:
absolute
;
left
:
lh
(
.75
);
margin-left
:
0
;
&
:hover
{
opacity
:
0
.6
;
filter
:
alpha
(
opacity
=
60
);
}
&
.expandable-hitarea
{
background-position
:
-80px
1px
;
}
&
.collapsable-hitarea
{
background-position
:
-64px
-21px
;
}
}
h3
{
border-bottom
:
0
;
text-transform
:
uppercase
;
font-weight
:
bold
;
color
:
#999
;
@include
box-shadow
(
none
);
font-size
:
12px
;
}
p
{
padding
:
7px
lh
();
margin
:
0
;
text-transform
:
none
;
letter-spacing
:
0
;
font-size
:
$body-font-size
;
&
:hover
{
background
:
#efefef
;
}
a
{
display
:
inline
;
padding
:
0
;
padding-right
:
8px
;
&
:hover
{
text-decoration
:
underline
;
background
:
none
;
&
:before
{
content
:
"•"
;
@include
inline-block
();
padding-right
:
8px
;
color
:
#ccc
;
}
&
:first-child
{
&
:before
{
content
:
""
;
padding-right
:
0
;
}
}
}
}
...
...
@@ -99,12 +175,11 @@ div.info-wrapper {
a
{
@include
transition
();
color
:
lighten
(
$text-color
,
10%
);
display
:
block
;
padding
:
7px
lh
();
text-decoration
:
none
;
@include
inline-block
();
&
:hover
{
background
:
#efefef
;
color
:
$mit-red
;
}
}
}
...
...
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