mirror of https://github.com/dirtbags/moth.git
Color twiddling
This commit is contained in:
parent
13c17873d8
commit
d87be0bfcb
|
@ -48,6 +48,10 @@ input, select {
|
||||||
margin: 0.2em;
|
margin: 0.2em;
|
||||||
max-width: 30em;
|
max-width: 30em;
|
||||||
}
|
}
|
||||||
|
input {
|
||||||
|
background-color: #ccc4;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
.notification, .error {
|
.notification, .error {
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
@ -99,7 +103,8 @@ nav li, .category li {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
input:invalid {
|
input:invalid {
|
||||||
border-color: red;
|
background-color: #800;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
.answer_ok {
|
.answer_ok {
|
||||||
cursor: help;
|
cursor: help;
|
||||||
|
|
|
@ -150,7 +150,9 @@ async function loadPuzzle(category, points) {
|
||||||
document.querySelector("title").textContent = title
|
document.querySelector("title").textContent = title
|
||||||
document.querySelector("#title").textContent = title
|
document.querySelector("#title").textContent = title
|
||||||
document.querySelector("#authors").textContent = puzzle.Authors.join(", ")
|
document.querySelector("#authors").textContent = puzzle.Authors.join(", ")
|
||||||
document.querySelector("#answer").pattern = window.puzzle.AnswerPattern
|
if (puzzle.AnswerPattern) {
|
||||||
|
document.querySelector("#answer").pattern = puzzle.AnswerPattern
|
||||||
|
}
|
||||||
puzzleElement().innerHTML = puzzle.Body
|
puzzleElement().innerHTML = puzzle.Body
|
||||||
|
|
||||||
console.info("Adding attached scripts...")
|
console.info("Adding attached scripts...")
|
||||||
|
|
Loading…
Reference in New Issue