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
81bd0baf
Commit
81bd0baf
authored
Sep 27, 2012
by
Arjun Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix multiple choice style and multiple choice show answer style
parent
3533497b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
common/lib/capa/capa/templates/choicegroup.html
+11
-9
common/lib/xmodule/xmodule/css/capa/display.scss
+9
-7
No files found.
common/lib/capa/capa/templates/choicegroup.html
View file @
81bd0baf
<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
<div
class=
"indicator_container"
>
% 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
</div>
<fieldset>
% for choice_id, choice_description in choices:
...
...
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
81bd0baf
...
...
@@ -42,18 +42,21 @@ section.problem {
content
:
url('../images/correct-icon.png')
;
}
>
span
{
padding-right
:
20px
;
min-width
:
100px
;
width
:
auto
!
important
;
width
:
100px
;
.indicator_container
{
float
:
left
;
background-position
:
0
0
!
important
;
width
:
25px
;
margin-right
:
15px
;
}
fieldset
{
@include
box-sizing
(
border-box
);
float
:
left
;
border-left
:
1px
solid
#ddd
;
padding-left
:
20px
;
margin
:
20px
0
;
margin
:
0px
0px
20px
;
}
input
[
type
=
"radio"
],
...
...
@@ -63,8 +66,7 @@ section.problem {
}
text
{
display
:
block
;
margin-left
:
25px
;
margin-left
:
5px
;
}
}
...
...
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