Skip to content

Commit 9046b25

Browse files
committed
18.4
[GTI] - better tap targets spacing - change styling of block buttons - restructure css - minor fixes [general] - minor tweaks and fixes
1 parent 768a4a3 commit 9046b25

6 files changed

Lines changed: 26 additions & 20 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/404.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: mier (not found)
2+
title: mier (404)
33
layout: base.njk
44
permalink: /404.html
55
---

src/content/collections/projects/gti.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buttons: [
2323
</div>
2424
<span class="button" id="reset"><img src="/assets/icons/button/reset.svg" class="icon invert" alt="reset"> reset</span>
2525
<div id="options">
26-
<h3>opciones.</h3>
26+
<h2>opciones.</h2>
2727
<input type="checkbox" id="shuffle-questions" checked>
2828
<label for="shuffle-questions">saltear preguntas</label>
2929
<br>

src/static/css/app/gti.sass

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
@use '../base'
22

3-
.disabled.selected
4-
background-color: base.$wrong
3+
.selected // selected answers
4+
&.correct
5+
background-color: base.$correct !important
56

6-
.correct.selected
7-
background-color: base.$correct
7+
&.disabled
8+
background-color: base.$wrong
89

9-
.disabled
10-
background-color: base.$light
10+
.disabled // not selected answers
11+
background-color: base.$dark
12+
13+
&.correct:not(.selected)
14+
background-color: base.$correct-background
1115

12-
.disabled.correct:not(.selected)
13-
background-color: base.$correct-background
16+
.question-block
17+
&.correct
18+
border-color: base.$correct-background
1419

15-
.question-block.correct
16-
border-color: base.$correct-background
20+
&.wrong
21+
border-color: base.$wrong-background
22+
23+
.select-block
24+
background-color: base.$light
1725

18-
.question-block.wrong
19-
border-color: base.$wrong-background
26+
&.selected
27+
background-color: base.$white
2028

2129
.disabled:hover
2230
cursor: auto
@@ -73,3 +81,4 @@
7381
#options input
7482
height: 1.25em
7583
width: 1.25em
84+
margin: 6px

src/static/css/global.sass

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ a, a:visited
4747
&.disabled:hover
4848
animation: none
4949

50-
.active:not(.section)
51-
animation: base.$animation
52-
5350
.disabled
5451
cursor: not-allowed !important
5552
opacity: 0.5

src/static/js/app/gti.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ window.addEventListener('load', () => { // when the page loads (the content is r
2323
currentQuestionsDiv.innerHTML = questionsBlock.innerHTML;
2424

2525
resetAll(false);
26-
document.querySelectorAll('.select-block').forEach((b) => b.classList.remove('active'));
27-
block.classList.add('active');
26+
document.querySelectorAll('.select-block').forEach((b) => b.classList.remove('selected'));
27+
block.classList.add('selected');
2828
});
2929
});
3030

0 commit comments

Comments
 (0)