JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
tips, instructions, better selection display
[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 @selected-color: #ffa;
18 @selected-good-color: #cfc;
19
20 body {
21         background: #eef;
22         color: black;
23         font: 14px Verdana, Arial, free-sans, sans-serif;
24         margin: 0;
25         padding: 0;
26 }
27 #centerer {
28         margin: auto auto;
29         width: @board-width + @column-pad + @right-width;
30         height: @board-height;
31         position: relative;
32 }
33 #boarder {
34         background: #f5f5ff;
35         position: absolute;
36         top: 0px;
37         left: 0px;
38         width: @board-width;
39         height: @board-height;
40         border-radius: 3px;
41         box-shadow: inset 1px 1px 4px #888;
42         overflow: hidden;
43 }
44 #board {
45         position: absolute;
46         top: @board-pad;
47         left: @board-pad;
48         width: @board-inner-width;
49         height: @board-inner-height;
50 }
51 #right {
52         position: absolute;
53         top: 0px;
54         left: @board-width + @column-pad;
55         width: @right-width;
56         height: @board-height;
57         h1 {
58                 font-size: 28px;
59                 color: #55f;
60                 margin: 0;
61                 text-align: center;
62         }
63         #subhead {
64                 margin-bottom: 10px;
65                 text-align: center;
66         }
67         #tabs {
68                 position: absolute;
69                 top: @tabs-top;
70                 height: @tabtab-height * 4 + @tab-height;
71                 width: @right-width;
72         }
73         #big_tip {
74                 font-size: 24px;
75                 font-weight: bold;
76                 color: darken(@selected-color, 66%);
77                 text-align: center;
78         }
79         #big_tip.good {
80                 color: darken(@selected-good-color, 66%);
81         }
82         #score_container {
83                 font-weight: bold;
84         }
85         #little_tip {
86                 text-align: center;
87         }
88         .tab + .tab, .selected-tab + .tab, .tab + .selected-tab {
89                 margin-top: 5px;
90         }
91         .tabtab {
92                 height: @tabtab-height;
93                 padding: 0 0 0 3px;
94                 background: @tabtab-color;
95         }
96         .tabbody {
97                 height: @tab-height - @tabtab-height - @tab-pad * 2;
98                 padding: (@tab-pad - 1) (@tab-pad - 1) @tab-pad (@tab-pad + 1);
99         }
100         .selected-tab, .tab {
101                 overflow: hidden;
102                 box-shadow: 1px 1px 3px #888;
103                 background: @tab-color;
104                 border-radius: 3px;
105         }
106         .selected-tab {
107                 .tabtab:before {
108                         content: "▼ ";
109                 }
110         }
111         .tab {
112                 .tabtab:before {
113                         content: "▶ ";
114                 }
115                 .tabtab {
116                         cursor: pointer;
117                 }
118                 .tabtab:hover {
119                         color: darken(@tab-color, 50%);
120                 }
121                 .tabtab:hover:before {
122                         content: "▼ ";
123                 }
124         }
125         #copyright {
126                 position: absolute;
127                 top: @board-height - @row-pad - @copyright-height;
128                 left: 0px;
129                 font-size: 85%;
130         }
131 }
132 .tile {
133         padding-top: 4px;
134         height: 38px;
135         width: 42px;
136         background-color: #aaf;
137         color: #000;
138         font-size: 30px;
139         display: block;
140         position: absolute;
141         border-radius: 13px;
142         text-align: center;
143         cursor: pointer;
144         user-select: none;
145         -khtml-user-select: none;
146         -o-user-select: none;
147         -moz-user-select: -moz-none;
148         -webkit-user-select: none;
149         box-shadow: 1px 1px 2px #666;
150 }
151 .tile.selected, .tile.selected_word {
152         background-color: @selected-color;
153         box-shadow: inset 1px 1px 5px #444;
154 }
155 .tile.selected_word {
156         background-color: @selected-good-color;
157 }
158 #loading {
159         position: absolute;
160         top: 140px;
161         right: 140px;
162         font-size: 32px;
163 }
164 .head {
165         margin-top: -4px;
166         height: 42px;
167         width: 42px;
168         position: relative;
169         border-radius: 13px;
170 }
171 .eye1, .eye2 {
172         width: 6px;
173         height: 6px;
174         border: 2px solid #a83;
175         border-radius: 9px;
176         background-color: white;
177         position: absolute;
178 }
179 .eye1 {
180         top: -8px;
181         right: -1px;
182         width: 5px;
183         border-width: 4px 4px 3px 4px;
184 }
185 .eye2 {
186         right: -9px;
187         top: 1px;
188         border-width: 3px 4px 4px 2px;
189 }
190 .tooth1, .tooth2, .tooth3, .tooth4 {
191         width: 6px;
192         height: 6px;
193         border: 2px solid #a83;
194         background-color: white;
195         position: absolute;
196 }
197 .tooth1 {
198         top: -2px;
199         left: 22px;
200         width: 7px;
201         border-width: 2px 0 2px 2px;
202 }
203 .tooth2 {
204         height: 7px;
205         top: 12px;
206         right: -3px;
207         border-width: 0 2px 2px 2px;
208 }
209 .pate {
210         position: absolute;
211         top: -2px;
212         right: -3px;
213         width: 12px;
214         height: 12px;
215         background: white;
216         border: 2px solid #a83;
217         border-radius: 0 13px 0 0;
218 }
219 .tooth3 {
220         width: 7px;
221         bottom: -3px;
222         left: 12px;
223         border-width: 2px 2px 2px 0;
224 }
225 .tooth4 {
226         height: 7px;
227         bottom: 11px;
228         left: -2px;
229         border-width: 2px 2px 0 2px;
230 }
231 .chin {
232         position: absolute;
233         bottom: -3px;
234         left: -2px;
235         width: 12px;
236         height: 12px;
237         background: white;
238         border: 2px solid #a83;
239         border-radius: 0 0 0 13px;
240 }
241 #definition_body {
242         height: @tab-height - @tabtab-height;
243         overflow: auto;
244 }
245 #definition_credit {
246         margin-top: 15px;
247         font-size: 12px;
248 }