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
4af134b2
Commit
4af134b2
authored
Sep 20, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed large collapsible text and triple toggle
parent
99a009ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
lms/static/sass/course/courseware/_courseware.scss
+8
-0
lms/templates/problem.html
+12
-6
No files found.
lms/static/sass/course/courseware/_courseware.scss
View file @
4af134b2
...
@@ -52,6 +52,14 @@ div.course-wrapper {
...
@@ -52,6 +52,14 @@ div.course-wrapper {
margin-bottom
:
15px
;
margin-bottom
:
15px
;
padding
:
0
0
15px
;
padding
:
0
0
15px
;
.collapsible
{
header
{
margin-bottom
:
0
;
padding-bottom
:
0
;
font-size
:
16px
;
}
}
header
{
header
{
@extend
h1
.top-header
;
@extend
h1
.top-header
;
@include
border-radius
(
0
4px
0
0
);
@include
border-radius
(
0
4px
0
0
);
...
...
lms/templates/problem.html
View file @
4af134b2
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
var
collapsibleSet
;
$
(
function
(){
$
(
function
(){
// this should be brought back into problems
// this should be brought back into problems
$
(
'.longform'
).
hide
();
$
(
'.longform'
).
hide
();
...
@@ -47,12 +49,16 @@
...
@@ -47,12 +49,16 @@
return
false
;
return
false
;
});
});
$
(
'.collapsible section'
).
hide
()
if
(
!
collapsibleSet
)
{
$
(
'.collapsible header a'
).
click
(
function
()
{
collapsibleSet
=
true
;
$
(
this
).
parent
().
siblings
().
slideToggle
();
$
(
'.collapsible section'
).
hide
();
$
(
this
).
parent
().
parent
().
toggleClass
(
'open'
);
$
(
'.collapsible header a'
).
bind
(
'click'
,
toggleHint
);
return
false
function
toggleHint
(
e
)
{
});
$
(
this
).
parent
().
siblings
().
slideToggle
();
$
(
this
).
parent
().
parent
().
toggleClass
(
'open'
);
return
false
;
}
}
});
});
</script>
</script>
</
%
block>
</
%
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