Skip to content

Commit

Permalink
Color twiddling
Browse files Browse the repository at this point in the history
  • Loading branch information
Neale Pickett committed Sep 14, 2023
1 parent 13c1787 commit d87be0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion theme/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion theme/puzzle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down

0 comments on commit d87be0b

Please sign in to comment.