Refactored the status icon and span to a unified template and updated tests

This commit is contained in:
Albert St. Aubin
2016-06-08 14:18:10 +05:00
parent 04fa2a4263
commit 055fd6ea8f
29 changed files with 254 additions and 250 deletions

View File

@@ -23,9 +23,6 @@
// ====================
$annotation-yellow: rgba(255,255,10,0.3);
$color-copy-tip: rgb(100,100,100);
$correct: $green-d2;
$partially-correct: $green-d2;
$incorrect: $red;
// FontAwesome Icon code
// ====================
@@ -50,11 +47,13 @@ $asterisk-icon: '\f069'; // .fa-asterisk
// ====================
@mixin status-icon($color: $gray, $fontAwesomeIcon: "\f00d"){
&:after {
@extend %use-font-awesome;
color: $color;
font-size: 1.2em;
content: $fontAwesomeIcon;
.status-icon {
&:after {
@extend %use-font-awesome;
color: $color;
font-size: 1.2em;
content: $fontAwesomeIcon;
}
}
}
@@ -318,6 +317,12 @@ div.problem {
@include status-icon($incorrect, $cross-icon);
}
&.unsubmitted,
&.unanswered {
.status-icon {
content: '';
}
}
}
}
}
@@ -818,12 +823,14 @@ div.problem {
}
.status {
&:after {
content: ''; // clear out correct or incorrect icon
.status-icon {
&:after {
content: '';
}
}
}
}
}
.trailing_text {