X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2Fllvm.css;h=1222cf12bcb1f37c5df6057d555b9ac21eb75fba;hb=424641ef83fbb99640d3e2758148a9d3ea2b3830;hp=26f6c45fdfad23c48ad8f19e05b3a9d132075cc8;hpb=9583acb8a092765dec76cb19fbceb12ee141731f;p=oota-llvm.git diff --git a/docs/llvm.css b/docs/llvm.css index 26f6c45fdfa..1222cf12bcb 100644 --- a/docs/llvm.css +++ b/docs/llvm.css @@ -1,47 +1,104 @@ /* - * LLVM website style sheet + * LLVM documentation style sheet */ /* Common styles */ .body { color: black; background: white; margin: 0 0 0 0 } -/* - * Documentation +/* No borders on image links */ +a:link img, a:visited img { border-style: none } + +address img { float: right; width: 88px; height: 31px; } +address { clear: right; } + +table { text-align: center; border: 2px solid black; + border-collapse: collapse; margin-top: 1em; margin-left: 1em; + margin-right: 1em; margin-bottom: 1em; } +tr, td { border: 2px solid gray; padding: 4pt 4pt 2pt 2pt; } +th { border: 2px solid gray; font-weight: bold; font-size: 105%; + background: url("img/lines.gif"); + font-family: "Georgia,Palatino,Times,Roman,SanSerif"; + text-align: center; vertical-align: middle; } +/* + * Documentation */ /* Common for title and header */ -.doc_title, .doc_section, .doc_subsection { - color: #eeeeff; background: #330077; - font-family: "Georgia,Palatino,Times,Roman"; font-weight: bold; - padding-left: 8pt +.doc_title, .doc_section, .doc_subsection, h1, h2, h3 { + color: black; background: url("img/lines.gif"); + font-family: "Georgia,Palatino,Times,Roman,SanSerif"; font-weight: bold; + border-width: 1px; + border-style: solid none solid none; + text-align: center; + vertical-align: middle; + padding-left: 8pt; + padding-top: 1px; + padding-bottom: 2px } -.doc_title { text-align: left; font-size: 25pt } -.doc_section { text-align: center; font-size: 22pt; } -.doc_subsection { background: #441188; width: 50%; - text-align: left; font-size: 12pt; padding: 4pt 4pt 4pt 4pt; - margin: 1.5em 0.5em 1.5em 0.5em } +h1, .doc_title, .title { text-align: left; font-size: 25pt } + +h2, .doc_section { text-align: center; font-size: 22pt; + margin: 20pt 0pt 5pt 0pt; } + +h3, .doc_subsection { width: 75%; + text-align: left; font-size: 12pt; + padding: 4pt 4pt 4pt 4pt; + margin: 1.5em 0.5em 0.5em 0.5em } + +h4, .doc_subsubsection { margin: 2.0em 0.5em 0.5em 0.5em; + font-weight: bold; font-style: oblique; + border-bottom: 1px solid #999999; font-size: 12pt; + width: 75%; } -/* In the future, the 2nd level subsection style may want to become this: -.doc_subsubsection { margin: 1.5em 0.5em 1.5 0.5em; - font-weight: bold; font-style: oblique; - border-bottom: 2px dotted #999999 } -*/ +.doc_author { text-align: left; font-weight: bold; padding-left: 20pt } +.doc_text { text-align: left; padding-left: 20pt; padding-right: 10pt } -/* However, to be consistent with the rest of current documentation which is not - all yet using stylesheets, we try to emulate the former layout. */ -.doc_subsubsection { margin: 1.5em 0.5em 1.5em 0.5em; - font-weight: bold; - border-top: 2px solid #cecece } +.doc_footer { text-align: left; padding: 0 0 0 0 } -.doc_text { text-align: left; padding-left: 20pt } +.doc_hilite { color: blue; font-weight: bold; } + +.doc_table { text-align: center; width: 90%; + padding: 1px 1px 1px 1px; border: 1px; } + +.doc_warning { color: red; font-weight: bold } + +/*
would use this class, and
adds more padding */ +.doc_code, .literal-block + { border: solid 1px gray; background: #eeeeee; + margin: 0 1em 0 1em; + padding: 0 1em 0 1em; + display: table; + } + +h2+div, h2+p {text-align: left; padding-left: 20pt; padding-right: 10pt;} +h3+div, h3+p {text-align: left; padding-left: 20pt; padding-right: 10pt;} +h4+div, h4+p {text-align: left; padding-left: 20pt; padding-right: 10pt;} + +/* It is preferrable to use
 everywhere instead of the
+ * 
...
construct. + * + * Once all docs use
 for code regions, this style can  be merged with the
+ * one above, and we can drop the [pre] qualifier.
+ */
+pre.doc_code, .literal-block { padding: 1em 2em 1em 1em }
 
-.doc_footer     { text-align: left; padding: 0 0 0 0; font-size 12pt }
+.doc_notes      { background: #fafafa; border: 1px solid #cecece;
+                  display: table; padding: 0 1em 0 .1em }
 
-.doc_red        { color: red }
+table.layout    { text-align: left; border: none; border-collapse: collapse;
+                  padding: 4px 4px 4px 4px; }
+tr.layout, td.layout, td.left, td.right
+                { border: none; padding: 4pt 4pt 2pt 2pt; vertical-align: top; }
+td.left         { text-align: left }
+td.right        { text-align: right }
+th.layout       { border: none; font-weight: bold; font-size: 105%;
+                  text-align: center; vertical-align: middle; }
 
+/* Left align table cell */
+.td_left        { border: 2px solid gray; text-align: left; }
 
-/* Publications */
-.pub_title  { font-family: "Georgia,Palatino,Times,Roman";
-              font-size: 24pt; 
-              text-align: center }
-.pub_author { font-size: 14pt; text-align: center }
+/* ReST-specific */
+.title { margin-top: 0 }
+.topic-title{ display: none }
+div.contents ul { list-style-type: decimal }
+.toc-backref    { color: black; text-decoration: none; }