Color twiddling

This commit is contained in:
Neale Pickett 2023-09-13 19:24:05 -06:00
parent 13c17873d8
commit d87be0bfcb
2 changed files with 9 additions and 2 deletions

View File

@ -48,6 +48,10 @@ input, select {
margin: 0.2em;
max-width: 30em;
}
input {
background-color: #ccc4;
color: inherit;
}
.notification, .error {
padding: 0 1em;
border-radius: 8px;
@ -99,7 +103,8 @@ nav li, .category li {
max-width: 100%;
}
input:invalid {
border-color: red;
background-color: #800;
color: white;
}
.answer_ok {
cursor: help;

View File

@ -150,7 +150,9 @@ async function loadPuzzle(category, points) {
document.querySelector("title").textContent = title
document.querySelector("#title").textContent = title
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
console.info("Adding attached scripts...")