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
f93115ee
Commit
f93115ee
authored
Sep 27, 2012
by
kimth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #778 from MITx/hotfix/arjun/mc_style
Fixes multiple choice styling
parents
eb8cef93
71923e7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
17 deletions
+24
-17
common/lib/capa/capa/templates/choicegroup.html
+11
-9
common/lib/xmodule/xmodule/css/capa/display.scss
+12
-7
run_watch_data.py
+1
-1
No files found.
common/lib/capa/capa/templates/choicegroup.html
View file @
f93115ee
<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 @
f93115ee
...
...
@@ -38,22 +38,27 @@ section.problem {
.choicegroup
{
@include
clearfix
;
label
.choicegroup_correct
:after
{
content
:
url('../images/correct-icon.png')
;
label
.choicegroup_correct
{
text
:after
{
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"
],
...
...
run_watch_data.py
View file @
f93115ee
...
...
@@ -17,7 +17,7 @@ from watchdog.events import LoggingEventHandler, FileSystemEventHandler
# watch fewer or more extensions, you can change EXTENSIONS. To watch all
# extensions, add "*" to EXTENSIONS.
WATCH_DIRS
=
[
"../data"
,
"common/lib/xmodule/xmodule/js"
]
WATCH_DIRS
=
[
"../data"
,
"common/lib/xmodule/xmodule/js"
,
"common/lib/xmodule/xmodule/css"
]
EXTENSIONS
=
[
"*"
,
"xml"
,
"js"
,
"css"
,
"coffee"
,
"scss"
,
"html"
]
WATCH_DIRS
=
[
os
.
path
.
abspath
(
os
.
path
.
normpath
(
dir
))
for
dir
in
WATCH_DIRS
]
...
...
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