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
80579860
Commit
80579860
authored
Sep 28, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up display of templates
parent
8ca10a83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
30 deletions
+18
-30
cms/static/sass/_base.scss
+16
-30
cms/templates/unit.html
+2
-0
No files found.
cms/static/sass/_base.scss
View file @
80579860
...
@@ -610,7 +610,7 @@ input.courseware-unit-search-input {
...
@@ -610,7 +610,7 @@ input.courseware-unit-search-input {
border-radius
:
3px
3px
0
0
;
border-radius
:
3px
3px
0
0
;
}
}
.new-component-type
{
.new-component-type
,
.new-component-template
{
@include
clearfix
;
@include
clearfix
;
a
{
a
{
...
@@ -619,6 +619,7 @@ input.courseware-unit-search-input {
...
@@ -619,6 +619,7 @@ input.courseware-unit-search-input {
width
:
100px
;
width
:
100px
;
height
:
100px
;
height
:
100px
;
margin-right
:
10px
;
margin-right
:
10px
;
margin-bottom
:
10px
;
border-radius
:
8px
;
border-radius
:
8px
;
font-size
:
13px
;
font-size
:
13px
;
line-height
:
14px
;
line-height
:
14px
;
...
@@ -642,16 +643,26 @@ input.courseware-unit-search-input {
...
@@ -642,16 +643,26 @@ input.courseware-unit-search-input {
}
}
}
}
.new-component-template
{
a
{
height
:
60px
;
}
}
.new-component
,
.new-component
,
.new-component-templates
{
.new-component-templates
{
display
:
none
;
display
:
none
;
padding
:
20px
;
padding
:
20px
;
.cancel-button
{
@include
blue-button
;
border-color
:
#30649c
;
}
}
}
}
}
}
}
.component-editor
,
.component-editor
{
.new-component-step-2
{
display
:
none
;
display
:
none
;
padding
:
20px
;
padding
:
20px
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
0
,
0
,
0
,
0
)
,
rgba
(
0
,
0
,
0
,
.1
))
$blue
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
0
,
0
,
0
,
0
)
,
rgba
(
0
,
0
,
0
,
.1
))
$blue
;
...
@@ -885,51 +896,26 @@ input.courseware-unit-search-input {
...
@@ -885,51 +896,26 @@ input.courseware-unit-search-input {
background
:
url(../img/slides-icon.png)
no-repeat
;
background
:
url(../img/slides-icon.png)
no-repeat
;
}
}
.large-slide-icon
{
.large-template-icon
{
display
:
inline-block
;
width
:
100px
;
height
:
60px
;
margin-right
:
5px
;
background
:
url(../img/large-slide-icon.png)
center
no-repeat
;
}
.large-textbook-icon
{
display
:
inline-block
;
display
:
inline-block
;
width
:
100px
;
width
:
100px
;
height
:
60px
;
height
:
60px
;
margin-right
:
5px
;
margin-right
:
5px
;
background
:
url(../img/large-textbook-icon.png)
center
no-repeat
;
}
}
.large-discussion-icon
{
.large-discussion-icon
{
display
:
inline-block
;
width
:
100px
;
height
:
60px
;
margin-right
:
5px
;
background
:
url(../img/large-discussion-icon.png)
center
no-repeat
;
background
:
url(../img/large-discussion-icon.png)
center
no-repeat
;
}
}
.large-freeform-icon
{
.large-html-icon
{
display
:
inline-block
;
width
:
100px
;
height
:
60px
;
margin-right
:
5px
;
background
:
url(../img/large-freeform-icon.png)
center
no-repeat
;
background
:
url(../img/large-freeform-icon.png)
center
no-repeat
;
}
}
.large-problem-icon
{
.large-problem-icon
{
display
:
inline-block
;
width
:
100px
;
height
:
60px
;
margin-right
:
5px
;
background
:
url(../img/large-problem-icon.png)
center
no-repeat
;
background
:
url(../img/large-problem-icon.png)
center
no-repeat
;
}
}
.large-video-icon
{
.large-video-icon
{
display
:
inline-block
;
width
:
100px
;
height
:
60px
;
margin-right
:
5px
;
background
:
url(../img/large-video-icon.png)
center
no-repeat
;
background
:
url(../img/large-video-icon.png)
center
no-repeat
;
}
}
...
...
cms/templates/unit.html
View file @
80579860
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
</li>
</li>
% endfor
% endfor
</ul>
</ul>
<a
href=
"#"
class=
"cancel-button"
>
Cancel
</a>
</div>
</div>
% for type, templates in sorted(component_templates.items()):
% for type, templates in sorted(component_templates.items()):
<div
class=
"new-component-templates new-component-${type}"
>
<div
class=
"new-component-templates new-component-${type}"
>
...
@@ -44,6 +45,7 @@
...
@@ -44,6 +45,7 @@
</li>
</li>
% endfor
% endfor
</ul>
</ul>
<a
href=
"#"
class=
"cancel-button"
>
Cancel
</a>
</div>
</div>
% endfor
% endfor
</li>
</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