Book/Editor: digest.css

File digest.css, 3.4 KB (added by Fran Boon, 13 years ago)
Line 
1.tip {
2 border-style: solid;
3 border-width: 2px;
4 padding-left: 4px;
5 padding-right: 4px;
6}
7body {
8 font-family: "fontin sans";
9 background: #fff;
10 color: #000;
11 font-size:12pt;
12 max-width: 700px;
13}
14
15/*Page widths */
16/* just in case body max-width doesn't work */
17div, p, ul, pre, h1, h2 {
18 max-width: 700px;
19 overflow: hidden;
20}
21
22table, tbody, tr, td {
23 max-width: 700px;
24 overflow: hidden;
25}
26
27img {
28 max-width: 100%;
29 height: auto;
30 overflow:hidden;
31
32}
33/*end widths */
34
35.objavi-chapter{
36 color: #000;
37 display: none;
38}
39
40a {
41 text-decoration:none;
42 color:#000;
43}
44
45h1 .initial{
46 color: #000;
47 display:none;
48}
49
50.objavi-subsection{
51 display: block;
52 page-break-before: always;
53/* page-break-after: always;*/
54 text-transform: uppercase;
55 font-size: 20pt;
56}
57
58body .objavi-subsection:first-child{
59 page-break-before: avoid;
60}
61
62
63.objavi-subsection .initial {
64 font-size: 1em;
65 color: #000;
66 display:none;
67}
68
69.objavi-subsection-heading {
70 font-size: 20pt;
71 text-align: center;
72 line-height: 300px;
73 font-weight: normal;
74}
75
76
77h1 {
78 page-break-before: always;
79 background: white;
80 font-weight:normal !important;
81}
82
83/*h1.first-heading {
84 page-break-before: avoid;
85}*/
86
87
88h2 {
89 font-weight:normal ! important;
90 font-size:15pt;
91}
92
93/*try to avoid a page break between an h2 and a p XXX: doesn't work */
94h2 + p {
95 page-break-before: avoid;
96}
97
98h2 + img {
99 page-break-before: avoid;
100}
101
102h2 + table {
103 page-break-before: avoid;
104}
105
106h2 + ul {
107 page-break-before: avoid;
108}
109
110
111h2 + ol {
112 page-break-before: avoid;
113}
114
115table {
116 float: none;
117}
118
119h1.frontpage{
120 page-break-after:always;
121 margin-top:70%;
122 font-size: 20pt;
123 text-align: center;
124 page-break-before: avoid;
125 font-weight: normal;
126}
127
128div.copyright{
129 padding: 1em;
130}
131/* TOC ******************************/
132table {
133 float: none;
134}
135
136table.toc {
137 font-size: 1.1em;
138 width: 95%;
139}
140
141table.toc td{
142 vertical-align:top
143 padding-left: 0.5em;
144}
145
146td.chapter {
147 padding: 0 0.5em;
148 text-align: right;
149}
150
151table.toc td.pagenumber {
152 text-align: right;
153 vertical-align:bottom;
154}
155
156td.section {
157 padding-top: 1.1em;
158 font-weight: bold;
159}
160/* End TOC **************************/
161
162
163p, li {
164 page-break-inside: avoid;
165}
166
167pre, code, tt {
168 font-family: "Inconsolata", "Courier New", monospace;
169 /*font-size: 0.8em;*/
170}
171
172pre {
173 overflow: hidden;
174 white-space: pre-wrap;
175}
176
177
178h1, h2, h3, h4, h5, h6{
179 page-break-after: avoid;
180 page-break-inside: avoid;
181 font-weight:normal ! important;
182}
183
184
185.page-break{
186 page-break-before: always;
187 height: 7em;
188 display: block;
189}
190
191
192.glossary hr{
193 display: none;
194}
195
196/* page number styles -- these are the defaults, and will persist
197unless explicitly overridden.*/
198
199#right-footer {
200 text-align: right;
201}
202
203#left-footer {
204 text-align: left;
205}
206
207/* page number examples: */
208/*
209#right-footer .page:before{
210 content: " FLOSS Manuals ";
211 font-size: 85%;
212}
213
214#left-footer .page:after{
215 content: " FLOSS Manuals ";
216 font-size: 85%;
217}
218
219.page-footer {
220 color: red;
221}
222*/
223
224a {
225 word-wrap: break-word;
226}
227
228.objavi-no-page-break {
229 page-break-inside: avoid;
230}
231
232/*To force a blank page it is sometimes necessary to add unseen
233 content. Display:none and visibility: hidden don't work -- the
234 renderer realises that they're not there and skips the page. So we
235 add a tiny bit of text beyond the margin of the page.
236*/
237.unseen{
238 z-index: -66;
239 margin-left: -1000pt;
240}