org.sweble.wikitext.engine.utils.HtmlPrinter.css Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swc-engine Show documentation
Show all versions of swc-engine Show documentation
A minimal engine using the Sweble Wikitext Parser to
process articles in the context of a MediaWiki-like configuration.
/**
* Copyright 2011 The Open Source Research Group,
* University of Erlangen-Nürnberg
*
* Licensed 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.
*/
/*******************************************************************************
* Default CSS styles for HtmlPrinters
******************************************************************************/
h1,h2,h3,h4,h5,h6 {
background: none repeat scroll 0 0 transparent;
border-bottom: 1px solid #AAAAAA;
color: black;
font-weight: normal;
margin: 0;
padding-bottom: 0.17em;
width: auto;
text-align: left;
}
h1,h2 {
margin-bottom: 0.6em;
}
h3,h4,h5,h6 {
border-bottom: medium none;
font-weight: bold;
}
h3,h4,h5 {
margin-bottom: 0.3em;
}
h1 {
font-size: 188%;
}
h2 {
font-size: 150%;
}
h3 {
font-size: 132%;
}
p {
line-height: 1.5em;
margin: 0.4em 0 0.5em;
/* DEBUG: */
border: 1px solid silver;
margin: 1px;
}
pre {
padding: 1em;
border: 1px dashed #2F6FAB;
color: black;
background-color: #F9F9F9;
line-height: 1.1em;
font-family: monospace, "Courier New";
}
.content {
line-height: 1.5em;
color: black;
font-family: sans-serif;
}
.article-heading {
font-size: 1.6em;
line-height: 1.2em;
margin-bottom: 0.1em;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
}
.article-content {
line-height: 1.5em;
position: relative;
width: 100%;
font-size: 0.8em;
}
.section {
padding-top: 0.5em;
/* DEBUG: */
border-left: 2px solid #FF6633;
padding-top: 0;
padding-left: 1em;
margin-top: 1em;
margin-bottom: 1em;
}
/*******************************************************************************
* Images
******************************************************************************/
div.thumb {
background-color: transparent;
border-color: white;
border-style: solid;
margin-bottom: 0.5em;
max-width: 234px;
}
div.thumbinner {
background-color: #F9F9F9;
border: 1px solid #CCCCCC;
font-size: 94%;
overflow: hidden;
padding: 3px !important;
text-align: center;
}
img.thumbimage {
border: 1px solid #CCCCCC;
max-width: 220px;
max-height: 225px;
}
img.plainimage {
max-width: 220px;
max-height: 225px;
}
div.thumbcaption {
border: medium none;
font-size: 94%;
line-height: 1.4em;
padding: 3px !important;
text-align: left;
}
div.tright {
border-width: 0.5em 0 0.8em 1.4em;
clear: right;
float: right;
}
div.tleft {
border-width: 0.5em 1.4em 0.8em 0;
clear: left;
float: left;
margin-right: 0.5em;
}
img.thumbborder {
border: 1px solid #DDDDDD;
}
/*******************************************************************************
* Misc
******************************************************************************/
.illegal {
color: #CC3300;
font-weight: normal;
}
.redirect {
color: #FFCC00;
font-weight: normal;
}
.magic-word {
color: #9900CC;
font-weight: bold;
}
/*******************************************************************************
* Tables
******************************************************************************/
table {
font-size: 100%;
color: black;
background-color: white;
}
fieldset table {
background: none;
}
table.wikitable {
background: none repeat scroll 0 0 #F9F9F9;
border: 1px solid #AAAAAA;
border-collapse: collapse;
margin: 1em 1em 1em 0;
}
.wikitable th,.wikitable td {
border: 1px solid #AAAAAA;
padding: 0.2em;
}
.wikitable th {
background: none repeat scroll 0 0 #F2F2F2;
text-align: center;
}
.wikitable caption {
font-weight: bold;
}
table.collapsed tr.collapsable {
display: none;
}
/*******************************************************************************
* Debug
******************************************************************************/
.unknown-node {
color: #FFBBBB;
font-weight: normal;
}
/*******************************************************************************
* End of file
******************************************************************************/