From 68c9b7560642c802ca3bfe6d7e0f7a8c54412c40 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Thu, 30 Apr 2026 10:33:23 +0800 Subject: keyboard & touch navigation, configurable settings, and refactor - keyboard support: arrow keys or `hjkl` to move cursor, Space to start selection, Enter to confirm, Escape to cancel - configurable settings: word placement directions, grid size, cell size, colors, fonts, debug mode, and more via `GameSettings` - modernize CSS (logical properties, grid layout) and HTML semantics - refactor JavaScript code around single-responsibility principles --- css/wordsearch.css | 65 ------------------------------------------------------ 1 file changed, 65 deletions(-) delete mode 100644 css/wordsearch.css (limited to 'css/wordsearch.css') diff --git a/css/wordsearch.css b/css/wordsearch.css deleted file mode 100644 index 149c36e..0000000 --- a/css/wordsearch.css +++ /dev/null @@ -1,65 +0,0 @@ -/* Wordsearch */ - -.ws-area { - background: #fafafa; - display: inline-block; - padding: 20px; - border-radius: 10px; - -moz-user-select: -moz-none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -.ws-row { - line-height: 0; -} - -.ws-col { - cursor: pointer; -} - -.ws-col.ws-selected { - background: #eee; -} - -.ws-found { - background: yellow; -} - -.ws-game-over-outer { - background: rgba(0, 0, 0, 0.85); - height: 100%; - left: 0; - position: absolute; - top: 0; - width: 100%; -} - -.ws-game-over-inner { - width:100%; - height:100%; - padding:0; - margin:0; - display:table; -} - -.ws-game-over { - display:table-cell; - vertical-align:middle; -} - -.ws-game-over h2 { - color:#FFFFFF; - font-size:2em; - text-transform:uppercase; - padding:0; - margin:0 0 9px 0; -} - -.ws-game-over p { - color:#FFFFFF; - font-size:1em; - padding:0; - margin:0; -} \ No newline at end of file -- cgit v1.2.3