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
b75bca25
Commit
b75bca25
authored
Nov 27, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new styles for the handouts sidebar
parent
a25d6b08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
32 deletions
+75
-32
cms/static/js/views/course_info_edit.js
+1
-0
cms/static/sass/_course-info.scss
+61
-23
cms/templates/course_info.html
+13
-9
No files found.
cms/static/js/views/course_info_edit.js
View file @
b75bca25
...
...
@@ -80,6 +80,7 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({
onSave
:
function
(
event
)
{
var
targetModel
=
this
.
eventModel
(
event
);
console
.
log
(
this
.
contentEntry
(
event
).
val
());
targetModel
.
set
({
date
:
this
.
dateEntry
(
event
).
val
(),
content
:
this
.
contentEntry
(
event
).
val
()
});
// push change to display, hide the editor, submit the change
this
.
closeEditor
(
this
);
...
...
cms/static/sass/_course-info.scss
View file @
b75bca25
.course-info
{
h2
{
margin-bottom
:
24px
;
font-size
:
22px
;
font-weight
:
300
;
}
.course-info-wrapper
{
display
:
table
;
width
:
100%
;
}
.main-column
,
.course-handouts
{
float
:
none
;
display
:
table-cell
;
}
}
.course-updates
{
padding
:
30px
40px
;
margin
:
0
;
border-radius
:
3px
0
0
3px
;
border-right-color
:
$mediumGrey
;
.update-list
>
li
{
padding
:
34px
0
42px
;
...
...
@@ -17,38 +39,44 @@
display
:
none
;
}
}
}
h1
{
float
:
none
;
font-size
:
24px
;
font-weight
:
300
;
}
h1
{
float
:
none
;
font-size
:
24px
;
font-weight
:
300
;
}
h2
{
margin-bottom
:
18px
;
font-size
:
14px
;
font-weight
:
700
;
line-height
:
30px
;
color
:
#646464
;
letter-spacing
:
1px
;
text-transform
:
uppercase
;
}
h2
{
margin-bottom
:
18px
;
font-size
:
14px
;
font-weight
:
700
;
line-height
:
30px
;
color
:
#646464
;
letter-spacing
:
1px
;
text-transform
:
uppercase
;
}
h3
{
margin
:
34px
0
11px
;
font-size
:
16px
;
font-weight
:
700
;
h3
{
margin
:
34px
0
11px
;
font-size
:
16px
;
font-weight
:
700
;
}
}
.update-contents
{
p
{
font-size
:
1
4
px
;
line-height
:
18
px
;
font-size
:
1
6
px
;
line-height
:
25
px
;
}
p
+
p
{
margin-top
:
18px
;
margin-top
:
25px
;
}
.primary
{
border
:
1px
solid
#ddd
;
background
:
#f6f6f6
;
padding
:
20px
;
}
}
...
...
@@ -92,7 +120,17 @@
}
.course-handouts
{
padding
:
15px
20px
;
width
:
30%
;
padding
:
20px
25px
;
margin
:
0
;
border-radius
:
0
3px
3px
0
;
border-left
:
none
;
background
:
$lightGrey
;
h2
{
font-size
:
18px
;
font-weight
:
700
;
}
.new-handout-button
{
@include
grey-button
;
...
...
cms/templates/course_info.html
View file @
b75bca25
...
...
@@ -37,15 +37,19 @@
<div
class=
"main-wrapper"
>
<div
class=
"inner-wrapper"
>
<h1>
Course Info
</h1>
<div
class=
"main-column"
>
<article
class=
"course-updates window"
id=
"course-update-view"
>
<a
href=
"#"
class=
"new-update-button"
>
New Update
</a>
<ol
class=
"update-list"
id=
"course-update-list"
></ol>
<!-- probably replace w/ a vertical where each element of the vertical is a separate update w/ a date and html field -->
</article>
</div>
<div
class=
"sidebar window"
>
handouts go here
<div
class=
"course-info-wrapper"
>
<div
class=
"main-column"
>
<article
class=
"course-updates window"
id=
"course-update-view"
>
<h2>
Course Updates
&
News
</h2>
<a
href=
"#"
class=
"new-update-button"
>
New Update
</a>
<ol
class=
"update-list"
id=
"course-update-list"
></ol>
<!-- probably replace w/ a vertical where each element of the vertical is a separate update w/ a date and html field -->
</article>
</div>
<div
class=
"sidebar window course-handouts"
>
<h2>
Course Handouts
</h2>
<a
href=
"#"
class=
"new-update-button"
>
New Handout
</a>
</div>
</div>
</div>
</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