Photon 1.0.0
Loading...
Searching...
No Matches
master_css.h
Go to the documentation of this file.
1#ifndef LH_MASTER_CSS_H
2#define LH_MASTER_CSS_H
3namespace litehtml{ const char* const master_css = R"##(
4
5
6html {
7 display: block;
8}
9
10head {
11 display: none
12}
13
14meta {
15 display: none
16}
17
18title {
19 display: none
20}
21
22link {
23 display: none
24}
25
26style {
27 display: none
28}
29
30script {
31 display: none
32}
33
34body {
35 display:block;
36 margin:8px;
37}
38
39p {
40 display:block;
41 margin-top:1em;
42 margin-bottom:1em;
43}
44
45b, strong {
46 display:inline;
47 font-weight:bold;
48}
49
50i, em, cite {
51 display:inline;
52 font-style:italic;
53}
54
55ins, u {
56 text-decoration:underline
57}
58
59del, s, strike {
60 text-decoration:line-through
61}
62
63center
64{
65 text-align:center;
66 display:block;
67}
68
69a:link
70{
71 text-decoration: underline;
72 color: #00f;
73 cursor: pointer;
74}
75
76h1, h2, h3, h4, h5, h6, div {
77 display:block;
78}
79
80h1 {
81 font-weight:bold;
82 margin-top:0.67em;
83 margin-bottom:0.67em;
84 font-size: 2em;
85}
86
87h2 {
88 font-weight:bold;
89 margin-top:0.83em;
90 margin-bottom:0.83em;
91 font-size: 1.5em;
92}
93
94h3 {
95 font-weight:bold;
96 margin-top:1em;
97 margin-bottom:1em;
98 font-size:1.17em;
99}
100
101h4 {
102 font-weight:bold;
103 margin-top:1.33em;
104 margin-bottom:1.33em
105}
106
107h5 {
108 font-weight:bold;
109 margin-top:1.67em;
110 margin-bottom:1.67em;
111 font-size:.83em;
112}
113
114h6 {
115 font-weight:bold;
116 margin-top:2.33em;
117 margin-bottom:2.33em;
118 font-size:.67em;
119}
120
121br {
122 display:inline-block;
123}
124
125br[clear="all"]
126{
127 clear:both;
128}
129
130br[clear="left"]
131{
132 clear:left;
133}
134
135br[clear="right"]
136{
137 clear:right;
138}
139
140span {
141 display:inline
142}
143
144img {
145 display: inline-block;
146}
147
148img[align="right"]
149{
150 float: right;
151}
152
153img[align="left"]
154{
155 float: left;
156}
157
158hr {
159 display: block;
160 margin-top: 0.5em;
161 margin-bottom: 0.5em;
162 margin-left: auto;
163 margin-right: auto;
164 border-style: inset;
165 border-width: 1px
166}
167
168
169/***************** TABLES ********************/
170
171table {
172 display: table;
173 border-collapse: separate;
174 border-spacing: 2px;
175 border-top-color:gray;
176 border-left-color:gray;
177 border-bottom-color:black;
178 border-right-color:black;
179 font-size: medium;
180 font-weight: normal;
181 font-style: normal;
182}
183
184tbody, tfoot, thead {
185 display:table-row-group;
186 vertical-align:middle;
187}
188
189tr {
190 display: table-row;
191 vertical-align: inherit;
192 border-color: inherit;
193}
194
195td, th {
196 display: table-cell;
197 vertical-align: inherit;
198 border-width:1px;
199 padding:1px;
200}
201
202th {
203 font-weight: bold;
204}
205
206table[border] {
207 border-style:solid;
208}
209
210table[border^="0"] {
211 border-style:none;
212}
213
214table[border] td, table[border] th {
215 border-style:solid;
216 border-top-color:black;
217 border-left-color:black;
218 border-bottom-color:gray;
219 border-right-color:gray;
220}
221
222table[border^="0"] td, table[border^="0"] th {
223 border-style:none;
224}
225
226table[align=left] {
227 float: left;
228}
229
230table[align=right] {
231 float: right;
232}
233
234table[align=center] {
235 margin-left: auto;
236 margin-right: auto;
237}
238
239caption {
240 display: table-caption;
241}
242
243td[nowrap], th[nowrap] {
244 white-space:nowrap;
245}
246
247tt, code, kbd, samp {
248 font-family: monospace
249}
250
251pre, xmp, plaintext, listing {
252 display: block;
253 font-family: monospace;
254 white-space: pre;
255 margin: 1em 0
256}
257
258/***************** LISTS ********************/
259
260ul, menu, dir {
261 display: block;
262 list-style-type: disc;
263 margin-top: 1em;
264 margin-bottom: 1em;
265 margin-left: 0;
266 margin-right: 0;
267 padding-left: 40px
268}
269
270ol {
271 display: block;
272 list-style-type: decimal;
273 margin-top: 1em;
274 margin-bottom: 1em;
275 margin-left: 0;
276 margin-right: 0;
277 padding-left: 40px
278}
279
280li {
281 display: list-item;
282}
283
284ul ul, ol ul {
285 list-style-type: circle;
286}
287
288ol ol ul, ol ul ul, ul ol ul, ul ul ul {
289 list-style-type: square;
290}
291
292dd {
293 display: block;
294 margin-left: 40px;
295}
296
297dl {
298 display: block;
299 margin-top: 1em;
300 margin-bottom: 1em;
301 margin-left: 0;
302 margin-right: 0;
303}
304
305dt {
306 display: block;
307}
308
309ol ul, ul ol, ul ul, ol ol {
310 margin-top: 0;
311 margin-bottom: 0
312}
313
314blockquote {
315 display: block;
316 margin-top: 1em;
317 margin-bottom: 1em;
318 margin-left: 40px;
319 margin-right: 40px;
320}
321
322/*********** FORM ELEMENTS ************/
323
324form {
325 display: block;
326 margin-top: 0em;
327}
328
329option {
330 display: none;
331}
332
333input, textarea, keygen, select, button, isindex {
334 margin: 0em;
335 color: initial;
336 line-height: normal;
337 text-transform: none;
338 text-indent: 0;
339 text-shadow: none;
340 display: inline-block;
341}
342input[type="hidden"] {
343 display: none;
344}
345
346
347article, aside, footer, header, hgroup, nav, section
348{
349 display: block;
350}
351
352sub {
353 vertical-align: sub;
354 font-size: smaller;
355}
356
357sup {
358 vertical-align: super;
359 font-size: smaller;
360}
361
362figure {
363 display: block;
364 margin-top: 1em;
365 margin-bottom: 1em;
366 margin-left: 40px;
367 margin-right: 40px;
368}
369
370figcaption {
371 display: block;
372}
373
374)##"; }
375#endif // LH_MASTER_CSS_H
Definition background.h:12
const char *const master_css
Definition master_css.h:3