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
e6f9f8d9
Commit
e6f9f8d9
authored
Aug 31, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add js to the problem and move around that css and js to accomodate Tonys new HTML Structure
parent
1939b001
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
20 deletions
+40
-20
common/lib/xmodule/xmodule/css/capa/display.scss
+16
-20
lms/templates/problem.html
+24
-0
No files found.
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
e6f9f8d9
...
@@ -453,37 +453,33 @@ section.problem {
...
@@ -453,37 +453,33 @@ section.problem {
}
}
}
}
.longform
,
.shortform
{
>
section
{
border
:
1px
solid
#ddd
;
border
:
1px
solid
#ddd
;
padding
:
9px
;
padding
:
9px
9px
20px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
background
:
#FFF
;
background
:
#FFF
;
position
:
relative
;
@include
box-shadow
(
inset
0
0
0
1px
#eee
);
@include
box-shadow
(
inset
0
0
0
1px
#eee
);
@include
border-radius
(
3px
);
@include
border-radius
(
3px
);
p
:last-of-type
{
p
:last-of-type
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
}
a
.full
{
@include
position
(
absolute
,
0
0
1px
0px
);
font-size
:
.8em
;
padding
:
4px
;
text-align
:
right
;
width
:
100%
;
display
:
block
;
background
:
#F3F3F3
;
@include
box-sizing
(
border-box
);
}
.longform
{
.shortform
{
position
:
relative
;
margin-bottom
:
.6em
;
padding-bottom
:
20px
;
}
}
.longform-header
{
a
.full
{
margin-bottom
:
.6em
;
@include
position
(
absolute
,
0
0
1px
0px
);
font-size
:
.8em
;
padding
:
4px
;
text-align
:
right
;
width
:
100%
;
display
:
block
;
background
:
#F3F3F3
;
@include
box-sizing
(
border-box
);
}
}
}
}
}
}
}
lms/templates/problem.html
View file @
e6f9f8d9
...
@@ -32,3 +32,27 @@
...
@@ -32,3 +32,27 @@
</section>
</section>
</section>
</section>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
$
(
function
(){
// this should be brought back into problems
$
(
'.longform'
).
hide
();
$
(
'.shortform'
).
append
(
'<a href="#" class="full">See full output</a>'
);
$
(
'.full'
).
click
(
function
()
{
$
(
this
).
parent
().
siblings
().
slideToggle
();
$
(
this
).
parent
().
parent
().
toggleClass
(
'open'
);
var
text
=
$
(
this
).
text
()
==
'See full output'
?
'Hide output'
:
'See full output'
;
$
(
this
).
text
(
text
);
return
false
;
});
$
(
'.collapsible section'
).
hide
()
$
(
'.collapsible header a'
).
click
(
function
()
{
$
(
this
).
parent
().
siblings
().
slideToggle
();
$
(
this
).
parent
().
parent
().
toggleClass
(
'open'
);
return
false
});
});
</script>
</
%
block>
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