Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2011-11-09 18:49:26 -0500
committerFlorian Thienel2011-11-09 18:49:26 -0500
commitfa641e51c134b8b6cf6064fee6a44597b15d223b (patch)
treebc23dbfb93e9030b0262b9e8b0b19d7d0a05cca3 /org.eclipse.vex.xhtml
parentd849350ee7ba3c19d5eeb3c90ff835187067a226 (diff)
downloadorg.eclipse.mylyn.docs.vex-fa641e51c134b8b6cf6064fee6a44597b15d223b.tar.gz
org.eclipse.mylyn.docs.vex-fa641e51c134b8b6cf6064fee6a44597b15d223b.tar.xz
org.eclipse.mylyn.docs.vex-fa641e51c134b8b6cf6064fee6a44597b15d223b.zip
rename bundles, projects and adopt the poms
Signed-off-by: Florian Thienel <florian@thienel.org>
Diffstat (limited to 'org.eclipse.vex.xhtml')
-rw-r--r--org.eclipse.vex.xhtml/.classpath7
-rw-r--r--org.eclipse.vex.xhtml/.gitignore2
-rw-r--r--org.eclipse.vex.xhtml/.project34
-rw-r--r--org.eclipse.vex.xhtml/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--org.eclipse.vex.xhtml/META-INF/MANIFEST.MF14
-rw-r--r--org.eclipse.vex.xhtml/build.properties11
-rw-r--r--org.eclipse.vex.xhtml/plugin.properties19
-rw-r--r--org.eclipse.vex.xhtml/plugin.xml43
-rw-r--r--org.eclipse.vex.xhtml/pom.xml56
-rw-r--r--org.eclipse.vex.xhtml/src/org/eclipse/wst/xml/vex/xhtml/XhtmlOutlineProvider.java167
-rw-r--r--org.eclipse.vex.xhtml/styles/xhtml1-modern.css14
-rw-r--r--org.eclipse.vex.xhtml/styles/xhtml1-plain.css417
-rw-r--r--org.eclipse.vex.xhtml/styles/xhtml1-sans.css6
13 files changed, 802 insertions, 0 deletions
diff --git a/org.eclipse.vex.xhtml/.classpath b/org.eclipse.vex.xhtml/.classpath
new file mode 100644
index 00000000..472ee29b
--- /dev/null
+++ b/org.eclipse.vex.xhtml/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.vex.xhtml/.gitignore b/org.eclipse.vex.xhtml/.gitignore
new file mode 100644
index 00000000..fe07c278
--- /dev/null
+++ b/org.eclipse.vex.xhtml/.gitignore
@@ -0,0 +1,2 @@
+bin
+/target
diff --git a/org.eclipse.vex.xhtml/.project b/org.eclipse.vex.xhtml/.project
new file mode 100644
index 00000000..d546c09a
--- /dev/null
+++ b/org.eclipse.vex.xhtml/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.vex.xhtml</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.vex.xhtml/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.vex.xhtml/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..a80c405a
--- /dev/null
+++ b/org.eclipse.vex.xhtml/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,12 @@
+#Thu Dec 09 20:12:26 CET 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/org.eclipse.vex.xhtml/META-INF/MANIFEST.MF b/org.eclipse.vex.xhtml/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..1950bec8
--- /dev/null
+++ b/org.eclipse.vex.xhtml/META-INF/MANIFEST.MF
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.vex.xhtml;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Vendor: %providerName
+Require-Bundle: org.eclipse.vex.ui;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.vex.core;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.jface;bundle-version="[3.4.0,4.0.0)",
+ org.eclipse.emf.common;bundle-version="[2.4.1,3.0.0)",
+ org.eclipse.emf.ecore;bundle-version="[2.4.1,4.0.0)",
+ org.eclipse.wst.standard.schemas;bundle-version="[1.0.0,2.0.0)"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ClassPath: .
diff --git a/org.eclipse.vex.xhtml/build.properties b/org.eclipse.vex.xhtml/build.properties
new file mode 100644
index 00000000..3213dce4
--- /dev/null
+++ b/org.eclipse.vex.xhtml/build.properties
@@ -0,0 +1,11 @@
+bin.includes = META-INF/,\
+ plugin.xml,\
+ .,\
+ plugin.properties,\
+ styles/
+jars.compile.order = .
+source.. = src/
+src.includes = plugin.xml,\
+ plugin.properties,\
+ styles/,\
+ META-INF/
diff --git a/org.eclipse.vex.xhtml/plugin.properties b/org.eclipse.vex.xhtml/plugin.properties
new file mode 100644
index 00000000..56cf9601
--- /dev/null
+++ b/org.eclipse.vex.xhtml/plugin.properties
@@ -0,0 +1,19 @@
+###############################################################################
+# Copyright (c) 2010 John Krasnay and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# John Krasnay - initial API and implementation
+###############################################################################
+pluginName= Vex XHTML Integration
+providerName= Eclipse.org
+
+doctype.strict1=XHTML 1.0 Strict
+
+style.xhtml-plain=XHTML Plain
+style.xhtml-sans=XHTML Sans
+style.xhtml-modern=XHTML Modern
+contentType.name=XHTML
diff --git a/org.eclipse.vex.xhtml/plugin.xml b/org.eclipse.vex.xhtml/plugin.xml
new file mode 100644
index 00000000..ab541f4f
--- /dev/null
+++ b/org.eclipse.vex.xhtml/plugin.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension point="org.eclipse.core.contenttype.contentTypes">
+ <content-type id="org.eclipse.wst.xml.vex.ui.xhtml" name="%contentType.name"
+ base-type="org.eclipse.wst.xml.vex.ui.XmlDocument" file-extensions="xml, xhtml">
+ </content-type>
+ </extension>
+
+ <extension point="org.eclipse.vex.ui.doctypes"
+ id="xhtml_1_0_strict"
+ name="XHTML 1.0 Strict">
+ <doctype
+ publicId="-//W3C//DTD XHTML 1.0 Strict//EN"
+ systemId="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+ outlineProvider="org.eclipse.wst.xml.vex.xhtml.XhtmlOutlineProvider" >
+ <rootElement name="html">
+ </rootElement>
+ </doctype>
+ </extension>
+ <extension id="xhtml_1_0_plain" name="XHTML Plain"
+ point="org.eclipse.vex.ui.styles">
+ <style css="styles/xhtml1-plain.css">
+ <doctypeRef publicId="-//W3C//DTD XHTML 1.0 Strict//EN">
+ </doctypeRef>
+ </style>
+ </extension>
+ <extension id="xhtml_1_0_sans" name="XHTML Sans"
+ point="org.eclipse.vex.ui.styles">
+ <style css="styles/xhtml1-sans.css">
+ <doctypeRef publicId="-//W3C//DTD XHTML 1.0 Strict//EN">
+ </doctypeRef>
+ </style>
+ </extension>
+ <extension id="xhtml_1_0_modern" name="XHTML Modern"
+ point="org.eclipse.vex.ui.styles">
+ <style css="styles/xhtml1-modern.css">
+ <doctypeRef publicId="-//W3C//DTD XHTML 1.0 Strict//EN">
+ </doctypeRef>
+ </style>
+ </extension>
+
+</plugin>
diff --git a/org.eclipse.vex.xhtml/pom.xml b/org.eclipse.vex.xhtml/pom.xml
new file mode 100644
index 00000000..ece3a0c0
--- /dev/null
+++ b/org.eclipse.vex.xhtml/pom.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>org.eclipse.vex.xhtml</artifactId>
+ <packaging>eclipse-plugin</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>Vex XHTML Support</name>
+
+ <parent>
+ <artifactId>org.eclipse.vex-releng</artifactId>
+ <groupId>org.eclipse.vex</groupId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../org.eclipse.vex.releng/pom.xml</relativePath>
+ </parent>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <findbugsXmlOutput>true</findbugsXmlOutput>
+ <failOnError>false</failOnError>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <configuration>
+ <sourceEncoding>utf-8</sourceEncoding>
+ <minimumTokens>100</minimumTokens>
+ <targetJdk>1.5</targetJdk>
+ <format>xml</format>
+ <failOnViolation>false</failOnViolation>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>cpd-check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/org.eclipse.vex.xhtml/src/org/eclipse/wst/xml/vex/xhtml/XhtmlOutlineProvider.java b/org.eclipse.vex.xhtml/src/org/eclipse/wst/xml/vex/xhtml/XhtmlOutlineProvider.java
new file mode 100644
index 00000000..e7c2b707
--- /dev/null
+++ b/org.eclipse.vex.xhtml/src/org/eclipse/wst/xml/vex/xhtml/XhtmlOutlineProvider.java
@@ -0,0 +1,167 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2010 John Krasnay and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * John Krasnay - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.xml.vex.xhtml;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.jface.viewers.IBaseLabelProvider;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.wst.xml.vex.core.internal.dom.Document;
+import org.eclipse.wst.xml.vex.core.internal.dom.Element;
+import org.eclipse.wst.xml.vex.ui.internal.editor.VexEditor;
+import org.eclipse.wst.xml.vex.ui.internal.outline.IOutlineProvider;
+
+/**
+ * Provides an outline of the sections of an XHTML document.
+ */
+public class XhtmlOutlineProvider implements IOutlineProvider {
+
+ public void init(final VexEditor editor) {
+ }
+
+ public ITreeContentProvider getContentProvider() {
+ return contentProvider;
+ }
+
+ public IBaseLabelProvider getLabelProvider() {
+ return labelProvider;
+ }
+
+ public Element getOutlineElement(final Element child) {
+ Element element = child;
+ while (element.getParent() != null) {
+
+ // TODO: compare to all structural element names
+
+ final String name = element.getLocalName();
+ if (name.equals("h1") || name.equals("h2") || name.equals("h3") || name.equals("h4") || name.equals("h5") || name.equals("h6"))
+ return element;
+
+ element = element.getParent();
+ }
+ return element;
+ }
+
+ //===================================================== PRIVATE
+
+ private final ITreeContentProvider contentProvider = new ITreeContentProvider() {
+
+ public void dispose() {
+ }
+
+ public void inputChanged(final Viewer viewer, final Object oldInput, final Object newInput) {
+ }
+
+ public Object[] getChildren(final Object parentElement) {
+ return getOutlineChildren((Element) parentElement);
+ }
+
+ public Object getParent(final Object element) {
+ final Element parent = ((Element) element).getParent();
+ if (parent == null)
+ return element;
+ else
+ return getOutlineElement(parent);
+ }
+
+ public boolean hasChildren(final Object element) {
+ return getOutlineChildren((Element) element).length > 0;
+ }
+
+ public Object[] getElements(final Object inputElement) {
+ final Document document = (Document) inputElement;
+ return new Object[] { document.getRootElement() };
+ }
+
+ };
+
+ /**
+ * Returns an array of the children of the given element that represent
+ * nodes in the outline. These are structural elements such as "section".
+ *
+ * @param element
+ * @return
+ */
+ private Element[] getOutlineChildren(final Element element) {
+ final List children = new ArrayList();
+ if (element.getParent() == null) {
+ final Element body = findChild(element, "body");
+ if (body != null) {
+ final List<Element> childElements = body.getChildElements();
+
+ // First, find the lowest numbered h tag available
+ String lowH = "h6";
+ for (final Element child : childElements)
+ if (isHTag(child) && child.getLocalName().compareTo(lowH) < 0)
+ lowH = child.getLocalName();
+
+ // Now, get all body children at that level
+ for (final Element child : childElements)
+ if (child.getLocalName().equals(lowH))
+ children.add(child);
+ }
+ } else if (isHTag(element)) {
+ // get siblings with the next lower number
+ // between this element and the next element at the same level
+ final int level = Integer.parseInt(element.getLocalName().substring(1));
+ final String childName = "h" + (level + 1);
+ final List<Element> childElements = element.getParent().getChildElements();
+ boolean foundSelf = false;
+ for (final Element child : childElements)
+ if (child == element)
+ foundSelf = true;
+ else if (!foundSelf)
+ continue;
+ else if (child.getLocalName().equals(childName))
+ children.add(child);
+ else if (child.getLocalName().equals(element.getLocalName()))
+ // terminate at next sibling at same level
+ break;
+ }
+ return (Element[]) children.toArray(new Element[children.size()]);
+ }
+
+ private final ILabelProvider labelProvider = new LabelProvider() {
+ @Override
+ public String getText(final Object o) {
+ String text;
+ final Element element = (Element) o;
+ if (element.getParent() == null) {
+ text = "html";
+ final Element head = findChild(element, "head");
+ if (head != null) {
+ final Element title = findChild(head, "title");
+ if (title != null)
+ text = title.getText();
+ }
+ } else
+ text = element.getText();
+ return text;
+ }
+ };
+
+ private Element findChild(final Element parent, final String childName) {
+ for (final Element child : parent.getChildElements())
+ if (child.getLocalName().equals(childName))
+ return child;
+ return null;
+ }
+
+ private boolean isHTag(final Element element) {
+ final String name = element.getLocalName();
+ return name.equals("h1") || name.equals("h2") || name.equals("h3") || name.equals("h4") || name.equals("h5") || name.equals("h6");
+ }
+
+} \ No newline at end of file
diff --git a/org.eclipse.vex.xhtml/styles/xhtml1-modern.css b/org.eclipse.vex.xhtml/styles/xhtml1-modern.css
new file mode 100644
index 00000000..ee7da191
--- /dev/null
+++ b/org.eclipse.vex.xhtml/styles/xhtml1-modern.css
@@ -0,0 +1,14 @@
+
+@import url(xhtml1-plain.css);
+
+* {
+ font: 12px Verdana;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color: #399;
+}
+
+li {
+ margin: 6px 0;
+} \ No newline at end of file
diff --git a/org.eclipse.vex.xhtml/styles/xhtml1-plain.css b/org.eclipse.vex.xhtml/styles/xhtml1-plain.css
new file mode 100644
index 00000000..43f820c3
--- /dev/null
+++ b/org.eclipse.vex.xhtml/styles/xhtml1-plain.css
@@ -0,0 +1,417 @@
+a {
+ border-bottom: 1px solid;
+ color: blue;
+}
+
+abbr {
+ /* TODO */
+}
+
+acronym {
+ /* TODO */
+}
+
+address {
+ /* TODO */
+}
+
+area {
+ /* TODO */
+}
+
+b {
+ font-weight: bold;
+}
+
+base {
+ /* TODO */
+}
+
+base:before {
+ content: "Base: ";
+}
+
+bdo {
+ /* TODO */
+}
+
+big {
+ font-size: 120%;
+}
+
+blockquote {
+ display: block;
+ margin: 20px 40px;
+}
+
+br {
+ display: block;
+}
+
+body {
+ display: block;
+ font: 16px "Times New Roman", serif;
+}
+
+button {
+ background-color: #ccc;
+ border: 1px solid black;
+ padding: 3px;
+}
+
+caption {
+ /* TODO block? */
+ font-style: italic;
+}
+
+cite {
+ /* TODO */
+}
+
+code {
+ font: 12px "Courier New", monospace;
+}
+
+col {
+ /* TODO */
+}
+
+colgroup {
+ /* TODO */
+}
+
+dd {
+ display: block;
+ margin-left: 40px;
+}
+
+del {
+ /* TODO */
+}
+
+dfn {
+ /* TODO */
+}
+
+div {
+ display: block;
+}
+
+dl {
+ display: block;
+ margin-bottom: 20px;
+}
+
+dt {
+ display: block;
+ font-weight: bold;
+ margin-top: 20px;
+}
+
+em {
+ font-style: italic;
+}
+
+fieldset {
+ /* TODO */
+}
+
+form {
+ /* TODO */
+}
+
+h1 {
+ display: block;
+ font-size: 2em;
+ font-weight: bold;
+ margin: .67em 0;
+}
+
+h2 {
+ display: block;
+ font-size: 1.5em;
+ font-weight: bold;
+ margin: .83em 0;
+}
+
+h3 {
+ display: block;
+ font-size: 1.17em;
+ font-weight: bold;
+ margin: 1em 0;
+}
+
+h4 {
+ display: block;
+ font-weight: bold;
+ margin: 1.33em 0;
+}
+
+h5 {
+ display: block;
+ font-size: 0.83em;
+ font-weight: bold;
+ margin: 1.67em 0;
+}
+
+h6 {
+ display: block;
+ font-size: 0.67em;
+ font-weight: bold;
+ margin: 2.33em 0;
+}
+
+head {
+ border: 1px solid;
+ color: #999;
+ display: block;
+ font: 14px "Arial", sans-serif;
+ margin-bottom: 10px;
+ padding: 4px;
+}
+
+hr {
+ border-top: 1px solid black;
+ display: block;
+ margin: 10px 0;
+}
+
+html {
+ background-color: white;
+ color: black;
+ display: block;
+ margin: 20px;
+}
+
+i {
+ font-style: italic;
+}
+
+img {
+ background-image: attr(src);
+ height: attr(height);
+ width: attr(width);
+}
+
+img:after {
+ display: block;
+ content: attr(title);
+}
+
+input {
+ border: 1px solid black;
+ padding: 3px;
+}
+
+input:before {
+ content: "(input)";
+}
+
+ins {
+ /* TODO */
+}
+
+kbd {
+ /* TODO */
+}
+
+label {
+ /* TODO */
+}
+
+legend {
+ /* TODO */
+}
+
+li {
+ display: list-item;
+}
+
+link {
+ display: block;
+}
+
+link:before {
+ content: '(link)';
+}
+
+map {
+ /* TODO */
+}
+
+meta {
+ display: block;
+}
+
+meta:before {
+ content: '(meta)';
+}
+
+noscript {
+ /* TODO */
+}
+
+object {
+ /* TODO */
+}
+
+ol {
+ display: block;
+ list-style-type: decimal;
+ margin: 10px 40px;
+}
+
+ol ol {
+ list-style-type: lower-alpha;
+}
+
+ol ol ol {
+ list-style-type: lower-roman;
+}
+
+optgroup {
+ /* TODO */
+}
+
+option {
+ display: block;
+}
+
+p {
+ display: block;
+ margin-bottom: 10px;
+ margin-top: 10px;
+}
+
+param {
+ /* TODO */
+}
+
+pre {
+ display: block;
+ border: 1px solid #888;
+ font: 12px "Courier New", monospace;
+ margin-bottom: 10px;
+ margin-top: 10px;
+ padding: 3px;
+ white-space: pre;
+}
+
+q {
+ /* TODO */
+}
+
+samp {
+ /* TODO */
+}
+
+script {
+ background-color: #ffff66;
+ font: 12px "Courier New", monospace;
+ display: block;
+ padding: 3px;
+ white-space: pre;
+}
+
+select {
+ border: 1px solid black;
+ display: block;
+ padding: 3px;
+}
+
+select:before {
+ background-color: #ccc;
+ display: block;
+ padding: 2px;
+}
+
+small {
+ font-size: 80%;
+}
+
+span {
+ display: inline;
+}
+
+strong {
+ font-weight: bold;
+}
+
+style {
+ background-color: #ccccff;
+ color: #888;
+ display: block;
+ font: 12px "Courier New", monospace;
+ padding: 3px;
+ white-space: pre;
+}
+
+sub {
+ /* TODO */
+}
+
+sup {
+ /* TODO */
+}
+
+/* TODO review tables once they're supported by VexWidget */
+
+table {
+ background-color: #ccc;
+ display: table;
+}
+
+tbody {
+ display: table-row-group;
+}
+
+td, th {
+ display: table-cell;
+ background-color: white;
+ border: thin solid black;
+ padding: 2px;
+}
+
+th {
+ font-weight: bold;
+}
+
+textarea {
+ display: block;
+ white-space: pre;
+}
+
+tfoot {
+ display: table-footer-group;
+}
+
+thead {
+ display: table-header-group;
+}
+
+tr {
+ display: table-row;
+}
+
+title {
+ display: block;
+}
+
+title:before {
+ content: 'Title: ';
+}
+
+tt {
+ font: 12px "Courier New", sans-serif;
+}
+
+ul {
+ display: block;
+ list-item-style: disc;
+ margin: 10px 40px;
+}
+
+var {
+ /* TODO */
+}
+
diff --git a/org.eclipse.vex.xhtml/styles/xhtml1-sans.css b/org.eclipse.vex.xhtml/styles/xhtml1-sans.css
new file mode 100644
index 00000000..40cdce73
--- /dev/null
+++ b/org.eclipse.vex.xhtml/styles/xhtml1-sans.css
@@ -0,0 +1,6 @@
+
+@import url(xhtml1-plain.css);
+
+* {
+ font-family: Arial, sans-serif;
+}

Back to the top