-
Notifications
You must be signed in to change notification settings - Fork 111
/
wordfind.css
executable file
·158 lines (141 loc) · 2.44 KB
/
wordfind.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/**
* Wordfind.js 0.0.1
* (c) 2012 Bill, BunKat LLC.
* Wordfind is freely distributable under the MIT license.
* For all details and documentation:
* http://github.com/bunkat/wordfind
*/
body {
font: 1em Arial;
}
p {
font: 22pt sans-serif;
margin: 20px 20px 0px 20px;
}
h1 {
text-align: center; /* to center #puzzle on small devices */
}
#main {
margin: 0 auto;
max-width: 80rem;
text-align: center; /* to center #puzzle on small devices */
}
@media only screen and (min-width: 600px) {
#main {
text-align: left;
}
}
/**
* Styles for the puzzle
*/
#puzzle {
display: inline-block;
border: 1px solid black;
padding: 3vw;
}
#puzzle > div { /* rows */
width: 100%;
margin: 0 auto;
}
/* style for each square in the puzzle */
.puzzleSquare {
height: 7vw;
width: 7vw;
text-transform: uppercase;
background-color: white;
border: 0;
font: 5vw sans-serif;
}
@media only screen and (min-width: 600px) {
#puzzle {
float: left;
padding: 1rem;
}
.puzzleSquare {
height: 3.5rem;
width: 3.5rem;
font: 2.5rem sans-serif;
}
}
button::-moz-focus-inner {
border: 0;
}
/* indicates when a square has been selected */
#puzzle .selected {
background-color: orange;
}
/* indicates that the square is part of a word that has been found */
#puzzle .found {
background-color: blue;
color: white;
}
#puzzle .solved {
background-color: purple;
color: white;
}
/* indicates that all words have been found */
#puzzle .complete {
background-color: green;
}
/**
* Styles for the word list
*/
#words {
display: inline-block;
max-width: 30rem;
padding: 1em;
list-style-type: none;
text-align: left;
}
@media only screen and (min-width: 600px) {
#words {
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
column-gap: 20px;
}
}
#words li {
padding: 3px 0;
font: 1em sans-serif;
}
/* indicates that the word has been found */
.wordFound {
text-decoration: line-through;
color: gray;
}
/**
* Styles for the controls
*/
#controls {
display: inline-block;
max-width: 30rem;
padding: 1em;
border: none;
text-align: left;
}
label {
white-space: nowrap;
margin-top: 1em;
}
input {
border: none;
border-bottom: 1px solid #ccc;
font-size: 1em;
}
input[type="number"] {
width: 2rem;
}
select {
max-width: 10rem;
}
#create-grid, #solve {
display: block;
margin-top: 1rem;
}
#secret-word {
text-transform: uppercase;
}
#result-message {
font-size: 1.2em;
}