Commit 90d7141c by alisan617 Committed by GitHub

Merge pull request #12853 from eduNEXT/Bound3R/TNL-3717

resolve byte-sized bug TNL-3717
parents 594e75c4 3c5b0a9f
...@@ -154,10 +154,8 @@ div.problem { ...@@ -154,10 +154,8 @@ div.problem {
} }
} }
// +Problem - Choice Group // Choice Group - silent class
// ==================== %choicegroup-base {
div.problem {
.choicegroup {
@include clearfix(); @include clearfix();
min-width: 100px; min-width: 100px;
width: auto !important; width: auto !important;
...@@ -173,14 +171,18 @@ div.problem { ...@@ -173,14 +171,18 @@ div.problem {
padding: ($baseline/2); padding: ($baseline/2);
width: 100%; width: 100%;
&.choicegroup_correct {
@include status-icon($correct, "\f00c");
border: 2px solid $correct;
&:after { &:after {
@include margin-left($baseline*.75); @include margin-left($baseline*.75);
} }
&:hover {
border: 2px solid $blue;
}
&.choicegroup_correct {
@include status-icon($correct, "\f00c");
border: 2px solid $correct;
// keep green for correct answers on hover. // keep green for correct answers on hover.
&:hover { &:hover {
border-color: $correct; border-color: $correct;
...@@ -191,10 +193,6 @@ div.problem { ...@@ -191,10 +193,6 @@ 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;
...@@ -205,19 +203,11 @@ div.problem { ...@@ -205,19 +203,11 @@ 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;
} }
} }
&:hover {
border: 2px solid $blue;
}
} }
.indicator-container { .indicator-container {
...@@ -239,6 +229,25 @@ div.problem { ...@@ -239,6 +229,25 @@ div.problem {
@include margin-left(25px); @include margin-left(25px);
display: inline; 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 left($baseline/4);
position: absolute;
top: em(11);
}
} }
} }
...@@ -1409,7 +1418,7 @@ div.problem { ...@@ -1409,7 +1418,7 @@ div.problem {
// ==================== // ====================
div.problem { div.problem {
.choicetextgroup { .choicetextgroup {
@extend .choicegroup; @extend %choicegroup-base;
input[type="text"]{ input[type="text"]{
margin-bottom: 0.5em; margin-bottom: 0.5em;
......
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