/********************************************************************** * * Parameters you can play with to control the whole layout * **********************************************************************/ @hue: 200; // One hue controls all the colors. // All other colors are a function of this one @saturation: 50%; // One saturation value controls the saturation // of all the other colors. Set to 100% for child mode // and to a low number for a corporate mode. @packing-factor: 0.9; // The default scheme is designed for 16pixel font. // If you want to pack things together set to a // number less than one. @cell-width-stretch-factor: 0.9; // The width of columns is defined based on the expected // number of characters. You can make the columns // narrower by setting this to less than one. @max-lines-in-cell: 5; // Cells will clip both vertically and horizontally. // If a single word does not fit in a line it will be // truncated and shown with ... // Values will wrap inside a cell and get truncated after // the number of lines specified here. I could not get // the auto scrollbars to show up only when needed. @max-top-table-height: 600px; // Vertical size of the outermost table. Should be set // to a value so that the whole table fits in the screen. // The contents of the table will scroll, and the headers // will not, so don't set this too large. @max-nested-table-height: 400px; // The maximum vertical size of nested tables before they // get a scrollbar. /**********************************************************************/ /********************************************************************** * * DON'T CHANGE ANYTHING BELOW UNLESS YOU UNDERSTAND THE COLOR SCHEME * **********************************************************************/ /********************************************************************** * * The color scheme is designed so that nested tables will alternate colors. * The outermost table is odd, subtables are even and then alternates odd/even/... * * For each level there is a dark and light color, of the same hue and * saturation, but different lightness. These colors are used for backgrounds and * borders (grid lines are even lighter) **********************************************************************/ /* Backgrounds and line colors of tables */ @color-odd-dark: hsla(@hue, @saturation, 25%, 1); @color-odd-light: hsla(@hue, @saturation, 75%, 1); @color-even-dark: hsla(@hue, @saturation, 33%, 1); @color-even-light: hsla(@hue, @saturation, 92%, 1); @table-background-color: hsla(@hue, 5%, 98%, 1); @color-odd-dark-transformation: hsla(mod(@hue - 150, 360), @saturation, 25%, 1); @color-even-dark-transformation: hsla(mod(@hue - 150, 360), @saturation, 33%, 1); @color-odd-dark-augmentdata: hsla(mod(150 + @hue, 360), @saturation, 25%, 1); @color-even-dark-augmentdata: hsla(mod(150 + @hue, 360), @saturation, 33%, 1); @table-odd-border-color: @color-odd-dark; @table-odd-vertical-grid-border-color: hsla(@hue, @saturation, 90%, 1); @table-odd-horizontal-grid-border-color: hsla(@hue, @saturation, 75%, 1); @table-even-border-color: @color-even-dark; @table-even-vertical-grid-border-color: hsla(@hue, @saturation, 90%, 1); @table-even-horizontal-grid-border-color: hsla(@hue, @saturation, 75%, 1); /* Text colors */ @value-color: hsla(@hue, 5%, 15%, 1); @header-color: hsla(@hue, @saturation, 95%, 1); @header-color-for-nested-tables: hsla(@hue, 75%, 5%, 1); /* Worksheet colors */ @worksheet-color: hsla(mod(180 + @hue, 360), @saturation, 75%, 1); @worksheet-color-light: hsla(mod(180 + @hue, 360), @saturation, 85%, 1); /* Padding and sizes */ @base-font-size-px: 16px; @base-cell-left-right-padding: 10px; @base-cell-top-bottom-padding: 5px; @cell-font-size-px: ceil(@packing-factor*@base-font-size-px); @cell-left-right-padding: floor(@packing-factor*@base-cell-left-right-padding); @cell-top-bottom-padding: floor(@packing-factor*@packing-factor*@base-cell-top-bottom-padding); @cell-border-width: 1px; /********************************************************************** * * Styles * **********************************************************************/ body { font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; } // The outermost element containing the whole worksheet. .worksheet { margin: 0 auto; margin-top: 30px; padding: 4px; border: 0px solid black; background-color: @worksheet-color; font-size: @cell-font-size-px; } .worksheet-header { } // Used for the name of the source. // .worksheet-header h1 { font-size: 1.8*@cell-font-size-px; font-weight: bold; padding-bottom: 2px; padding-top: 5px; color: @color-odd-dark; text-align: center; } // If we have links or other toolbar items, they go inside a