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
7cba7c9b
Commit
7cba7c9b
authored
Dec 04, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaked body color and window styles; adjusting new buttons
parent
4e7d931d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
25 deletions
+24
-25
cms/static/js/base.js
+4
-0
cms/static/sass/_base.scss
+11
-4
cms/static/sass/_courseware.scss
+4
-10
cms/static/sass/_dashboard.scss
+0
-7
cms/templates/edit-tabs.html
+4
-3
cms/templates/index.html
+1
-1
No files found.
cms/static/js/base.js
View file @
7cba7c9b
...
...
@@ -629,11 +629,14 @@ function saveNewSection(e) {
function
cancelNewSection
(
e
)
{
e
.
preventDefault
();
$
(
'.new-courseware-section-button'
).
show
();
$
(
this
).
parents
(
'section.new-section'
).
remove
();
}
function
addNewCourse
(
e
)
{
e
.
preventDefault
();
$
(
e
.
target
).
hide
();
var
$newCourse
=
$
(
$
(
'#new-course-template'
).
html
());
var
$cancelButton
=
$newCourse
.
find
(
'.new-course-cancel'
);
$
(
'.new-course-button'
).
after
(
$newCourse
);
...
...
@@ -674,6 +677,7 @@ function saveNewCourse(e) {
function
cancelNewCourse
(
e
)
{
e
.
preventDefault
();
$
(
'.new-course-button'
).
show
();
$
(
this
).
parents
(
'section.new-course'
).
remove
();
}
...
...
cms/static/sass/_base.scss
View file @
7cba7c9b
...
...
@@ -6,13 +6,17 @@
body
{
min-width
:
980px
;
background
:
#f3f4f5
;
font-family
:
'Open Sans'
,
sans-serif
;
background
:
#eaebed
;
font-size
:
16px
;
line-height
:
1
.6
;
color
:
#3c3c3c
;
}
body
,
input
{
font-family
:
'Open Sans'
,
sans-serif
;
}
a
{
text-decoration
:
none
;
color
:
$blue
;
...
...
@@ -56,9 +60,8 @@ h1 {
.window
{
background
:
#fff
;
border
:
1px
solid
$darkGrey
;
border-radius
:
3px
;
@include
box-shadow
(
0
1px
2px
rgba
(
0
,
0
,
0
,
.1
));
@include
box-shadow
(
0
1px
1px
rgba
(
0
,
0
,
0
,
.2
));
}
.sidebar
{
...
...
@@ -184,6 +187,10 @@ code {
.details
{
margin-bottom
:
30px
;
font-size
:
14px
;
.new-button
{
margin-right
:
30px
;
}
}
h4
{
...
...
cms/static/sass/_courseware.scss
View file @
7cba7c9b
...
...
@@ -4,19 +4,13 @@ input.courseware-unit-search-input {
background-color
:
#fff
;
}
.courseware-overview
{
}
.courseware-section
{
position
:
relative
;
background
:
#fff
;
border
:
1px
solid
$darkGrey
;
border-radius
:
3px
;
margin
:
1
0
px
0
;
margin
:
1
5
px
0
;
padding-bottom
:
12px
;
@include
box-shadow
(
0
1px
2px
rgba
(
0
,
0
,
0
,
.1
));
@include
box-shadow
(
0
1px
1px
rgba
(
0
,
0
,
0
,
.2
));
&
:first-child
{
margin-top
:
0
;
...
...
@@ -205,7 +199,7 @@ input.courseware-unit-search-input {
.new-section-name-save
,
.new-subsection-name-save
{
@include
blue-button
;
padding
:
6px
20px
8
px
;
padding
:
4px
20px
7
px
;
margin
:
0
5px
;
color
:
#fff
!
important
;
}
...
...
@@ -213,7 +207,7 @@ input.courseware-unit-search-input {
.new-section-name-cancel
,
.new-subsection-name-cancel
{
@include
white-button
;
padding
:
6px
20px
8
px
;
padding
:
4px
20px
7
px
;
color
:
#8891a1
!
important
;
}
...
...
cms/static/sass/_dashboard.scss
View file @
7cba7c9b
...
...
@@ -36,13 +36,6 @@
}
}
.new-course-button
{
@include
grey-button
;
display
:
block
;
padding
:
20px
;
text-align
:
center
;
}
.new-course
{
padding
:
15px
25px
;
margin-top
:
20px
;
...
...
cms/templates/edit-tabs.html
View file @
7cba7c9b
...
...
@@ -22,6 +22,9 @@
</div>
<article
class=
"unit-body window"
>
<div
class=
"details"
>
<a
href=
"#"
class=
"new-button new-tab left"
>
<span
class=
"plus-icon white"
></span>
New Tab
</a>
<p>
Here you can add and manage additional pages for your course. These pages will be added to the primary navigation menu alongside Courseware, Course Info, Discussion, etc.
</p>
</div>
<div
class=
"tab-list"
>
...
...
@@ -31,9 +34,7 @@
% endfor
<li
class=
"new-component-item"
>
<a
href=
"#"
class=
"new-button big new-tab"
>
<span
class=
"plus-icon"
></span>
New Tab
</a>
</li>
</ol>
</div>
...
...
cms/templates/index.html
View file @
7cba7c9b
...
...
@@ -37,7 +37,7 @@
<h1>
My Courses
</h1>
<article
class=
"my-classes"
>
% if user.is_active:
<a
href=
"#"
class=
"new-
course-button"
><span
class=
"plus-icon
"
></span>
New Course
</a>
<a
href=
"#"
class=
"new-
button new-course-button"
><span
class=
"plus-icon white
"
></span>
New Course
</a>
<ul
class=
"class-list"
>
%for course, url in courses:
<li>
...
...
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