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
0170fcc0
Commit
0170fcc0
authored
Sep 14, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styles for a slightly better multiple choice and solution span
parent
2e34c4ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
9 deletions
+43
-9
common/lib/capa/capa/templates/choicegroup.html
+11
-9
common/lib/xmodule/xmodule/css/capa/display.scss
+32
-0
No files found.
common/lib/capa/capa/templates/choicegroup.html
View file @
0170fcc0
<form
class=
"choicegroup capa_inputtype"
id=
"inputtype_${id}"
>
<form
class=
"choicegroup capa_inputtype"
id=
"inputtype_${id}"
>
% if state == 'unsubmitted':
<span
class=
"unanswered"
style=
"display:inline-block;"
id=
"status_${id}"
></span>
% elif state == 'correct':
<span
class=
"correct"
id=
"status_${id}"
></span>
% elif state == 'incorrect':
<span
class=
"incorrect"
id=
"status_${id}"
></span>
% elif state == 'incomplete':
<span
class=
"incorrect"
id=
"status_${id}"
></span>
% endif
<fieldset>
% for choice_id, choice_description in choices:
% for choice_id, choice_description in choices:
<label
for=
"input_${id}_${choice_id}"
>
<input
type=
"${input_type}"
name=
"input_${id}${name_array_suffix}"
id=
"input_${id}_${choice_id}"
value=
"${choice_id}"
<label
for=
"input_${id}_${choice_id}"
>
<input
type=
"${input_type}"
name=
"input_${id}${name_array_suffix}"
id=
"input_${id}_${choice_id}"
value=
"${choice_id}"
%
if
choice_id
in
value:
%
if
choice_id
in
value:
...
@@ -8,14 +18,6 @@
...
@@ -8,14 +18,6 @@
/>
${choice_description}
</label>
/>
${choice_description}
</label>
% endfor
% endfor
<span
id=
"answer_${id}"
></span>
<span
id=
"answer_${id}"
></span>
</fieldset>
% if state == 'unsubmitted':
<span
class=
"unanswered"
style=
"display:inline-block;"
id=
"status_${id}"
></span>
% elif state == 'correct':
<span
class=
"correct"
id=
"status_${id}"
></span>
% elif state == 'incorrect':
<span
class=
"incorrect"
id=
"status_${id}"
></span>
% elif state == 'incomplete':
<span
class=
"incorrect"
id=
"status_${id}"
></span>
% endif
</form>
</form>
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
0170fcc0
...
@@ -36,9 +36,24 @@ section.problem {
...
@@ -36,9 +36,24 @@ section.problem {
}
}
.choicegroup
{
.choicegroup
{
@include
clearfix
;
label
.choicegroup_correct
:after
{
label
.choicegroup_correct
:after
{
content
:
url('../images/correct-icon.png')
;
content
:
url('../images/correct-icon.png')
;
}
}
>
span
{
padding-right
:
20px
;
float
:
left
;
background-position
:
0
0
!
important
;
}
fieldset
{
@include
box-sizing
(
border-box
);
float
:
left
;
border-left
:
1px
solid
#ddd
;
padding-left
:
20px
;
}
}
}
ol
.enumerate
{
ol
.enumerate
{
...
@@ -52,6 +67,23 @@ section.problem {
...
@@ -52,6 +67,23 @@ section.problem {
}
}
}
}
.solution-span
{
span
{
margin
:
20px
0
;
display
:
block
;
border
:
1px
solid
#ddd
;
padding
:
9px
15px
20px
;
background
:
#FFF
;
position
:
relative
;
@include
box-shadow
(
inset
0
0
0
1px
#eee
);
@include
border-radius
(
3px
);
&
:empty
{
display
:
none
;
}
}
}
div
{
div
{
p
{
p
{
&
.answer
{
&
.answer
{
...
...
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