/***********************************************************************
** pmwiki.css
**  Copyright 2004-2006 Patrick R. Michaud (pmichaud@pobox.com)
**  Copyright 2006 Hagan Fox
**  This file is part of PmWiki; you can redistribute it and/or modify
**  it under the terms of the GNU General Public License as published
**  by the Free Software Foundation; either version 2 of the License, or
**  (at your option) any later version.  See pmwiki.php for full details.
***********************************************************************/

/* This sets the overall frame for the site */
body {
    margin: 0;
    background-color: white;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 11pt;
    border: 3px ridge #cc9900;
}


/* These control the fixed-width text elements of the page */
textarea, pre, code { font-size: 0.9em; }

@font-face {
    font-family: 'DjVSM';
    src: url(fonts/DejaVuSansMono.ttf) format('truetype');
}

@font-face {
    font-family: 'DjVSM';
    src: url(fonts/DejaVuSansMono-Bold.ttf) format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'DjVSM';
    src: url(fonts/DejaVuSansMono-Oblique.ttf) format('truetype');
    font-style: italic;
}

@font-face {
    font-family: 'DjVSM';
    src: url(fonts/DejaVuSansMono-BoldOblique.ttf) format('truetype');
    font-weight: bold;
    font-style: italic;
}

/*
 * Sadly, Courier New doesn't seem to be monospaced (!), and Courier
 * just looks awful.
 */
pre, code, tt { font-family: 'DjVSM','Lucida Console','Andale Mono',monospace; }
pre { line-height: 1.2em; }
pre code, code code, pre pre { font-size: 100%; }

/* These primarily adjust the size and spacing of heading elements,
** most browsers have atrocious defaults for these. */
h1, h2, h3, h4, h5, h6 { margin-top: 1.0em; margin-bottom: 0.6em; }
h1, h2, h3, h6 { font-weight: normal; }
h4, h5 { font-weight: bold; }
h1 code, h2 code, h3 code, h4 code { font-size: 1em; }
h1 { font-size: 1.8em; clear: left; }
h2 { font-size: 1.44em; }
h3 { font-size: 1.22em; }
h4 { font-size: 1.07em; }
h5 { font-size: 1.0em; }
h6 { font-size: 1.0em; }

/* These are for the top bar */
#wikitop {
    padding: 1px 0 0 0;
    border-right: 1px #88cc88 solid;
    clear: none;
    margin-bottom: 1ex;
    text-align: center;		/* Center the text */
    position: relative;
}

#wikitop img {			/* Make class & CSU logos the same height */
    height: 96px;
}

#wikitop #icon {		/* Class logo */
    position: absolute;
    left: 0;
    padding: 2px;
}

#wikitop #csulogo {		/* CSU logo */
    position: absolute;
    right: 0;
}

#wikitop h1 {			/* Class Description */
    font-weight: bold;
    font-size: 150%;
    margin: 0.5ex 0 0 0;
    padding: 0;
    clear: none;
}

#wikitop h2 {			/* Semester */
    margin: 0.1ex 0 0 0;
    padding: 0;
    font-size: 120%;
}

#wikitop h3 {			/* Page Title */
    margin: 0.1ex 0 2ex 0;
    padding: 0;
    font-size: 140%;
    font-style: italic;
}

#wikitop ul {
    text-align: center;		/* Center the tabs */
    clear: both;		/* Let the CSU & class logos finish */
    width: 100%;
    background: #003300;
    border: 0;
    border-top: 3px ridge #ddd;
    margin: 0;
    padding: 1ex;
    font-size: 85%;
}

#wikitop ul li {
    padding: 0;
    margin: 0;
    border: 0;
    display: inline;
    list-style: none;
}

/* Links are grey, current page is white, hovering is gold. */

#wikitop a {
    color: #dddddd;
    padding: 0.25em 1ex;
    text-decoration: none;
}

#wikitop a.selflink {
    color: white;
    font-weight: bold;
}

#wikitop ul a:hover {
    color: gold;
}

/* These affect the main content area. */
#wikibody {
    padding: 0 1ex 1ex 1ex;
    font-size: 11pt;
}

#wikitext {
    padding: 0;
    margin: 0;
    min-height: 20em;
}

#wikitext ul {
    list-style: circle;
    margin-left: 1px;
    padding-left: 0.9em;
}

#wikitext ul ul {
    list-style: disc;
}

/* Add decoration to external links */
#wikitext a[href*="//"]:hover::after {
    content: URL(external-link.png)
}

/* These are for the edit form. */
#wikiedit form {
    margin: 0;
    width: 100%;
}
#wikiedit textarea {
    width: 100%;
}
.wikimessage {
    margin-top: 4px;
    margin-bottom: 4px;
    font-style: italic;
}

#wikifoot {
    color: white;
    background: #003300;
    font-size: 70%;
    padding: 1em;
    clear: both;
}

#wikifootleft {
    float: left;
}

#wikifootright {
    float: right;
}

#wikifootcenter {
    margin-left: auto;
    margin-right: auto;
    width: auto;
    text-align: center;
}

#wikifoot a {
    color: white;		/* Footer links are white underlines */
}

/*
 * These affect the printed appearance of the web view (not the separate
 * print view) of pages.  The header, footer, and action links aren't printed.
 */
@media print {
    body {
    	width: auto;
	margin: 0;
	padding: 0.5em;
	border: 0;
    }
    #wikitop, #wikifoot {
    	display: none;
    }
}
