Skip to content

Commit

Permalink
Added tooltip for QB functionality and tweaked some css
Browse files Browse the repository at this point in the history
  • Loading branch information
dmols committed Feb 27, 2024
1 parent 1d8e362 commit 4bf05a0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
13 changes: 11 additions & 2 deletions src/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,16 @@ <h1 id="title" ng-bind="title" ng-click="showTitleDialog = true"></h1>
</span>
<div class="random partial">
<p>Randomize Order</p>
<input type="checkbox" id="randomize" ng-model="random">
<label for="randomize" class="checktoggle"></label>
<input type="checkbox" ng-checked=enableQuestionBank ng-disabled=enableQuestionBank id="randomize" ng-model="random">
<label for="randomize" ng-class="{'disabled-look': enableQuestionBank}" class="checktoggle"></label>
</div>
<div class="question-tip randomizer-tip">?
<div class="qtip-box">
<p>
If <b>Question Bank</b> is on then the check to randomize order is disabled. This is because the question bank
randomizes the question order already.
</p>
</div>
</div>
<div class="partial">
<p>Partial scoring</p>
Expand Down Expand Up @@ -213,6 +221,7 @@ <h1>Guess the Phrase</h1>
</div>
</span>
</div>
<p class="qb-warning">If question bank is enabled, questions will be randomized. </p>
<button class="dialog-close-button"
ng-click="questionBankModal = false"
ng-disabled="questionBankValTemp < 1 || questionBankValTemp > items.length">Confirm</button>
Expand Down
27 changes: 23 additions & 4 deletions src/creator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ button.add-question {
justify-content: center;
width: 100%;
align-items: center;
margin-bottom: 15px;
margin-bottom: 5px;

.num-input {
color: black;
Expand All @@ -534,6 +534,11 @@ button.add-question {
justify-content: center;
}
}
.qb-warning {
font-size: 14px;
margin: 0;
text-align: center;
}

.dialog-close-button {
position: relative;
Expand Down Expand Up @@ -699,7 +704,7 @@ button.add-question {
background-color: $green;
color: #fff;
width: unset;
right: 550px;
right: 590px;
top: 35px;

&:hover {
Expand Down Expand Up @@ -731,7 +736,7 @@ button.add-question {

.attempts {
position: absolute;
right: 355px;
right: 395px;
cursor: pointer;
top:0px;

Expand Down Expand Up @@ -874,10 +879,17 @@ button.add-question {
.random {
position: absolute;
top: 0px;
right: 185px;
right: 225px;
font-family: "Lato";

label.checktoggle {
left: 24px;

&.disabled-look {
background-color: #676363;
opacity: 0.5;
cursor: not-allowed;
}
}
}
}
Expand All @@ -898,6 +910,9 @@ button.add-question {

transition: all 0.15s ease;

&.randomizer-tip {
right: 190px;
}
&:hover {
opacity: 1;
background: #53a1d1;
Expand Down Expand Up @@ -961,6 +976,10 @@ button.add-question {
}
}

&.randomize-tooltip {
right: 180px;
}

}

.answer {
Expand Down

0 comments on commit 4bf05a0

Please sign in to comment.