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
b799d9b7
Commit
b799d9b7
authored
Sep 21, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #744 from MITx/bug/tomg/collapsible-hint
Bug/tomg/collapsible hint
parents
1a06efc5
4af134b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
lms/static/sass/course/courseware/_amplifier.scss
+3
-0
lms/static/sass/course/courseware/_courseware.scss
+8
-0
lms/templates/problem.html
+12
-6
No files found.
lms/static/sass/course/courseware/_amplifier.scss
View file @
b799d9b7
...
...
@@ -98,6 +98,7 @@ section.tool-wrapper {
display
:
block
;
float
:
right
;
font
:
bold
14px
$body-font-family
;
margin-top
:
19px
;
&
:active
{
@include
box-shadow
(
none
);
...
...
@@ -130,6 +131,7 @@ section.tool-wrapper {
margin
:
0
;
text-shadow
:
0
-1px
0
darken
(
#073642
,
10%
);
-webkit-font-smoothing
:
antialiased
;
color
:
#839496
;
}
ul
{
...
...
@@ -205,6 +207,7 @@ section.tool-wrapper {
font-weight
:
bold
;
@include
inline-block
();
margin
:
0
lh
(
.5
)
lh
()
0
;
color
:
#839496
;
text-shadow
:
0
-1px
0
darken
(
#073642
,
10%
);
-webkit-font-smoothing
:
antialiased
;
}
...
...
lms/static/sass/course/courseware/_courseware.scss
View file @
b799d9b7
...
...
@@ -52,6 +52,14 @@ div.course-wrapper {
margin-bottom
:
15px
;
padding
:
0
0
15px
;
.collapsible
{
header
{
margin-bottom
:
0
;
padding-bottom
:
0
;
font-size
:
16px
;
}
}
header
{
@extend
h1
.top-header
;
@include
border-radius
(
0
4px
0
0
);
...
...
lms/templates/problem.html
View file @
b799d9b7
...
...
@@ -34,6 +34,8 @@
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
var
collapsibleSet
;
$
(
function
(){
// this should be brought back into problems
$
(
'.longform'
).
hide
();
...
...
@@ -47,12 +49,16 @@
return
false
;
});
$
(
'.collapsible section'
).
hide
()
$
(
'.collapsible header a'
).
click
(
function
()
{
$
(
this
).
parent
().
siblings
().
slideToggle
();
$
(
this
).
parent
().
parent
().
toggleClass
(
'open'
);
return
false
});
if
(
!
collapsibleSet
)
{
collapsibleSet
=
true
;
$
(
'.collapsible section'
).
hide
();
$
(
'.collapsible header a'
).
bind
(
'click'
,
toggleHint
);
function
toggleHint
(
e
)
{
$
(
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