JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
improve tab-completion in source code
[hexbog.git] / style.less
1 @board-inner-width: 358px;
2 @board-inner-height: 410px;
3 @board-pad: 15px; // also in main.coffee
4 @board-width: @board-inner-width + @board-pad * 2;
5 @board-height: @board-inner-height + @board-pad * 2;
6 @column-pad: 10px;
7 @right-width: 250px;
8 @tabs-top: 150px;
9 @tabtab-height: 20px; // also in main.coffee
10 @tab-height: 150px; // also in main.coffee
11 @tab-pad: 5px;
12 @row-pad: 10px;
13 @copyright-height: 20px;
14
15 @tab-color: #ddf;
16 @tabtab-color: darken(@tab-color, 3%);
17 @tile-color: #aaf;
18 @selected-color: #ffa;
19 @selected-good-color: #cfc;
20
21 body {
22         background: #eef;
23         color: black;
24         font: 14px Verdana, Arial, free-sans, sans-serif;
25         margin: 0;
26         padding: 0;
27 }
28 #centerer {
29         margin: auto auto;
30         width: @board-width + @column-pad + @right-width;
31         height: @board-height;
32         position: relative;
33 }
34 #boarder {
35         background: #f5f5ff;
36         position: absolute;
37         top: 0px;
38         left: 0px;
39         width: @board-width;
40         height: @board-height;
41         border-radius: 3px;
42         box-shadow: inset 1px 1px 4px #888;
43         overflow: hidden;
44 }
45 #board {
46         position: absolute;
47         top: @board-pad;
48         left: @board-pad;
49         width: @board-inner-width;
50         height: @board-inner-height;
51 }
52 #right {
53         position: absolute;
54         top: 0px;
55         left: @board-width + @column-pad;
56         width: @right-width;
57         height: @board-height;
58         h1 {
59                 font-size: 28px;
60                 color: #55f;
61                 margin: 0;
62                 text-align: center;
63         }
64         #subhead {
65                 margin-bottom: 10px;
66                 text-align: center;
67         }
68         #tabs {
69                 position: absolute;
70                 top: @tabs-top;
71                 height: @tabtab-height * 4 + @tab-height;
72                 width: @right-width;
73         }
74         #big_tip {
75                 font-size: 24px;
76                 font-weight: bold;
77                 color: darken(@selected-color, 66%);
78                 text-align: center;
79         }
80         #big_tip.good a {
81                 color: darken(@selected-good-color, 66%);
82                 text-decoration: none;
83         }
84         #score_container {
85                 margin-top: 10px;
86                 font-weight: bold;
87         }
88         #little_tip {
89                 text-align: center;
90         }
91         .tab + .tab, .selected-tab + .tab, .tab + .selected-tab {
92                 margin-top: 5px;
93         }
94         .tabtab {
95                 height: @tabtab-height;
96                 padding: 0 0 0 3px;
97                 background: @tabtab-color;
98         }
99         .tabbody {
100                 height: @tab-height - @tabtab-height - @tab-pad * 2;
101                 padding: (@tab-pad - 1) (@tab-pad - 1) @tab-pad (@tab-pad + 1);
102         }
103         .selected-tab, .tab {
104                 overflow: hidden;
105                 box-shadow: 1px 1px 3px #888;
106                 background: @tab-color;
107                 border-radius: 3px;
108         }
109         .selected-tab {
110                 .tabtab:before {
111                         content: "▼ ";
112                 }
113         }
114         .tab {
115                 .tabtab:before {
116                         content: "▶ ";
117                 }
118                 .tabtab {
119                         cursor: pointer;
120                 }
121                 .tabtab:hover {
122                         color: darken(@tab-color, 50%);
123                 }
124                 .tabtab:hover:before {
125                         content: "▼ ";
126                 }
127         }
128         #copyright {
129                 position: absolute;
130                 top: @board-height - @row-pad - @copyright-height;
131                 left: 0px;
132                 font-size: 85%;
133         }
134 }
135 .tile {
136         padding-top: 4px;
137         height: 38px;
138         width: 42px;
139         font-size: 30px;
140         display: block;
141         position: absolute;
142         border-radius: 13px;
143         text-align: center;
144         cursor: pointer;
145         user-select: none;
146         -khtml-user-select: none;
147         -o-user-select: none;
148         -moz-user-select: -moz-none;
149         -webkit-user-select: none;
150         box-shadow: 1px 1px 2px #666;
151
152         &.hp10 {
153                 color: #000;
154                 background-color: @tile-color;
155         }
156         &.hp9 {
157                 color: lighten(#000, 4%);
158                 background-color: lighten(desaturate(@tile-color, 10%), 1%);
159         }
160         &.hp8 {
161                 color: lighten(#000, 8%);
162                 background-color: lighten(desaturate(@tile-color, 20%), 2%);
163         }
164         &.hp7 {
165                 color: lighten(#000, 12%);
166                 background-color: lighten(desaturate(@tile-color, 30%), 3%);
167         }
168         &.hp6 {
169                 color: lighten(#000, 16%);
170                 background-color: lighten(desaturate(@tile-color, 40%), 4%);
171         }
172         &.hp5 {
173                 color: lighten(#000, 20%);
174                 background-color: lighten(desaturate(@tile-color, 50%), 5%);
175         }
176         &.hp4 {
177                 color: lighten(#000, 24%);
178                 background-color: lighten(desaturate(@tile-color, 60%), 6%);
179         }
180         &.hp3 {
181                 color: lighten(#000, 28%);
182                 background-color: lighten(desaturate(@tile-color, 70%), 7%);
183         }
184         &.hp2 {
185                 color: lighten(#000, 32%);
186                 background-color: lighten(desaturate(@tile-color, 80%), 8%);
187         }
188         &.hp1 {
189                 color: lighten(#000, 36%);
190                 background-color: spin(lighten(desaturate(@tile-color, 70%), 9%), 100);
191         }
192         &.hp0 {
193                 cursor: default;
194                 color: lighten(desaturate(@tile-color, 100%), 10%);
195                 background-color: lighten(desaturate(@tile-color, 100%), 10%);
196         }
197
198         &.selected, &.selected_word {
199                 background-color: @selected-color;
200                 box-shadow: inset 1px 1px 5px #444;
201         }
202         &.selected_word {
203                 background-color: @selected-good-color;
204         }
205 }
206 #loading {
207         position: absolute;
208         top: 140px;
209         right: 140px;
210         font-size: 32px;
211 }
212 .head {
213         margin-top: -4px;
214         height: 42px;
215         width: 42px;
216         position: relative;
217         border-radius: 13px;
218 }
219 .eye1, .eye2 {
220         width: 6px;
221         height: 6px;
222         border: 2px solid #a83;
223         border-radius: 9px;
224         background-color: white;
225         position: absolute;
226 }
227 .eye1 {
228         top: -8px;
229         right: -1px;
230         width: 5px;
231         border-width: 4px 4px 3px 4px;
232 }
233 .eye2 {
234         right: -9px;
235         top: 1px;
236         border-width: 3px 4px 4px 2px;
237 }
238 .tooth1, .tooth2, .tooth3, .tooth4 {
239         width: 6px;
240         height: 6px;
241         border: 2px solid #a83;
242         background-color: white;
243         position: absolute;
244 }
245 .tooth1 {
246         top: -2px;
247         left: 22px;
248         width: 7px;
249         border-width: 2px 0 2px 2px;
250 }
251 .tooth2 {
252         height: 7px;
253         top: 12px;
254         right: -3px;
255         border-width: 0 2px 2px 2px;
256 }
257 .pate {
258         position: absolute;
259         top: -2px;
260         right: -3px;
261         width: 12px;
262         height: 12px;
263         background: white;
264         border: 2px solid #a83;
265         border-radius: 0 13px 0 0;
266 }
267 .tooth3 {
268         width: 7px;
269         bottom: -3px;
270         left: 12px;
271         border-width: 2px 2px 2px 0;
272 }
273 .tooth4 {
274         height: 7px;
275         bottom: 11px;
276         left: -2px;
277         border-width: 2px 2px 0 2px;
278 }
279 .chin {
280         position: absolute;
281         bottom: -3px;
282         left: -2px;
283         width: 12px;
284         height: 12px;
285         background: white;
286         border: 2px solid #a83;
287         border-radius: 0 0 0 13px;
288 }
289 #definition_body {
290         height: @tab-height - @tabtab-height;
291         overflow: auto;
292 }
293 #definition_credit {
294         margin-top: 15px;
295         font-size: 12px;
296 }