| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| /*=============================================================== |
| A CSS stylesheet for the document DTD, version 1.0 |
| |
| $Id: document.css,v 1.2 2004/03/06 06:16:50 antonio Exp $ |
| |
| PURPOSE: |
| This CSS allows wysiwyg edition of xdocs with a CSS2-enabled |
| XML editor. |
| |
| TYPICAL INVOCATION: |
| <?xml-stylesheet type="text/css" href="css/document.css"?> |
| |
| AUTHORS: |
| Sylvain Wallez <sylvain@apache.org> |
| Fabien Tregan |
| ===============================================================*/ |
| |
| /*=============================================================== |
| General definitions |
| ===============================================================*/ |
| /* A person is a general human entity */ |
| person { |
| content: paragraph(attr(name) ' <' attr(email) '>'); |
| } |
| |
| /*=============================================================== |
| General definitions |
| ===============================================================*/ |
| |
| /*==================================================== |
| Phrase Markup |
| ====================================================*/ |
| |
| /* Code (typically monospaced) */ |
| code { |
| font-family: monospace; |
| } |
| |
| /* Strong (typically bold) */ |
| strong { |
| font-weight: bold; |
| } |
| |
| /* Emphasis (typically italic) */ |
| em { |
| font-style: italic; |
| } |
| |
| /* Superscript (typically smaller and higher) */ |
| sup { |
| font-size: .83em; |
| vertical-align: super; |
| } |
| |
| /* Subscript (typically smaller and lower) */ |
| sub { |
| font-size: .83em; |
| vertical-align: sub; |
| } |
| |
| /*==================================================== |
| Hypertextual Links |
| ====================================================*/ |
| /* Hard replacing link (equivalent of <a ...>) */ |
| link { |
| color: #0086b2; |
| text-decoration: underline; |
| } |
| |
| link:after { |
| font-style: italic; |
| content: ' [' attr(href) '] ' |
| } |
| |
| /* Hard window replacing link (equivalent of <a ... target="_top">) */ |
| jump { |
| color: #0086b2; |
| text-decoration: underline; |
| } |
| |
| jump:after { |
| font-style: italic; |
| content: ' [jump:' attr(href) '] ' |
| } |
| |
| /* Hard window forking link (equivalent of <a ... target="_new">) */ |
| fork { |
| color: #0086b2; |
| text-decoration: underline; |
| } |
| |
| fork:after { |
| font-style: italic; |
| content: ' [fork:' attr(href) '] ' |
| } |
| |
| /* Anchor point (equivalent of <a name="...">) */ |
| anchor:after { |
| content: icon(right-target); |
| color: olive; |
| vertical-align: text-top; |
| } |
| |
| /* Soft link between processed pages (no equivalent in HTML) */ |
| connect { |
| color: #0086b2; |
| text-decoration: underline; |
| } |
| |
| connect:after { |
| font-style: italic; |
| content: ' [connect:' attr(href) '] ' |
| } |
| |
| /*==================================================== |
| Specials |
| ====================================================*/ |
| |
| /* Breakline Object (typically forces line break) */ |
| br:before { |
| content: "\A"; |
| color: olive; |
| } |
| |
| /* Image Object (typically an inlined image) */ |
| img { |
| content: image(attr(src), attr(width), attr(height)) ' [' attr(src) ' - ' attr(alt) ']'; |
| } |
| |
| /* Image Icon (typically an inlined image placed as graphical item) */ |
| icon { |
| content: image(attr(src), attr(width), attr(height)); |
| } |
| |
| /*=============================================================== |
| Blocks definitions |
| ===============================================================*/ |
| |
| /*==================================================== |
| Paragraphs |
| ====================================================*/ |
| |
| /* Text Paragraph (normally vertically space delimited) */ |
| p { |
| display: block; |
| margin-top: 1.33ex; |
| margin-bottom: 1.33ex; |
| } |
| |
| /* Source Paragraph (normally space is preserved) */ |
| /* need to center this block !! */ |
| source { |
| display: block; |
| white-space: pre; |
| background-color: white; |
| border: thin solid #0086b2; |
| font-family: monospace; |
| margin-left: 10ex; |
| margin-right: 10ex; |
| } |
| |
| /* Note Paragraph (normally shown encapsulated) */ |
| note { |
| display: block; |
| font-style: italic; |
| } |
| |
| note:before { |
| font-weight: bold; |
| content: 'Note : '; |
| } |
| |
| /* Fixme Paragraph (normally not shown) */ |
| fixme { |
| display: block; |
| font-style: italic; |
| color: green; |
| } |
| |
| fixme:before { |
| font-weight: bold; |
| font-style: italic; |
| color: green; |
| content: 'FIXME [' attr(author) '] '; |
| } |
| |
| /*==================================================== |
| Tables |
| ====================================================*/ |
| |
| /* Table element */ |
| table { |
| display: table; |
| border: 1 outset gray; |
| margin-top: 1.33ex; |
| margin-bottom: 1.33ex; |
| } |
| |
| /* The table title */ |
| caption { |
| display: table-caption; |
| font-style: italic; |
| text-align: center; |
| margin-left: 2ex; |
| margin-right: 2ex; |
| margin-top: 2; |
| margin-bottom: 2; |
| } |
| |
| /* The table row element */ |
| tr { |
| display: table-row; |
| /*text-align: eval(attr(align));*/ |
| } |
| |
| /* The table row header element */ |
| /* The table row description element */ |
| th, td { |
| display: table-cell; |
| text-align: eval(attr(align)); |
| vertical-align: eval(attr(valign)); |
| row-span: eval(attr(rowspan)); |
| column-span: eval(attr(colspan)); |
| border: 1 inset gray; |
| padding: 2; |
| } |
| th { |
| font-weight: bold; |
| } |
| |
| /*==================================================== |
| Lists |
| ====================================================*/ |
| |
| /* Unordered list (typically bulleted) */ |
| /* Ordered list (typically numbered) */ |
| /* Simple list (typically with no mark) */ |
| ul, ol, sl { |
| display: block; |
| margin-top: 1.33ex; |
| margin-bottom: 1.33ex; |
| } |
| |
| /* List item */ |
| li { |
| display: block; |
| } |
| |
| ul > li { |
| margin-left: 2.5ex; |
| } |
| ul > li:before { |
| display: marker; |
| content: disc; |
| } |
| |
| ol > li { |
| margin-left: 6ex; |
| } |
| ol > li:before { |
| display: marker; |
| content: counter(n, decimal); |
| font-weight: bold; |
| } |
| |
| /* Nested lists */ |
| ul ul, ul ol, ul sl, |
| ol ul, ol ol, ol sl, |
| sl ul, sl ol, sl sl { |
| margin-top: 0; |
| margin-bottom: 0; |
| } |
| |
| /* Definition list (typically two-column) */ |
| dl { |
| display: block; |
| margin-left: 2ex; |
| margin-top: 1.33ex; |
| margin-bottom: 1.33ex; |
| } |
| |
| /* Definition term */ |
| dt { |
| display: block; |
| font-weight: bold; |
| } |
| |
| /* Definition description */ |
| dd { |
| display: block; |
| margin-left: 4ex; |
| } |
| |
| /*==================================================== |
| Special Blocks |
| ====================================================*/ |
| |
| /* Image Block (typically a separated and centered image) */ |
| figure { |
| display: block; |
| text-align: center; |
| /* XXE can display images, but unfortunaltely not concatenate strings to |
| handle the organisation of images in the documentation directory |
| content: url('../'attr(src), attr(width), attr(height)) '\A[' attr(alt) ']'; |
| */ |
| content: '[' attr(alt) ' - ' attr(src) ']'; |
| } |
| |
| /*=============================================================== |
| Document |
| ===============================================================*/ |
| document { |
| display: block; |
| } |
| |
| /*==================================================== |
| Header |
| ====================================================*/ |
| |
| header { |
| border: thin solid #0086b2; |
| display: block; |
| margin-top: .5ex; |
| } |
| |
| title { |
| display: block; |
| color: #ffffff; |
| background-color: #0086b2; |
| text-align: right; |
| font-weight: bold; |
| font-size: 2em; |
| } |
| |
| subtitle { |
| display: block; |
| color: #ffffff; |
| background-color: #0086b2; |
| text-align: right; |
| font-weight: bold; |
| font-size: 1.5em; |
| margin-bottom: .8ex; |
| } |
| |
| version { |
| display: block; |
| margin-bottom: .8ex; |
| } |
| version:before { |
| content: 'Version : '; |
| } |
| |
| type { |
| display: block; |
| margin-bottom: .8ex; |
| } |
| type:before { |
| content: 'Type : '; |
| } |
| |
| authors { |
| display: block; |
| margin-bottom: .8ex; |
| } |
| authors:before { |
| text-align: left; |
| content: paragraph('Authors : '); |
| } |
| /* 'person' in 'authors' */ |
| authors > person { |
| display: block; |
| margin-left: 5ex; |
| } |
| |
| notice { |
| display: block; |
| margin-left: 5ex; |
| margin-bottom: .8ex; |
| } |
| notice:before { |
| display: block; |
| content: 'Notice :'; |
| } |
| |
| abstract { |
| display: block; |
| margin-left: 5ex; |
| margin-bottom: .8ex; |
| } |
| abstract:before { |
| display: block; |
| content: 'Abstract :'; |
| } |
| |
| /*==================================================== |
| Body |
| ====================================================*/ |
| body { |
| display: block; |
| font-family: sans-serif; |
| } |
| |
| s1, s2, s3, s4 { |
| display:block; |
| } |
| s2, s3, s4 { |
| margin-left:10pt; |
| } |
| s1:before, s2:before, s3:before, s4:before { |
| margin-top:0.5em; |
| display: block; |
| text-align: left; |
| font-weight: bold; |
| color: #0086b2; |
| content: paragraph(attr(title)); |
| } |
| s2:before, s3:before, s4:before { |
| margin-left:10pt; |
| } |
| |
| s1:before { |
| font-size:2em; |
| border: thin solid white; |
| border-bottom-color: #0086b2; |
| } |
| |
| s2:before { |
| font-size:1.6em; |
| } |
| |
| s3:before { |
| font-size:1.2em; |
| } |
| |
| /*==================================================== |
| Footer |
| ====================================================*/ |
| footer { |
| display: block; |
| border: thin solid white; |
| border-top-color: #0086b2; |
| text-align: center; |
| margin-top: 2em; |
| } |
| |
| legal { |
| color: #0086b2; |
| } |
| |