/*  common.css - MoinMoin Default Styles

Copyright (c) 2001, 2002, 2003 by Juergen Hermann
*/

/* content styles */

html {
	background-color: white;
	color: black;
	font-family: Arial, Lucida Grande, sans-serif;
	font-size: 1em;
}

body {
	margin: 0;
}

/* Links */

a {color: #0044B3;}
a:visited {color: #597BB3;}
a.nonexistent, a.badinterwiki {color: gray;}

a.www:before {content: url(../img/moin-www.png); margin: 0 0.2em;}
a.http:before {content: url(../img/moin-www.png); margin: 0 0.2em;}
a.https:before {content: url(../img/moin-www.png); margin: 0 0.2em;}
a.file:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;}
a.ftp:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;}
a.nntp:before {content: url(../img/moin-news.png); margin: 0 0.2em;}
a.news:before {content: url(../img/moin-news.png); margin: 0 0.2em;}
a.telnet:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;}
a.irc:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;}
a.mailto:before {content: url(../img/moin-email.png); margin: 0 0.2em;}
a.attachment:before {content: url(../img/moin-attach.png); margin: 0 0.2em;}
a.badinterwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;}
a.interwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;}

/* IE sucks */
* html a.www { padding-left: 14px; background: url(../img/moin-www.png) left center no-repeat; }
* html a.http { padding-left: 14px; background: url(../img/moin-www.png) left center no-repeat; }
* html a.https { padding-left: 14px; background: url(../img/moin-www.png) left center no-repeat; }
* html a.file { padding-left: 14px; background: url(../img/moin-ftp.png) left center no-repeat; }
* html a.ftp { padding-left: 14px; background: url(../img/moin-ftp.png) left center no-repeat; }
* html a.nntp { padding-left: 14px; background: url(../img/moin-news.png) left center no-repeat; }
* html a.news { padding-left: 14px; background: url(../img/moin-news.png) left center no-repeat; }
* html a.telnet { padding-left: 14px; background: url(../img/moin-telnet.png) left center no-repeat; }
* html a.irc { padding-left: 14px; background: url(../img/moin-telnet.png) left center no-repeat; }
* html a.mailto { padding-left: 14px; background: url(../img/moin-email.png) left center no-repeat; }
* html a.attachment { padding-left: 14px; background: url(../img/moin-attach.png) left center no-repeat; }
* html a.badinterwiki { padding-left: 14px; background: url(../img/moin-inter.png) left center no-repeat; }
* html a.interwiki { padding-left: 14px; background: url(../img/moin-inter.png) left center no-repeat; }

/*
This could maybe avoid screen jumping in IE with IE7 hack.

It works (or rather: should work) like this:
First, IE sees the a.interwiki definition only as it doesn't understand neither
* > a.interwiki, nor a.interwiki:before. We use a.interwiki to reserve some
space for the icon inserted later.
Later, the IE7 hack kicks in and then IE also understands those 2 other css lines.
The * > a.interwiki line now removes the space we previously reserved and the
:before inserts the icon.

a.interwiki {margin-left: 25px; padding-top: 25px; padding-bottom: 25px;}
* > a.interwiki {margin-left: 0px; padding-top: 25px; padding-bottom: 25px;}
a.interwiki:before {content: url(../img/moin-inter.png);}

Problem:
While margin-left seems to work, margin-/padding-top/bottom doesnt.
After getting it to work, this has to be fine-tuned to avoid screen jumping.
*/

li p {
	margin: .25em 0;
}

li.gap {
    margin-top: 0.5em;
}

dt {
    margin-top: 0.5em;
    font-weight: bold;
}

dd {
    margin-top: 0;
    margin-bottom: 0;
}

dd p {
    margin: 0.25em 0;
}
   
a, img, img.drawing {
	border: 0;
}

pre {
	border: 1pt solid #AEBDCC;
	background-color: #F3F5F7;
	padding: 5pt;
	font-family: courier, monospace;
	white-space: pre;
	/* begin css 3 or browser specific rules - do not remove!
	see: http://forums.techguy.org/archive/index.php/t-249849.html */
    white-space: pre-wrap;
    word-wrap: break-word;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    /* end css 3 or browser specific rules */
}

pre.comment {
    background-color: #CCCCCC;
    color: red;
    padding: 0;
    margin: 0;
    border: 0;
}

pre.comment:before {
    content: url(../img/attention.png);
}


table
{
	margin: 0.5em 0 0 0.5em;
	border-collapse: collapse;
}

td
{
	padding: 0.25em 0.5em 0.25em 0.5em;
	border: 1pt solid #ADB9CC;
}

td p {
	margin: 0;
	padding: 0;
}

.footnotes div {
	width: 5em;
	border-top: 1pt solid gray;
}

.footnotes ul {
	padding: 0 2em;
	margin: 0 0 1em;
	list-style: none;
}

.footnotes li {
}

.info {
    float: right;
    font-size: 0.7em;
    color: gray;
}

#pageinfo {
    margin-top: 2em;
}

.seperator {
    color: gray;
}

#pagebottom {clear: both;}

/* standard rule ---- */
hr {
    height: 1pt;
    background-color: #9C9C9C;
    border: 0;
}

/* custom rules ----- to ---------- */
.hr1 {height: 2pt;}
.hr2 {height: 3pt;}
.hr3 {height: 4pt;}
.hr4 {height: 5pt;}
.hr5 {height: 6pt;}
.hr6 {height: 7pt;}

/* Replacement for deprecated html 3 <u> element and html 4 <strike> */
.u {text-decoration: underline;}
.strike {text-decoration: line-through;}

/* eye catchers */
.warning 
{
	color: red;
}

.error 
{
	color: red;
}

strong.highlight 
{
	background-color: #CCE0FF;
	padding: 1pt;
}


/* Recent changes */

.rcrss {
	float: right;
	margin: 0;
}

.recentchanges[dir="rtl"] .rcrss {
	float: left;
}

.recentchanges table {
	clear: both;
}

.recentchanges td {
	vertical-align: top;
	border: none;
	border-bottom: 1pt solid #E6EAF0;
	background: #F2F4F7;
}

.rcdaybreak td {
	background: #B8C5D9;
	border: none;
}

.rcdaybreak td a {
	font-size: 0.88em;
}

.rcicon1, .rcicon2 {
	text-align: center;
}

.rcpagelink {
	width: 33%;
}

.rctime {
	font-size: 0.88em;
	white-space: nowrap;
}

.rceditor {
	white-space: nowrap;
	font-size: 0.88em;
}

.rccomment {
	width: 50%;
	color: gray;
	font-size: 0.88em;
}


/* User Preferences */

.userpref table, .userpref td {
	border: none;
}

/* CSS for new code_area markup used by Colorizer and ParserBase */

div.codearea { /* the div makes the border */
	margin: 0.5em 0;
	padding: 0;
	border: 1pt solid #AEBDCC;
	background-color: #F3F5F7;
	color: black;
}

div.codearea pre { /* the pre has no border and is inside the div */
	margin: 0;
	padding: 10pt;
	border: none;
}

a.codenumbers { /* format of the line numbering link */
	margin: 0 10pt;
	font-size: 0.85em;
	color: gray;
}

/* format of certain syntax spans */
div.codearea pre span.LineNumber {color: gray;}
div.codearea pre span.ID         {color: #000000;}
div.codearea pre span.Operator   {color: #0000C0;}
div.codearea pre span.Char       {color: #004080;}
div.codearea pre span.Comment    {color: #008000;}
div.codearea pre span.Number     {color: #0080C0;}
div.codearea pre span.String     {color: #004080;}
div.codearea pre span.SPChar     {color: #0000C0;}
div.codearea pre span.ResWord    {color: #A00000;}
div.codearea pre span.ConsWord   {color: #008080; font-weight: bold;}
div.codearea pre span.Error      {color: #FF8080; border: solid 1.5pt #FF0000;}
div.codearea pre span.ResWord2   {color: #0080ff; font-weight: bold;}
div.codearea pre span.Special    {color: #0000ff;}
div.codearea pre span.Preprc     {color: #803999;}


/* Search results */

.searchresults dt {
    margin-top: 1em;
	font-weight: normal;
}

.searchresults dd {
	font-size: 0.85em;
}

/* MonthCalendar css */

/* days without and with pages linked to them */
a.cal-emptyday {
    color: #777777;
    text-align: center;
}
a.cal-usedday {
    color: #000000;
    font-weight: bold;
    text-align: center;
}
/* general stuff: workdays, weekend, today */
td.cal-workday {
    background-color: #DDDDFF;
    text-align: center;
}
td.cal-weekend {
    background-color: #FFDDDD;
    text-align: center;
}
td.cal-today {
    background-color: #CCFFCC;
    border-style: solid;
    border-width: 2pt;
    text-align: center;
}
/* invalid places on the monthly calendar sheet */
td.cal-invalidday {
    background-color: #CCCCCC;
}
/* links to prev/next month/year */
a.cal-link {
    color: #000000;
    text-decoration: none;
}
th.cal-header {
    background-color: #DDBBFF;
    text-align: center;
}

/* for MonthCalendar mouseover info boxes */
TABLE.tip {
    color: black;
    background-color: #FF8888;
    font-size: small;
    font-weight: normal;
    border-style: solid;
    border-width: 1px;
}

TH.tip {
    background-color: #FF4444;
    font-weight: bold;
    text-align: center;
}

TD.tip {
    text-align: left;
}
*[dir="rtl"] TD.tip {
    text-align: right;
}

/* end MonthCalendar stuff */

/* 
======= for EventCalendar 0.90 ========
For more information, please visit http://moinmoin.wikiwikiweb.de/MacroMarket/EventCalendar
*/

TABLE.eventcalendar {
    /* margin:auto; */
}

TD.head_yearmonth {
    border-width:0px;
    text-align:center;
    font-size: large;
}

TD.head_weekday {
    width:14%;

    border-style:solid;
    border-width:1px; 
    border-color:#000000; 
    background-color: #ffeeee;
    
    font-weight:normal;
    font-size:10pt;
    text-align:center;
}

TD.head_day {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:1px; 
    border-color:#000000;
    border-bottom-width:0px;
    /* background-color: #FFFFEE; */
    vertical-align: top;
    font-weight:normal;
    font-size:10pt;
    text-align:left;
}

TD.head_day_sunday {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:1px; 
    border-color:#000000;
    border-bottom-width:0px;
    /* background-color: #FFFFEE; */
    vertical-align: top;
    font-weight:normal;
    font-size:10pt;
    color: #FF3300;
    text-align:left;
}

TD.head_day_today {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:1px; 
    border-color:#000000;
    border-bottom-width:0px;
    background-color: #FFFFAA;
    vertical-align: top;
    font-weight: bold;
    font-size:10pt;
    text-align:left;
}

TD.head_day_nbmonth {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:1px; 
    border-color:#000000;
    border-bottom-width:0px;
    background-color: #eeeeee;
    vertical-align: top;
    font-weight:normal;
    font-size:8pt;
    text-align:left;
    color: #999999;
}

TD.cal_eventbox { 
    line-height: 11px;
    padding: 1px 3px 1px 3px;
    margin: 0px 0px 0px 0px;
    
    border-style:solid;
    border-width:1px; 
    border-top-width:0px;
    border-bottom-width:0px;
    border-color:#000000;
    
    vertical-align: middle;
    text-align: center;
}

TABLE.cal_event { 
    width:100%;

    padding:0 0 0 0;
    margin:0 0 0 0;
    
    border-width:0px; 
    align: center;
    
}

TD.cal_event {
    border-style:solid;
    border-width:1px; 
    border-color:#cccccc; 
    padding:3px;
    margin:0px;
    text-align:center;
    color:#3266cd;    
    font-weight:normal;
    font-size: 8pt;
    display: block;
    vertical-align: middle;
}

TD.cal_event_append {
    border-style:solid;
    border-width:1px; 
    border-color:#cccccc; 
    border-left-width:0px;
    padding:3px;
    margin:0px;
    text-align:center;
    color:#3266cd;    
    font-weight:normal;
    font-size: 8pt;
    display: block;
    vertical-align: middle;
}

TD.cal_event_pending {
    border-style:solid;
    border-width:1px; 
    border-color:#cccccc; 
    border-right-width:0px;
    padding:3px;
    margin:0px;
    text-align:center;
    color:#3266cd;    
    font-weight:normal;
    font-size: 8pt;
    display: block;
    vertical-align: middle;
}

TD.cal_event_append_pending {
    border-style:solid;
    border-width:1px; 
    border-color:#cccccc; 
    border-left-width:0px;
    border-right-width:0px;
    padding:3px;
    margin:0px;
    text-align:center;
    color:#3266cd;    
    font-weight:normal;
    font-size: 8pt;
    display: block;
    vertical-align: middle;
}

TD.cal_nbmonth {
    border-top-width:0px;
    border-bottom-width:0px;
    border-color:#000000;
    background-color: #eeeeee;
    padding: 2px;
    margin: 1px;
}

TD.cal_noevent {
    border-top-width:0px;
    border-bottom-width:0px;
    border-color:#000000;
    padding: 2px;
    margin: 1px;
}

TD.cal_last_nbmonth {
    border-top-width:0px;
    border-bottom-width:1px;
    border-color:#000000;
    background-color: #eeeeee;
    padding: 2px;
    margin: 1px;
}

TD.cal_last_noevent {
    border-top-width:0px;
    border-bottom-width:1px;
    border-color:#000000;
    padding: 2px;
    margin: 1px;
}


TD.list_head {
    border-width: 1px;
    border-style: solid;
    font-size: 11pt;
    font-weight: bold;
    background-color: #cccccc;
}

TD.list_entry {
    font-size: 10pt;
    font-weight: normal;
}

TD.head_dummy_nbmonth {
    line-height: 5px;
    border-top-width:0px;
    border-bottom-width:0px;
    border-color:#000000;
    background-color: #eeeeee;
    padding: 0px;
    margin: 0px;
}

TD.head_dummy {
    line-height: 5px;
    border-top-width:0px;
    border-bottom-width:0px;
    border-color:#000000;
    padding: 0px;
    margin: 0px;
}

TABLE.eventcalendar_menubar {
    /* margin:auto; */
}

TD.eventcalendar_menubar {
    border-width: 0px;
    /* text-align: left; */
    font-size: 9pt;
}

TABLE.eventcalendar_msg {
    /* margin:auto; */
}

TD.eventcalendar_msg {
    background-color: #FFFF66;
    border-width: 0px;
    font-size: 9pt; 
    color: #990000;
}

TABLE.simplecalendar {
    /* margin:auto; */
}

TD.simple_nb {
    line-height: 10px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:0px; 
    border-color:#000000;
    vertical-align: middle;
    font-weight:normal;
    font-size:8pt;
    text-align:center;
}

TD.simple_event {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:1px; 
    border-color:#c0c0c0;
    background-color: #eeffff;
    vertical-align: middle;
    font-weight:bold;
    font-size:8pt;
    text-align:center;
}

TD.simple_noevent {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:1px; 
    border-color:#c0c0c0;
    vertical-align: middle;
    font-weight:normal;
    color: #c0c0c0;
    font-size:8pt;
    text-align:center;
}

TD.simple_event_today {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:2px; 
    border-color:#ff9999;
    background-color: #eeffff;
    vertical-align: middle;
    font-weight:bold;
    font-size:8pt;
    text-align:center;
}

TD.simple_noevent_today {
    line-height: 20px;
    padding:0px;
    margin:0px;
    border-style:solid;
    border-width:2px; 
    border-color:#ff9999;
    vertical-align: middle;
    font-weight:normal;
    color: #c0c0c0;
    font-size:8pt;
    text-align:center;
}

TD.simple_yearmonth {
    border-width:0px;
    text-align:center;
    font-size: 10pt;
}

TD.simple_weekday {
    width:14%;

    padding: 0 1px 0 1px;
    margin: 0 1px 0 1px;

    border-width:0px; 
    /* background-color: #ffeeee; */
    
    font-weight:bold;
    font-size:8pt;
    text-align:center;
}
