annotate web/scoring/scores.css @ 31:7303535b5a5d

Right-align the numeric columns. The Game.printTable() method now right-aligns the name, rank, and score columns, by giving their cells a different CSS class.
author John "Elwin" Edwards
date Thu, 02 Jan 2014 11:39:57 -0500
parents 17f656035775
children d2c3c29ca4f9
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 }
31
7303535b5a5d Right-align the numeric columns.
John "Elwin" Edwards
parents: 10
diff changeset
45
7303535b5a5d Right-align the numeric columns.
John "Elwin" Edwards
parents: 10
diff changeset
46 span.sdatar {
7303535b5a5d Right-align the numeric columns.
John "Elwin" Edwards
parents: 10
diff changeset
47 display: table-cell;
7303535b5a5d Right-align the numeric columns.
John "Elwin" Edwards
parents: 10
diff changeset
48 padding: 0 1em;
7303535b5a5d Right-align the numeric columns.
John "Elwin" Edwards
parents: 10
diff changeset
49 text-align: right;
7303535b5a5d Right-align the numeric columns.
John "Elwin" Edwards
parents: 10
diff changeset
50 }