1# -*- tcl -*- 2# Copyright (c) 2009 Andreas Kupries <andreas_kupries@sourceforge.net> 3 4# Support package. Container for the default CSS style used by the 5# html export plugins when the user does not specify its own style. 6 7# # ## ### ##### ######## ############# ##################### 8## Requirements 9 10package require Tcl 8.4 ; # Required Core 11 12namespace eval ::doctools::html::cssdefaults { 13 # Contents of the file we carry 14 variable c {} 15} 16 17proc ::doctools::html::cssdefaults::contents {} { 18 variable c 19 return $c 20} 21 22set ::doctools::html::cssdefaults::c { 23HTML { 24 background: #FFFFFF; 25 color: black; 26} 27BODY { 28 background: #FFFFFF; 29 color: black; 30} 31DIV.doctools { 32 margin-left: 10%; 33 margin-right: 10%; 34} 35DIV.doctools H1,DIV.doctools H2 { 36 margin-left: -5%; 37} 38H1, H2, H3, H4 { 39 margin-top: 1em; 40 font-family: sans-serif; 41 font-size: large; 42 color: #005A9C; 43 background: transparent; 44 text-align: left; 45} 46H1.title, H1.idx-title { 47 text-align: center; 48} 49UL,OL { 50 margin-right: 0em; 51 margin-top: 3pt; 52 margin-bottom: 3pt; 53} 54UL LI { 55 list-style: disc; 56} 57OL LI { 58 list-style: decimal; 59} 60DT { 61 padding-top: 1ex; 62} 63UL.toc,UL.toc UL, UL.toc UL UL { 64 font: normal 12pt/14pt sans-serif; 65 list-style: none; 66} 67LI.section, LI.subsection { 68 list-style: none; 69 margin-left: 0em; 70 text-indent: 0em; 71 padding: 0em; 72} 73PRE { 74 display: block; 75 font-family: monospace; 76 white-space: pre; 77 margin: 0%; 78 padding-top: 0.5ex; 79 padding-bottom: 0.5ex; 80 padding-left: 1ex; 81 padding-right: 1ex; 82 width: 100%; 83} 84PRE.example { 85 color: black; 86 background: #f5dcb3; 87 border: 1px solid black; 88} 89UL.requirements LI, UL.syntax LI { 90 list-style: none; 91 margin-left: 0em; 92 text-indent: 0em; 93 padding: 0em; 94} 95DIV.synopsis { 96 color: black; 97 background: #80ffff; 98 border: 1px solid black; 99 font-family: serif; 100 margin-top: 1em; 101 margin-bottom: 1em; 102} 103UL.syntax { 104 margin-top: 1em; 105 border-top: 1px solid black; 106} 107UL.requirements { 108 margin-bottom: 1em; 109 border-bottom: 1px solid black; 110} 111 112DIV.idx-kwnav { 113 width: 100%; 114 margin-top: 5pt; 115 margin-bottom: 5pt; 116 margin-left: 0%; 117 margin-right: 0%; 118 padding-top: 5pt; 119 padding-bottom: 5pt; 120 background: #DDDDDD; 121 color: black; 122 border: 1px solid black; 123 text-align: center; 124 font-size: small; 125 font-family: sans-serif; 126} 127 128/* TR.even/odd are used to get alternately colored table rows. 129 * Could probably choose better colors here... 130 */ 131 132TR.idx-even { 133 color: black; 134 background: #efffef; 135} 136 137TR.idx-odd { 138 color: black; 139 background: #efefff; 140} 141 142DIV.idx-header, DIV.idx-footer, DIV.idx-leader { 143 width: 100%; 144 margin-left: 0%; 145 margin-right: 0%; 146} 147 148TH { 149 color: #005A9C; 150 background: #DDDDDD; 151 text-align: center; 152 font-family: sans-serif; 153 font-weight: bold; 154} 155} 156 157package provide doctools::html::cssdefaults 0.1 158return 159