Index:Amusements in mathematics.djvu/styles.css

/* Generic style for table consisting of mostly figures (right-aligned) TODO: Full Ledger style ; */

/* Row format */ table.wst-ts__ft tr, table.__ft tr{ vertical-align:bottom; text-align:right; }

/* format of headers (centered) */

table.wst-ts__ft th, table.__ft th{ text-align:center; }

table.__counters{ margin:0 auto 0 auto; border-collapse: separate; border-spacing: 0.5em; font-size: 1.2em; }

table.__counters td{ border-radius: 50%; /* To effectively create a circle around the data items. */ border: 2px solid black; /*visible border */ margin: 1em; /*and some space between the counters*/ }

table.__datasq, table.__datasqv, table.__datasqr table.__.datasqn5{ margin:0 auto 0 auto; }

table.__datasq td, table.__datasqr td{ padding-left:1em; padding-right:1em; }

table.__datasq td{ text-align:center; }

table.__datasqr td{ text-align:right; }

table.__datasqn5 td{ padding-left:0.25em; padding-right:0.25em; text-align:center; }

/* QUERY: Should this use a different spacing rule ? */ table.__datasqv tr{ padding-top:1em; padding-bottom:1em; }

table.__datasqv td{ padding:1em; text-align: center; }

table.__datasqv2 tr:nth-child(2n+1) td{ padding-top:1em; }

table.__datasqn5 tr td:nth-child(5n+0){ padding-right:1.5em; } table.__datasqn5 tr td:nth-child(5n+1){ padding-left:1.5em; }

table.__datasqn3 tr td:nth-child(3n+0){ padding-right:1.5em; } table.__datasqn3 tr td:nth-child(3n+1){ padding-left:1.5em; }

table.__colr2n td:nth-child(2n+1){ text-align:left; }

table.__colr2n td:nth-child(2n+0){ text-align:right; } table.__midcols{ border-collapse:collapse; width: 100%; }

table.__midcols td{ border-left:1px solid black; }

table.__midcols th{ border-left:1px solid black; }

table.__midcols tr th:first-of-type { border-left:none; }

table.__midcols tr td:first-of-type { border-left:none; }

table.__midrows tr{ vertical-align:top; border-bottom:1px solid black; }

table.__midrows tr:last-of-type { border-bottom:none; }