Misha Brukman | 4b0faec | 2003-10-22 23:23:49 +0000 | [diff] [blame] | 1 | /* |
Misha Brukman | 10c0a2e | 2004-09-07 05:09:22 +0000 | [diff] [blame] | 2 | * LLVM documentation style sheet |
Misha Brukman | 4b0faec | 2003-10-22 23:23:49 +0000 | [diff] [blame] | 3 | */ |
| 4 | |
| 5 | /* Common styles */ |
Misha Brukman | 7905a8a | 2003-10-24 17:34:50 +0000 | [diff] [blame] | 6 | .body { color: black; background: white; margin: 0 0 0 0 } |
Misha Brukman | 4b0faec | 2003-10-22 23:23:49 +0000 | [diff] [blame] | 7 | |
Misha Brukman | e1f464e | 2003-11-22 00:59:08 +0000 | [diff] [blame] | 8 | /* No borders on image links */ |
Misha Brukman | 98a4ec7 | 2008-12-14 07:20:36 +0000 | [diff] [blame] | 9 | a:link img, a:visited img { border-style: none } |
Misha Brukman | e1f464e | 2003-11-22 00:59:08 +0000 | [diff] [blame] | 10 | |
Misha Brukman | 3f1b24c | 2003-11-22 01:23:53 +0000 | [diff] [blame] | 11 | address img { float: right; width: 88px; height: 31px; } |
| 12 | address { clear: right; } |
| 13 | |
Misha Brukman | 98a4ec7 | 2008-12-14 07:20:36 +0000 | [diff] [blame] | 14 | table { text-align: center; border: 2px solid black; |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 15 | border-collapse: collapse; margin-top: 1em; margin-left: 1em; |
Reid Spencer | 2f1e7a0 | 2004-08-26 20:43:21 +0000 | [diff] [blame] | 16 | margin-right: 1em; margin-bottom: 1em; } |
Misha Brukman | 98a4ec7 | 2008-12-14 07:20:36 +0000 | [diff] [blame] | 17 | tr, td { border: 2px solid gray; padding: 4pt 4pt 2pt 2pt; } |
| 18 | th { 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 Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 22 | /* |
| 23 | * Documentation |
Misha Brukman | 4b0faec | 2003-10-22 23:23:49 +0000 | [diff] [blame] | 24 | */ |
| 25 | /* Common for title and header */ |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 26 | .doc_title, .doc_section, .doc_subsection, h1, h2 { |
Misha Brukman | b9e41eb | 2004-05-12 21:20:56 +0000 | [diff] [blame] | 27 | color: black; background: url("img/lines.gif"); |
Reid Spencer | 936e5ca | 2004-11-01 09:26:57 +0000 | [diff] [blame] | 28 | font-family: "Georgia,Palatino,Times,Roman,SanSerif"; font-weight: bold; |
Misha Brukman | b9e41eb | 2004-05-12 21:20:56 +0000 | [diff] [blame] | 29 | border-width: 1px; |
| 30 | border-style: solid none solid none; |
| 31 | text-align: center; |
| 32 | vertical-align: middle; |
Brian Gaeke | 1ce764e | 2003-11-12 20:31:18 +0000 | [diff] [blame] | 33 | padding-left: 8pt; |
| 34 | padding-top: 1px; |
| 35 | padding-bottom: 2px |
Misha Brukman | 4b0faec | 2003-10-22 23:23:49 +0000 | [diff] [blame] | 36 | } |
| 37 | |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 38 | h1, .doc_section { text-align: center; font-size: 22pt; |
| 39 | margin: 20pt 0pt 5pt 0pt; } |
Misha Brukman | 7905a8a | 2003-10-24 17:34:50 +0000 | [diff] [blame] | 40 | |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 41 | .doc_title, .title { text-align: left; font-size: 25pt } |
| 42 | |
| 43 | h2, .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 | |
| 48 | h3, .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 | |
Chris Lattner | 88c595f | 2004-05-23 21:03:30 +0000 | [diff] [blame] | 53 | .doc_author { text-align: left; font-weight: bold; padding-left: 20pt } |
Chris Lattner | 1c2c61f | 2005-05-16 16:30:10 +0000 | [diff] [blame] | 54 | .doc_text { text-align: left; padding-left: 20pt; padding-right: 10pt } |
Misha Brukman | 85be5e0 | 2003-10-24 17:56:09 +0000 | [diff] [blame] | 55 | |
Misha Brukman | e1f464e | 2003-11-22 00:59:08 +0000 | [diff] [blame] | 56 | .doc_footer { text-align: left; padding: 0 0 0 0 } |
Misha Brukman | 4b0faec | 2003-10-22 23:23:49 +0000 | [diff] [blame] | 57 | |
Misha Brukman | 0465e89 | 2005-02-09 22:47:47 +0000 | [diff] [blame] | 58 | .doc_hilite { color: blue; font-weight: bold; } |
Misha Brukman | 9583acb | 2003-10-24 19:58:36 +0000 | [diff] [blame] | 59 | |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 60 | .doc_table { text-align: center; width: 90%; |
Misha Brukman | 5a141db | 2004-01-15 00:13:59 +0000 | [diff] [blame] | 61 | padding: 1px 1px 1px 1px; border: 1px; } |
Chris Lattner | 261efe9 | 2003-11-25 01:02:51 +0000 | [diff] [blame] | 62 | |
Misha Brukman | a3ce429 | 2004-04-06 03:53:49 +0000 | [diff] [blame] | 63 | .doc_warning { color: red; font-weight: bold } |
Misha Brukman | f4e4feb | 2004-04-15 20:49:32 +0000 | [diff] [blame] | 64 | |
Misha Brukman | 64722e5 | 2008-12-16 03:07:49 +0000 | [diff] [blame] | 65 | /* <div class="doc_code"> would use this class, and <div> adds more padding */ |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 66 | .doc_code, .literal-block |
| 67 | { border: solid 1px gray; background: #eeeeee; |
| 68 | margin: 0 1em 0 1em; |
Chris Lattner | 58ac674 | 2004-05-24 18:05:58 +0000 | [diff] [blame] | 69 | padding: 0 1em 0 1em; |
Misha Brukman | 98a4ec7 | 2008-12-14 07:20:36 +0000 | [diff] [blame] | 70 | display: table; |
Chris Lattner | 58ac674 | 2004-05-24 18:05:58 +0000 | [diff] [blame] | 71 | } |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 72 | |
Misha Brukman | 64722e5 | 2008-12-16 03:07:49 +0000 | [diff] [blame] | 73 | /* It is preferrable to use <pre class="doc_code"> everywhere instead of the |
| 74 | * <div class="doc_code"><pre>...</ptr></div> construct. |
Mikhail Glushenkov | d6d2efc | 2009-05-06 01:41:47 +0000 | [diff] [blame] | 75 | * |
Misha Brukman | 64722e5 | 2008-12-16 03:07:49 +0000 | [diff] [blame] | 76 | * 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 | */ |
| 79 | pre.doc_code, .literal-block { padding: 1em 2em 1em 1em } |
| 80 | |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 81 | .doc_notes { background: #fafafa; border: 1px solid #cecece; |
Misha Brukman | 9e6b68d | 2008-12-29 21:25:09 +0000 | [diff] [blame] | 82 | display: table; padding: 0 1em 0 .1em } |
Reid Spencer | 2f1e7a0 | 2004-08-26 20:43:21 +0000 | [diff] [blame] | 83 | |
Misha Brukman | 98a4ec7 | 2008-12-14 07:20:36 +0000 | [diff] [blame] | 84 | table.layout { text-align: left; border: none; border-collapse: collapse; |
Reid Spencer | 0922172 | 2004-11-01 08:18:06 +0000 | [diff] [blame] | 85 | padding: 4px 4px 4px 4px; } |
Misha Brukman | 98a4ec7 | 2008-12-14 07:20:36 +0000 | [diff] [blame] | 86 | tr.layout, td.layout, td.left, td.right |
| 87 | { border: none; padding: 4pt 4pt 2pt 2pt; vertical-align: top; } |
| 88 | td.left { text-align: left } |
| 89 | td.right { text-align: right } |
| 90 | th.layout { border: none; font-weight: bold; font-size: 105%; |
| 91 | text-align: center; vertical-align: middle; } |
Reid Spencer | 0922172 | 2004-11-01 08:18:06 +0000 | [diff] [blame] | 92 | |
Reid Spencer | 2f1e7a0 | 2004-08-26 20:43:21 +0000 | [diff] [blame] | 93 | /* Left align table cell */ |
| 94 | .td_left { border: 2px solid gray; text-align: left; } |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 95 | |
| 96 | /* ReST-specific */ |
Misha Brukman | 98a4ec7 | 2008-12-14 07:20:36 +0000 | [diff] [blame] | 97 | .title { margin-top: 0 } |
Mikhail Glushenkov | d6d2efc | 2009-05-06 01:41:47 +0000 | [diff] [blame] | 98 | .topic-title{ display: none } |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 99 | div.contents ul { list-style-type: decimal } |
Mikhail Glushenkov | 8cc8288 | 2008-12-13 17:50:58 +0000 | [diff] [blame] | 100 | .toc-backref { color: black; text-decoration: none; } |