Skip to content

Commit

Permalink
bring back colors
Browse files Browse the repository at this point in the history
  • Loading branch information
menocsk27 committed Oct 30, 2024
1 parent a16e123 commit 34ef07d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/public/js/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ function createConceptDropdowns(concepts) {
concept.value = k;
concept.innerHTML = concepts[k].short;
if (concepts[k].rhs && concepts[k].rhs.length > 0) {
concept.classList.add('option-rhs-true');
toProof.appendChild(concept);
} else {
concept.classList.add('option-rhs-false');
toCE.appendChild(concept);
}
}
Expand Down Expand Up @@ -127,9 +129,11 @@ function createConceptDropdowns(concepts) {
rhsC.innerHTML = concepts[rhsKey].short;
if (ccs.has(rhsKey)) {
rhsC.type = "pr";
rhsC.classList.add('option-rhs-true');
toProof.appendChild(rhsC);
} else {
rhsC.type = "ce";
rhsC.classList.add('option-rhs-false');
toCE.appendChild(rhsC);
}
});
Expand Down
8 changes: 8 additions & 0 deletions frontend/public/style/widgets/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,12 @@ span.badge.new {

.wide-row {
width: 55%;
}

.option-rhs-true {
background-color: var(--color-teal-light);
}

.option-rhs-false {
background-color: var(--color-orange-light);
}

0 comments on commit 34ef07d

Please sign in to comment.