Commit cb252c31 by Sarina Canelake

Merge pull request #10275 from edx/frances/capa-problem-status-fix

Fix for problem status feedback spacing and partial credit hint
parents ce5f7901 c5a197eb
...@@ -43,7 +43,6 @@ $incorrect: $red; ...@@ -43,7 +43,6 @@ $incorrect: $red;
&:after { &:after {
@extend %use-font-awesome; @extend %use-font-awesome;
@include margin-left(17px);
color: $color; color: $color;
font-size: 1.2em; font-size: 1.2em;
content: $fontAwesomeIcon; content: $fontAwesomeIcon;
...@@ -174,6 +173,10 @@ div.problem { ...@@ -174,6 +173,10 @@ div.problem {
@include status-icon($correct, "\f00c"); @include status-icon($correct, "\f00c");
border: 2px solid $correct; border: 2px solid $correct;
&:after {
@include margin-left($baseline*.75);
}
// keep green for correct answers on hover. // keep green for correct answers on hover.
&:hover { &:hover {
border-color: $correct; border-color: $correct;
...@@ -184,6 +187,10 @@ div.problem { ...@@ -184,6 +187,10 @@ div.problem {
@include status-icon($partiallycorrect, "\f069"); @include status-icon($partiallycorrect, "\f069");
border: 2px solid $partiallycorrect; border: 2px solid $partiallycorrect;
&:after {
@include margin-left($baseline*.75);
}
// keep green for correct answers on hover. // keep green for correct answers on hover.
&:hover { &:hover {
border-color: $partiallycorrect; border-color: $partiallycorrect;
...@@ -194,6 +201,10 @@ div.problem { ...@@ -194,6 +201,10 @@ div.problem {
@include status-icon($incorrect, "\f00d"); @include status-icon($incorrect, "\f00d");
border: 2px solid $incorrect; border: 2px solid $incorrect;
&:after {
@include margin-left($baseline*.75);
}
// keep red for incorrect answers on hover. // keep red for incorrect answers on hover.
&:hover { &:hover {
border-color: $incorrect; border-color: $incorrect;
...@@ -233,6 +244,7 @@ div.problem { ...@@ -233,6 +244,7 @@ div.problem {
div.problem { div.problem {
.indicator-container { .indicator-container {
@include margin-left($baseline*.75);
.status { .status {
width: $baseline; width: $baseline;
...@@ -754,6 +766,7 @@ div.problem { ...@@ -754,6 +766,7 @@ div.problem {
.status { .status {
display: inline-block; display: inline-block;
margin-top: ($baseline/2); margin-top: ($baseline/2);
@include margin-left($baseline*.75);
background: none; background: none;
} }
...@@ -815,10 +828,6 @@ div.problem { ...@@ -815,10 +828,6 @@ div.problem {
margin: (-$baseline/2) 0 $baseline; margin: (-$baseline/2) 0 $baseline;
padding-bottom: $baseline; padding-bottom: $baseline;
select {
@include margin-right($baseline/2);
}
.indicator-container { .indicator-container {
display: inline-block; display: inline-block;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment