JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
remove m-dashes, add margin above score
[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                 margin-top: 10px;
84                 font-weight: bold;
85         }
86         #little_tip {
87                 text-align: center;
88         }
89         .tab + .tab, .selected-tab + .tab, .tab + .selected-tab {
90                 margin-top: 5px;
91         }
92         .tabtab {
93                 height: @tabtab-height;
94                 padding: 0 0 0 3px;
95                 background: @tabtab-color;
96         }
97         .tabbody {
98                 height: @tab-height - @tabtab-height - @tab-pad * 2;
99                 padding: (@tab-pad - 1) (@tab-pad - 1) @tab-pad (@tab-pad + 1);
100         }
101         .selected-tab, .tab {
102                 overflow: hidden;
103                 box-shadow: 1px 1px 3px #888;
104                 background: @tab-color;
105                 border-radius: 3px;
106         }
107         .selected-tab {
108                 .tabtab:before {
109                         content: "▼ ";
110                 }
111         }
112         .tab {
113                 .tabtab:before {
114                         content: "▶ ";
115                 }
116                 .tabtab {
117                         cursor: pointer;
118                 }
119                 .tabtab:hover {
120                         color: darken(@tab-color, 50%);
121                 }
122                 .tabtab:hover:before {
123                         content: "▼ ";
124                 }
125         }
126         #copyright {
127                 position: absolute;
128                 top: @board-height - @row-pad - @copyright-height;
129                 left: 0px;
130                 font-size: 85%;
131         }
132 }
133 .tile {
134         padding-top: 4px;
135         height: 38px;
136         width: 42px;
137         background-color: #aaf;
138         color: #000;
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 .tile.selected, .tile.selected_word {
153         background-color: @selected-color;
154         box-shadow: inset 1px 1px 5px #444;
155 }
156 .tile.selected_word {
157         background-color: @selected-good-color;
158 }
159 #loading {
160         position: absolute;
161         top: 140px;
162         right: 140px;
163         font-size: 32px;
164 }
165 .head {
166         margin-top: -4px;
167         height: 42px;
168         width: 42px;
169         position: relative;
170         border-radius: 13px;
171 }
172 .eye1, .eye2 {
173         width: 6px;
174         height: 6px;
175         border: 2px solid #a83;
176         border-radius: 9px;
177         background-color: white;
178         position: absolute;
179 }
180 .eye1 {
181         top: -8px;
182         right: -1px;
183         width: 5px;
184         border-width: 4px 4px 3px 4px;
185 }
186 .eye2 {
187         right: -9px;
188         top: 1px;
189         border-width: 3px 4px 4px 2px;
190 }
191 .tooth1, .tooth2, .tooth3, .tooth4 {
192         width: 6px;
193         height: 6px;
194         border: 2px solid #a83;
195         background-color: white;
196         position: absolute;
197 }
198 .tooth1 {
199         top: -2px;
200         left: 22px;
201         width: 7px;
202         border-width: 2px 0 2px 2px;
203 }
204 .tooth2 {
205         height: 7px;
206         top: 12px;
207         right: -3px;
208         border-width: 0 2px 2px 2px;
209 }
210 .pate {
211         position: absolute;
212         top: -2px;
213         right: -3px;
214         width: 12px;
215         height: 12px;
216         background: white;
217         border: 2px solid #a83;
218         border-radius: 0 13px 0 0;
219 }
220 .tooth3 {
221         width: 7px;
222         bottom: -3px;
223         left: 12px;
224         border-width: 2px 2px 2px 0;
225 }
226 .tooth4 {
227         height: 7px;
228         bottom: 11px;
229         left: -2px;
230         border-width: 2px 2px 0 2px;
231 }
232 .chin {
233         position: absolute;
234         bottom: -3px;
235         left: -2px;
236         width: 12px;
237         height: 12px;
238         background: white;
239         border: 2px solid #a83;
240         border-radius: 0 0 0 13px;
241 }
242 #definition_body {
243         height: @tab-height - @tabtab-height;
244         overflow: auto;
245 }
246 #definition_credit {
247         margin-top: 15px;
248         font-size: 12px;
249 }