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
90d7141c
Commit
90d7141c
authored
Aug 18, 2016
by
alisan617
Committed by
GitHub
Aug 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12853 from eduNEXT/Bound3R/TNL-3717
resolve byte-sized bug TNL-3717
parents
594e75c4
3c5b0a9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
66 deletions
+75
-66
common/lib/xmodule/xmodule/css/capa/display.scss
+75
-66
No files found.
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
90d7141c
...
...
@@ -154,90 +154,99 @@ div.problem {
}
}
// +Problem - Choice Group
// ====================
div
.problem
{
.choicegroup
{
@include
clearfix
();
min-width
:
100px
;
width
:
auto
!
important
;
width
:
100px
;
// Choice Group - silent class
%choicegroup-base
{
@include
clearfix
();
min-width
:
100px
;
width
:
auto
!
important
;
width
:
100px
;
label
{
@include
box-sizing
(
border-box
);
display
:
inline-block
;
clear
:
both
;
margin-bottom
:
(
$baseline
/
2
);
border
:
2px
solid
$gray-l4
;
border-radius
:
3px
;
padding
:
(
$baseline
/
2
);
width
:
100%
;
label
{
@include
box-sizing
(
border-box
);
display
:
inline-block
;
clear
:
both
;
margin-bottom
:
(
$baseline
/
2
);
border
:
2px
solid
$gray-l4
;
border-radius
:
3px
;
padding
:
(
$baseline
/
2
);
width
:
100%
;
&
:after
{
@include
margin-left
(
$baseline
*.
75
);
}
&
.choicegroup_correct
{
@include
status-icon
(
$correct
,
"\f00c"
)
;
border
:
2px
solid
$correct
;
&
:hover
{
border
:
2px
solid
$blue
;
}
&
:after
{
@include
margin-left
(
$baseline
*.
75
);
}
&
.choicegroup_correct
{
@include
status-icon
(
$correct
,
"\f00c"
);
border
:
2px
solid
$correct
;
// keep green for correct answers on hover.
&
:hover
{
border-color
:
$correct
;
}
// keep green for correct answers on hover.
&
:hover
{
border-color
:
$correct
;
}
}
&
.choicegroup_partially-correct
{
@include
status-icon
(
$partiallycorrect
,
"\f069"
);
border
:
2px
solid
$partiallycorrect
;
&
:after
{
@include
margin-left
(
$baseline
*.
75
);
}
&
.choicegroup_partially-correct
{
@include
status-icon
(
$partiallycorrect
,
"\f069"
);
border
:
2px
solid
$partiallycorrect
;
// keep green for correct answers on hover.
&
:hover
{
border-color
:
$partiallycorrect
;
}
// keep green for correct answers on hover.
&
:hover
{
border-color
:
$partiallycorrect
;
}
}
&
.choicegroup_incorrect
{
@include
status-icon
(
$incorrect
,
"\f00d"
);
border
:
2px
solid
$incorrect
;
&
:after
{
@include
margin-left
(
$baseline
*.
75
);
}
// keep red for incorrect answers on hover.
&
:hover
{
border-color
:
$incorrect
;
}
}
&
.choicegroup_incorrect
{
@include
status-icon
(
$incorrect
,
"\f00d"
);
border
:
2px
solid
$incorrect
;
// keep red for incorrect answers on hover.
&
:hover
{
border
:
2px
solid
$blue
;
border
-color
:
$incorrect
;
}
}
}
.indicator-container
{
display
:
inline-block
;
min-height
:
1px
;
width
:
25px
;
}
.indicator-container
{
display
:
inline-block
;
min-height
:
1px
;
width
:
25px
;
}
fieldset
{
@include
box-sizing
(
border-box
);
fieldset
{
@include
box-sizing
(
border-box
);
}
input
[
type
=
"radio"
],
input
[
type
=
"checkbox"
]
{
@include
margin
((
$baseline
/
4
)
(
$baseline
/
2
)
(
$baseline
/
4
)
(
$baseline
/
4
));
}
text
{
@include
margin-left
(
25px
);
display
:
inline
;
}
}
// +Problem - Choice Group
// ====================
div
.problem
{
.choicegroup
{
@extend
%choicegroup-base
;
label
{
@include
padding
(
$baseline
/
2
);
@include
padding-left
(
$baseline
*
1
.75
);
position
:
relative
;
}
input
[
type
=
"radio"
],
input
[
type
=
"checkbox"
]
{
@include
margin
((
$baseline
/
4
)
(
$baseline
/
2
)
(
$baseline
/
4
)
(
$baseline
/
4
));
}
text
{
@include
margin-left
(
25px
);
display
:
inline
;
@include
left
(
$baseline
/
4
);
position
:
absolute
;
top
:
em
(
11
);
}
}
}
...
...
@@ -1409,7 +1418,7 @@ div.problem {
// ====================
div
.problem
{
.choicetextgroup
{
@extend
.choicegroup
;
@extend
%choicegroup-base
;
input
[
type
=
"text"
]
{
margin-bottom
:
0
.5em
;
...
...
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