Previous: A technical description of the Match ID, Up: Technical Notes


11.8 Description of the CSS style sheet

As mentioned above GNU Backgammon writes a CSS style sheet along with the generated XHTML file. The CSS style sheet may be written verbatim in the header section of the XHTML file, to an external file named gnubg.css, or inside the tags using the style attribute. If you wish to make any modifications to the style sheet without modifying the actual source code of GNU Backgammon you have to choose one of the first two methods. Note that the special export for Kit Woolsey's GammOnLine uses the third method since the XHTML is pasted into a web page without the possibility to modify the header section of the page where the style sheet is defined. Thus, it's not possible to modify the style of the generated XHTML for GammOnLine without modifications of the source code or extensive search and replace in the generated XHTML.

Below follows a description of the CSS classes used in the XHTML export:

ClassDescription
.movetableStyle applied to the entire table used for the move analysis
.moveheaderThe header of the move analysis table
.movenumberThe rank number of a move in the move analysis
.moveplyThe column indicating the number of plies or rollout
.movemoveThe formatted move, e.g., 13/7 8/7.
.moveequityThe column with the equity or MWC.
.movethemoveSpecial style for row that contains the actual move chosen by the player
.moveoddSpecial style for the odd rows. Can be used to give an alternating color for the rows.
.percentStyle for the game winning probabilities and equities in the move analysis.
.blunderEmphasis blunders, e.g., Alert: missed double or Alert: bad move.
.jokerEmphasis very good or bad rolls, e.g., Alert: unlucky roll.
.stattableThe style applied to the entire table with game, match, and session statistics
.stattableheaderThe header row of the statistics table
.resultStyle for the text indicating the outcome of the game or match, e.g., Jørn Thyssen wins 16 points.
.tinyCurrently unused.
.cubedecisionThe style applied to the entire cube decision table
.cubedecisionheaderStyle for the header row of the cube decision table
.cubeequityStyle for any equity or MWC in the cube decision table
.cubeactionStyle for the text indicating the correct cube action
.cubeplyStyle for the text that states the level of evaluation
.cubeprobsStyle for the game winning probabilities in the cube decision table
.commentThe style applied to the entire table used for annotations or comments, e.g., the kibitzing from imported SGG files
.commentheaderThe style applied to the header row of the annotations' table
.numberCurrently unused
.fontfamilyStyle applied to the entire body of the XHTML document.
.blockStyle applied to the images in the export to avoid gaps between individual pictures both horizontally and vertically.
.positionidStyle for the Position ID and match ID.