blob: f572b5e5714178faf9034706debe3dcbca68c080 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001/*
2 * LLVM documentation style sheet
3 */
4
5/* Common styles */
6.body { color: black; background: white; margin: 0 0 0 0 }
7
8/* No borders on image links */
Misha Brukman93bbc1e2008-12-14 07:20:36 +00009a:link img, a:visited img { border-style: none }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010
11address img { float: right; width: 88px; height: 31px; }
12address { clear: right; }
13
Misha Brukman93bbc1e2008-12-14 07:20:36 +000014table { text-align: center; border: 2px solid black;
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000015 border-collapse: collapse; margin-top: 1em; margin-left: 1em;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016 margin-right: 1em; margin-bottom: 1em; }
Misha Brukman93bbc1e2008-12-14 07:20:36 +000017tr, td { border: 2px solid gray; padding: 4pt 4pt 2pt 2pt; }
18th { border: 2px solid gray; font-weight: bold; font-size: 105%;
19 background: url("img/lines.gif");
20 font-family: "Georgia,Palatino,Times,Roman,SanSerif";
21 text-align: center; vertical-align: middle; }
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000022/*
23 * Documentation
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024 */
25/* Common for title and header */
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000026.doc_title, .doc_section, .doc_subsection, h1, h2 {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027 color: black; background: url("img/lines.gif");
28 font-family: "Georgia,Palatino,Times,Roman,SanSerif"; font-weight: bold;
29 border-width: 1px;
30 border-style: solid none solid none;
31 text-align: center;
32 vertical-align: middle;
33 padding-left: 8pt;
34 padding-top: 1px;
35 padding-bottom: 2px
36}
37
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000038h1, .doc_section { text-align: center; font-size: 22pt;
39 margin: 20pt 0pt 5pt 0pt; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000040
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000041.doc_title, .title { text-align: left; font-size: 25pt }
42
43h2, .doc_subsection { width: 75%;
44 text-align: left; font-size: 12pt;
45 padding: 4pt 4pt 4pt 4pt;
46 margin: 1.5em 0.5em 0.5em 0.5em }
47
48h3, .doc_subsubsection { margin: 2.0em 0.5em 0.5em 0.5em;
49 font-weight: bold; font-style: oblique;
50 border-bottom: 1px solid #999999; font-size: 12pt;
51 width: 75%; }
52
Dan Gohmanf17a25c2007-07-18 16:29:46 +000053.doc_author { text-align: left; font-weight: bold; padding-left: 20pt }
54.doc_text { text-align: left; padding-left: 20pt; padding-right: 10pt }
55
56.doc_footer { text-align: left; padding: 0 0 0 0 }
57
58.doc_hilite { color: blue; font-weight: bold; }
59
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000060.doc_table { text-align: center; width: 90%;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000061 padding: 1px 1px 1px 1px; border: 1px; }
62
Dan Gohmanf17a25c2007-07-18 16:29:46 +000063.doc_warning { color: red; font-weight: bold }
64
Misha Brukmanf1d8b892008-12-16 03:07:49 +000065/* <div class="doc_code"> would use this class, and <div> adds more padding */
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000066.doc_code, .literal-block
67 { border: solid 1px gray; background: #eeeeee;
68 margin: 0 1em 0 1em;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000069 padding: 0 1em 0 1em;
Misha Brukman93bbc1e2008-12-14 07:20:36 +000070 display: table;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000071 }
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000072
Misha Brukmanf1d8b892008-12-16 03:07:49 +000073/* It is preferrable to use <pre class="doc_code"> everywhere instead of the
74 * <div class="doc_code"><pre>...</ptr></div> construct.
Mikhail Glushenkova12c3bd2009-05-06 01:41:47 +000075 *
Misha Brukmanf1d8b892008-12-16 03:07:49 +000076 * Once all docs use <pre> for code regions, this style can be merged with the
77 * one above, and we can drop the [pre] qualifier.
78 */
79pre.doc_code, .literal-block { padding: 1em 2em 1em 1em }
80
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000081.doc_notes { background: #fafafa; border: 1px solid #cecece;
Misha Brukman6b6797e2008-12-29 21:25:09 +000082 display: table; padding: 0 1em 0 .1em }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000083
Misha Brukman93bbc1e2008-12-14 07:20:36 +000084table.layout { text-align: left; border: none; border-collapse: collapse;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000085 padding: 4px 4px 4px 4px; }
Misha Brukman93bbc1e2008-12-14 07:20:36 +000086tr.layout, td.layout, td.left, td.right
87 { border: none; padding: 4pt 4pt 2pt 2pt; vertical-align: top; }
88td.left { text-align: left }
89td.right { text-align: right }
90th.layout { border: none; font-weight: bold; font-size: 105%;
91 text-align: center; vertical-align: middle; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000092
93/* Left align table cell */
94.td_left { border: 2px solid gray; text-align: left; }
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000095
96/* ReST-specific */
Misha Brukman93bbc1e2008-12-14 07:20:36 +000097.title { margin-top: 0 }
Mikhail Glushenkova12c3bd2009-05-06 01:41:47 +000098.topic-title{ display: none }
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000099div.contents ul { list-style-type: decimal }
Mikhail Glushenkov834969b2008-12-13 17:50:58 +0000100.toc-backref { color: black; text-decoration: none; }