annotate web/scoring/scores.css @ 21:453278a81371

Add tablerecent() so recent.cgi will work as before. Port the tablerecent() function, which reads the most recent games directly from the logfile instead of the database. This allows recent.cgi to show games immediately without waiting for the recorder to put them in the database.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 17 Sep 2012 13:41:10 -0700
parents 17f656035775
children 7303535b5a5d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
1 @import url("/main.css");
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
2
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
3 div.stable {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
4 display: table;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
5 border-width: 1px;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
6 border-color: #101040;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
7 border-style: solid;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
8 border-collapse: collapse;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
9 }
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
10
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
11 div.sentry {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
12 display: table-row;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
13 border-width: 1px 0;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
14 border-color: #101040;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
15 border-style: solid;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
16 }
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
17
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
18 div.sentry:first-child {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
19 background-color: #E0E0E0;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
20 }
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
21
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
22 div.sentry:nth-child(3n) {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
23 background-color: #E0E0FF;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
24 }
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
25
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
26 div.sentry:nth-child(3n+4) {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
27 background-color: #E0FFE0;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
28 }
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
29
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
30 div.sentry:nth-child(3n+2) {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
31 background-color: #FFE0E0;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
32 }
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
33
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
34 span.shdata {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
35 display: table-cell;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
36 font-weight: bold;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
37 text-align: center;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
38 padding: 0 1em;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
39 }
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
40
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
41 span.sdata {
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
42 display: table-cell;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
43 padding: 0 1em;
17f656035775 Import the web/scoring/ files.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff changeset
44 }