/*
** style-sheet for use with TEI source files that conform to the
** yaps schema.
**
** Copyright 2005 by Syd Bauman, Julia Flanders, and the
** Brown University Women Writers Project.
** Availalbe via LGPL. For completel copyleft notice see near end-of-file.
*/


TEI {
  font-family: serif;
  font-size: medium;
  padding: 1ex 1ex 1ex 1ex;
/*  background-color: #D6DDD3; */
  background-color: #FFFFFF;
  display: block;
}

/* TEI header section */

TEI > teiHeader > fileDesc > titleStmt > title {
	display: block;
	color:  black;
	font-size: 200%;
	font-style: normal;
	text-align: center;		
}
TEI > teiHeader > fileDesc > titleStmt > author {
	display: block;
	color:  black;
	font-size: small;
	text-align: right;
}
TEI > teiHeader > fileDesc > titleStmt > editor,
TEI > teiHeader > fileDesc > titleStmt > funder,
TEI > teiHeader > fileDesc > titleStmt > principal,
TEI > teiHeader > fileDesc > titleStmt > respStmt,
TEI > teiHeader > fileDesc > titleStmt > sponsor { display: none; }

TEI > teiHeader > fileDesc > publicationStmt > date {
	display: block;
	text-align: right;	
}
TEI > teiHeader > fileDesc > publicationStmt > date:after {
	display: block;
	color:  black;
	font-size: small;
	text-align: right;	
	content: attr(value);
}
TEI > teiHeader > fileDesc > publicationStmt > address,
TEI > teiHeader > fileDesc > publicationStmt > authority,
TEI > teiHeader > fileDesc > publicationStmt > availability,
TEI > teiHeader > fileDesc > publicationStmt > distributor,
TEI > teiHeader > fileDesc > publicationStmt > idno,
TEI > teiHeader > fileDesc > publicationStmt > p,
TEI > teiHeader > fileDesc > publicationStmt > pubPlace,
TEI > teiHeader > fileDesc > publicationStmt > publisher { display: none; }

TEI > teiHeader > fileDesc > sourceDesc { display: none; }

TEI > teiHeader > encodingDesc { display: none; }

TEI > teiHeader > profileDesc { display: none; }

TEI > teiHeader > revisionDesc { display: none; }

/* major sructural elements and their headings fist */

presentation {
  display: block;
}

presentation > head {
  display: none;   /* change to 'block' to get use it */
  font-size: 130%;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1.5em;
  margin-top: 1em;
}

presentation section {
  margin: 1ex 1ex 1ex 1ex;
  display: block;
  padding: 1ex 1ex 1ex 1ex;
  /*border: medium green solid; */
  
}

presentation section > head:before {
  content: counter(div1) ". ";
  color: red;
}
presentation section > head {
  display: block;
  font-size: 130%;
  padding: 1ex 1ex 1ex 1ex;
  background-color: #A0BEBE;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

/* parts of a section nect: slide, lectureNote, handoutNote */

presentation section > slide {
  display: block;
  padding: 1ex 1ex 1ex 2ex;
  margin: 1ex 1ex 1ex 1ex;
  counter-increment: div1;
  border: medium gray solid;
}

presentation section > slide > head:before {
  content: counter(div1) " " counter(div2) ". ";
  color: red;
}
presentation section > slide > head {
  display: block;
  font-size: 120%;
  padding: 1ex 1ex 1ex 1ex;
  background-color: #CDCDCD;
  font-weight: bold;
}

presentation section > slide > div {
  display: block;
  margin-bottom: 1em;
  counter-increment: div2;
}

presentation section > slide > div > head {
  display: block;
  font-size: 110%;
  padding: 1ex 1ex 1ex 1ex;
  background-color: #A0BEBE;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

presentation section > slide > div > div {
  display: block;
  margin-bottom: 1em;
  counter-increment: div3;
}

presentation section > lectureNote {
  display: block;
  margin-bottom: 1em;
  padding: 1ex 1ex 1ex 2ex;
  margin: 1ex 1ex 1ex 1ex;
  counter-increment: div1;
  /* border: medium orange solid; */
}

presentation section > lectureNote:before {
	content: "Lecture notes:";
	font-weight: bold;
	font-size: 100%;
	margin-bottom: 1em;
}

/*
presentation section > lectureNote > head:before {
  content: counter(div1) " " counter(div2) ". ";
  color: red;
}
presentation section > lectureNote > head {
  display: block;
  font-size: 120%;
  padding: 1ex 1ex 1ex 1ex;
  background-color: #CDCDCD;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 1em;
}
*/

/* phrase-level elemnts */

att {
  display: inline;
  font-family: monospace;
}
att:after {
	content: "=";
	}

code {
  display: inline;
  font-family: monospace;
}

date {
  display: inline;
}

emph {
  display: inline;
  font-style: italic;
}

foreign {
  display: inline;
  font-style: italic;
}

formula {
  display: inline;
  font-style: italic;
}

gi:before {
  content: "<";
}
gi {
  display: inline;
  font-family: monospace;
}
gi:after {
  content: ">";
}

gloss {
  display: inline;
}

hi {
  display: inline;
  font-weight: bolder;
}

hi[rend='class(current)'] {
  display: inline;
  font-weight: bold;
  color: red;
}

kw {
  display: inline;
  font-style: italic;
}

mentioned {
  display: inline;
  font-style: italic;
}

name {
  display: inline;
}

num {
  display: inline;
}

q:before {
  content: open-quote;
}
q {
  display: inline;
  quotes: '“' '”' "‘" "’";
}
q:after {
  content: close-quote;
}
q[rend="display"] {
  display: block;
  margin-bottom: 0.5em;
  margin-left: 3em;
  margin-right: 3em;
  quotes: none;
}

soCalled:before {
  content: open-quote;
}
soCalled {
  display: inline;
  font-style: italic;
  quotes: "‘" "’" '“' '”';
}
soCalled:after {
  content: close-quote;
}

tag:before {
  content: "<";
}
tag {
  display: inline;
  font-family: monospace;
}
tag:after {
  content: ">";
}

term:before {
  content: open-quote;
}
term {
  display: inline;
  quotes: '“' '”' "‘" "’";
}
term:after {
  content: close-quote;
}

title {
  display: inline;
  font-style: italic;
}

val:before {
	content: '"';
	}
val {
	display: inline;
	font-family: monospace;
	font-size: large;
	}
val:after {
	content: '"';
	}

/* paragraph-level and miscelllaneous stuff */

lb {
  display: block;
}

note {
  display: block;
  font-size: 75%;
  margin: 1em 1em 1em 1em;
}
note[n]:before {
  content: attr(n);
  vertical-align: super;
}
note[place="left"] {
  float: left;
}
note[place="right"] {
  float: right;
}
note[place="inline"], note[place="unspecified"] {
  display: inline;
}

eg {
  font-family: monospace;
  padding-top: 1ex;
  padding-left: 1ex;
  padding-bottom: 1ex;
  display: block;
  margin: 1em 1em 1em 1em;
  white-space: pre;
  background-color: #EEEEEE;
}

p {
  display: block;
  margin-bottom: 0.5em;
}

/* tables */

table {
  text-align: center;
  display: table;
  margin-left: 2em;
  margin-right: 2em;
}
row {
  display: table-row;
}
cell {
  display: table-cell;
  text-align: left;
  padding: 0 1ex 0 1ex;
}

/* lists, including <label>, <gloss>, and <term> */

item {
  display: list-item;
  margin-left: 2em;
  margin-bottom: 0;
}

list[type="gloss"] > item {
  display: list-item;
  margin-left: 2em;
  margin-bottom: .5em;
}

list[type="glosstable"] {
  display:inline-table;
	}
list[type="glosstable"] > label {
	display: table-column-group;
	font-size: medium;
	font-weight: normal;
	}
list[type="glosstable"] > item {
	display: inline;
	}
	
list {
  display: block;
  list-style-type: disc;
  margin-left: 1ex;
}
    
list[rend="inline"] {
  display: inline;
}

list[rend~="bullets"] {
  list-style-type: disc;
  list-style-position: outside;
}

list[type="ordered"] {
  list-style-type: decimal;
  list-style-position: outside;
}

item[n]:before {
  display: marker;
  content: attr(n);
}

label {
  display: inline;
  font-size: large;  
  font-weight: bold;
  }


/*

This file was originally based on a CSS2 specification for TEI Lite
(XML Version) 1.3 written 2000-04-19 by Adrian Edwards
(adrian_edwards@yahoo.com), and subsequently edited by Sebastian Rahtz
(sebastian.rahtz@oucs.ox.ac.uk) on 2001-02-16, and available (as of
early 2007) from http://www.tei-c.org/Stylesheets/teixlite.css). Since
the license status of that work is unclear, but must of some open
license or other to be on the TEI website, and because very little of
that original file remains in this rewrite, this current work is
completely separately licensed as on object in its own right rather
than a derivative work.

yaps: yet another presentation system
 Copyright (C) 2007 Syd Bauman
 
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.
 
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.
 
 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the
   Free Software Foundation, Inc.,
   51 Franklin Street, fifth Floor
   Boston, MA  02110-1301
   USA
   
 The copyright holder can be reached at Syd_Bauman@Brown.edu, or
   Brown University Women Writers Project
   P.O. Box 1841
   Providence, RI  02912-1841
   USA
*/
