Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
b75bca25
Commit
b75bca25
authored
12 years ago
by
Tom Giannattasio
Browse files
Options
Downloads
Patches
Plain Diff
new styles for the handouts sidebar
parent
a25d6b08
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/static/js/views/course_info_edit.js
+1
-0
1 addition, 0 deletions
cms/static/js/views/course_info_edit.js
cms/static/sass/_course-info.scss
+61
-23
61 additions, 23 deletions
cms/static/sass/_course-info.scss
cms/templates/course_info.html
+13
-9
13 additions, 9 deletions
cms/templates/course_info.html
with
75 additions
and
32 deletions
cms/static/js/views/course_info_edit.js
+
1
−
0
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
);
...
...
This diff is collapsed.
Click to expand it.
cms/static/sass/_course-info.scss
+
61
−
23
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
;
...
...
This diff is collapsed.
Click to expand it.
cms/templates/course_info.html
+
13
−
9
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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment