Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix the icons paths in the compiled css of ProblemBlockDisplay.css
Browse files Browse the repository at this point in the history
farhan committed Jan 28, 2025
1 parent 9d12d66 commit ae72d4c
Showing 2 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion common/static/sass/_builtin-block-variables.scss
Original file line number Diff line number Diff line change
@@ -63,7 +63,6 @@
--shadow-l1: $shadow-l1;
--sidebar-color: $sidebar-color;
--small-font-size: $small-font-size;
--static-path: $static-path;
--submitted: $submitted;
--success: $success;
--tmg-f2: $tmg-f2;
20 changes: 10 additions & 10 deletions xmodule/static/css-builtin-blocks/ProblemBlockDisplay.css
Original file line number Diff line number Diff line change
@@ -577,7 +577,7 @@
top: 4px;
width: 14px;
height: 14px;
background: url("var(--static-path)/images/unanswered-icon.png") center center no-repeat;
background: var(--icon-unanswered) center center no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem div span.processing,
@@ -587,7 +587,7 @@
top: 6px;
width: 25px;
height: 20px;
background: url("var(--static-path)/images/spinner.gif") center center no-repeat;
background: var(--icon-spinner) center center no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem div span.ui-icon-check {
@@ -596,7 +596,7 @@
top: 3px;
width: 25px;
height: 20px;
background: url("var(--static-path)/images/correct-icon.png") center center no-repeat;
background: var(--icon-correct) center center no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem div span.incomplete,
@@ -606,7 +606,7 @@
top: 3px;
width: 20px;
height: 20px;
background: url("var(--static-path)/images/incorrect-icon.png") center center no-repeat;
background: var(--icon-incorrect) center center no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem div .reload {
@@ -638,7 +638,7 @@
.xmodule_display.xmodule_ProblemBlock div.problem div .grader-status .grading {
margin: 0px 7px 0 0;
padding-left: 25px;
background: url("var(--static-path)/images/info-icon.png") left center no-repeat;
background: var(--icon-info) left center no-repeat;
text-indent: 0px;
}

@@ -1396,7 +1396,7 @@
.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-errors {
margin: calc((var(--baseline, 20px) / 4));
padding: calc((var(--baseline, 20px) / 2)) calc((var(--baseline, 20px) / 2)) calc((var(--baseline, 20px) / 2)) calc((var(--baseline, 20px) * 2));
background: url("var(--static-path)/images/incorrect-icon.png") center left no-repeat;
background: var(--icon-incorrect) center left no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-errors li {
@@ -1428,23 +1428,23 @@
}

.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-correct {
background: url("var(--static-path)/images/correct-icon.png") left 20px no-repeat;
background: var(--icon-correct) left 20px no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-correct .result-actual-output {
color: #090;
}

.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-partially-correct {
background: url("var(--static-path)/images/partially-correct-icon.png") left 20px no-repeat;
background: var(--icon-partially-correct) left 20px no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-partially-correct .result-actual-output {
color: #090;
}

.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-incorrect {
background: url("var(--static-path)/images/incorrect-icon.png") left 20px no-repeat;
background: var(--icon-incorrect) left 20px no-repeat;
}

.xmodule_display.xmodule_ProblemBlock div.problem .external-grader-message section .longform .result-incorrect .result-actual-output {
@@ -1645,7 +1645,7 @@
.xmodule_display.xmodule_ProblemBlock div.problem .choicetextgroup label.choicetextgroup_show_correct::after,
.xmodule_display.xmodule_ProblemBlock div.problem .choicetextgroup section.choicetextgroup_show_correct::after {
margin-left: calc((var(--baseline, 20px) * 0.75));
content: url("var(--static-path)/images/correct-icon.png");
content: var(--icon-correct);
}

.xmodule_display.xmodule_ProblemBlock div.problem .choicetextgroup span.mock_label {

0 comments on commit ae72d4c

Please sign in to comment.