Skip to content

Commit dcb58b8

Browse files
committed
changed layout for mobile chrome
1 parent ce0ba13 commit dcb58b8

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

css/Ubuntu.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818

1919
body {
2020
font-family: 'Ubuntu', sans-serif;
21+
font-size: 1em;
2122
}
23+
24+

css/playfield.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212

1313
.playfield.success .regex {
14-
width: calc(100% - 1.5em);
14+
width: calc(100% - 2em);
1515
}
1616
.playfield.success:before {
1717
content: "✓";

css/quiz.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
}
1616

1717
.quiz .choices li {
18-
18+
padding-top: 0.3em;
19+
padding-bottom: 0.3em;
1920
}
2021
.quiz .choices li.ok {
2122

@@ -24,10 +25,12 @@
2425

2526
}
2627

27-
.quiz .button-ok {
28-
display: inline-block;
28+
.quiz .button {
2929
padding: 0.3em;
3030
}
31+
32+
.quiz .button-ok {
33+
}
3134
.quiz .button-ok:hover {
3235
background-color: {{ site.data.colors.works }};
3336
color: black;
@@ -38,8 +41,6 @@
3841
}
3942

4043
.quiz .button-fail {
41-
display: inline;
42-
padding: 0.3em;
4344
margin-right: 1em;
4445
}
4546
.quiz .button-fail:hover {

js/quiz.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function prependChoice(choice, correctness, text) {
2-
var div = document.createElement("div");
2+
var div = document.createElement("span");
33
div.innerText = text;
4+
div.classList.add("button");
45
div.classList.add(correctness);
56
choice.prepend(div);
67
div.onclick = function() {

0 commit comments

Comments
 (0)