Difference between revisions of "Comprehensive CSS Stylesheet"
(clarification) |
(add sections for easier editing and browsing) |
||
Line 14: | Line 14: | ||
All fields below should be complete for an element, or otherwise noted that it is incomplete, so that it can otherwise be assumed that the CSS has been completely applied as far as possible. | All fields below should be complete for an element, or otherwise noted that it is incomplete, so that it can otherwise be assumed that the CSS has been completely applied as far as possible. | ||
+ | ==a== | ||
ab {display:block;} | ab {display:block;} | ||
* abbr | * abbr | ||
Line 50: | Line 51: | ||
* availability | * availability | ||
− | b | + | ==b== |
* back | * back | ||
Line 69: | Line 70: | ||
− | c | + | ==c== |
* c | * c | ||
Line 120: | Line 121: | ||
* custodialHist | * custodialHist | ||
− | d | + | ==d== |
* damage | * damage | ||
Line 160: | Line 161: | ||
* domain | * domain | ||
− | e | + | ==e== |
* eLeaf | * eLeaf | ||
Line 189: | Line 190: | ||
* extent | * extent | ||
− | f | + | ==f== |
* f | * f | ||
Line 223: | Line 224: | ||
* fw | * fw | ||
− | g | + | ==g== |
* g | * g | ||
Line 243: | Line 244: | ||
* group | * group | ||
− | h | + | ==h== |
* handDesc | * handDesc | ||
Line 260: | Line 261: | ||
* hyphenation | * hyphenation | ||
− | i | + | ==i== |
* iNode | * iNode | ||
Line 280: | Line 281: | ||
* item | * item | ||
− | j | + | ==j== |
* join | * join | ||
* joinGrp | * joinGrp | ||
− | k | + | ==k== |
* keywords | * keywords | ||
* kinesic | * kinesic | ||
− | l | + | ==l== |
* l | * l | ||
Line 325: | Line 326: | ||
* locusGrp | * locusGrp | ||
− | m | + | ==m== |
* m | * m | ||
Line 353: | Line 354: | ||
* musicNotation | * musicNotation | ||
− | n | + | ==n== |
* name | * name | ||
Line 368: | Line 369: | ||
* nym | * nym | ||
− | o | + | ==o== |
* oRef | * oRef | ||
Line 384: | Line 385: | ||
* orth | * orth | ||
− | p | + | ==p== |
* p | * p | ||
Line 421: | Line 422: | ||
* purpose | * purpose | ||
− | q | + | ==q== |
* q | * q | ||
Line 427: | Line 428: | ||
* quote | * quote | ||
− | r | + | ==r== |
* rdg | * rdg | ||
Line 461: | Line 462: | ||
* rubric | * rubric | ||
− | s | + | ==s== |
* s | * s | ||
Line 523: | Line 524: | ||
* symbol | * symbol | ||
− | t | + | ==t== |
* TEI | * TEI | ||
Line 555: | Line 556: | ||
* typeNote | * typeNote | ||
− | u | + | ==u== |
* u | * u | ||
Line 562: | Line 563: | ||
* usg | * usg | ||
− | v | + | ==v== |
* vAlt | * vAlt | ||
Line 580: | Line 581: | ||
* vocal | * vocal | ||
− | w | + | ==w== |
* w | * w | ||
Line 593: | Line 594: | ||
* writing | * writing | ||
− | x | + | ==x== |
* xr | * xr | ||
+ | ==y== | ||
+ | |||
+ | (none) | ||
+ | |||
+ | ==z== | ||
z | z | ||
Revision as of 11:55, 6 June 2010
The following is an attempt to gradually build CSS for each TEI element, paralleling the default TEI stylesheets (while also potentially serving as a kind of discussion center for how the stylesheets ought to operate, at least for issues pertaining solely to formatting as opposed to semantics), by indicating here necessary deviations from the XHTML stylesheets (due to CSS constraints) or potentially desirable alternatives, etc.):
Per CSS Namespaces, one can use either
@namespace "http://www.tei-c.org/ns/1.0"
or
@namespace tei "http://www.tei-c.org/ns/1.0"
...but we will use the former since we will presume the stylesheet will be primarily (if not exclusively) for TEI.
We will not be able to use templates like rendToClass (e.g., ab) or applyRend (emph), applyRendition (emph) since we cannot (nor do we need to) add an id or class (though @rend or @rendition would be useful to utilize, there is no "eval()"-like code in CSS; however, we could test against predefined values like "bold" (maybe as a global *)).
All fields below should be complete for an element, or otherwise noted that it is incomplete, so that it can otherwise be assumed that the CSS has been completely applied as far as possible.
Contents
a
ab {display:block;}
- abbr
- accMat
- acquisition
- activity
- actor
- add
- addName
- addSpan
- additional
- additions
addrLine {display:block;} address {display:block; /* font-style:italic; If wish to appear as HTML addresses are rendered by default, at least in Firefox */}
- adminInfo
- affiliation
- age
- alt
- altGrp
- altIdent
- altIdentifier
- am
- analytic
- anchor
- app
- appInfo
- application
- arc
- argument
- att
- attDef
- attList
- attRef
- author
- authority
- availability
b
- back
- bibl
- biblFull
- biblScope
- biblStruct
- bicond
- binary
- binaryObject
- binding
- bindingDesc
- birth
- bloc
- body
- broadcast
byline {display:block;}
c
- c
- cRefPattern
caesura:before {display:inline; content:"\a0\a0\a0\a0"; /* could be :after too (though Firefox seems to have a bug with it), but the important thing is that this is an empty element */}
- camera
- caption
- case
- castGroup
- castItem
- castList
- catDesc
- catRef
- catchwords
- category
- cb
- cell
- certainty
- change
- channel
- char
- charDecl
- charName
- charProp
- choice
- cit
- cl
- classCode
- classDecl
- classSpec
- classes
- climate
- closer
code {display:inline; font-family:monospace;}
- collation
- collection
- colloc
- colophon
- cond
- condition
- constitution
- constraint
- constraintSpec
- content
- corr
- correction
- country
- creation
- custEvent
- custodialHist
d
- damage
- damageSpan
- datatype
- date
- dateline
- death
- decoDesc
- decoNote
- def
- default
- defaultVal
del {display:inline; text-decoration: line-through;}
- delSpan
- depth
- derivation
- desc
- dictScrap
- dim
- dimensions
- distinct
- distributor
- district
- div
- div1
- div2
- div3
- div4
- div5
- div6
- div7
- divGen
- docAuthor
- docDate
- docEdition
- docImprint
- docTitle
- domain
e
- eLeaf
- eTree
- edition
- editionStmt
- editor
- editorialDecl
- education
- eg
- egXML
- elementSpec
emph {display:inline; font-style:italic;}
- encodingDesc
- entry
- entryFree
epigraph {display:block;}
- epilogue
- equipment
- equiv
- etym
- event
- ex
- exemplum
- expan
- explicit
- extent
f
- f
- fDecl
- fDescr
- fLib
- facsimile
- factuality
- faith
- figDesc
- figure
- fileDesc
- filiation
- finalRubric
- floatingText
- floruit
- foliation
foreign {display:inline;}
- forename
- forest
- forestGrp
- form
- formula
- front
- fs
- fsConstraints
- fsDecl
- fsDescr
- fsdDecl
- fsdLink
- funder
- fvLib
- fw
g
- g
- gap
- gen
- genName
- geo
- geoDecl
- geogFeat
- geogName
- gi
- gloss
- glyph
- glyphName
- gram
- gramGrp
- graph
- graphic
- group
h
- handDesc
- handNote
- handNotes
- handShift
- head
- headItem
- headLabel
- height
- heraldry
- hi
- history
- hom
- hyph
- hyphenation
i
- iNode
- iType
- ident
- idno
- if
- iff
- imprimatur
- imprint
- incident
- incipit
- index
- institution
- interaction
- interp
- interpGrp
- interpretation
- item
j
- join
- joinGrp
k
- keywords
- kinesic
l
- l
- label
- lacunaEnd
- lacunaStart
- lang
- langKnowledge
- langKnown
- langUsage
- language
- layout
- layoutDesc
- lb
- lbl
- leaf
- lem
- lg
- link
- linkGrp
- list
- listBibl
- listEvent
- listNym
- listOrg
- listPerson
- listPlace
- listRef
- listWit
- localName
- locale
- location
- locus
- locusGrp
m
- m
- macroSpec
- mapping
- material
- measure
- measureGrp
- meeting
- memberOf
- mentioned
- metDecl
- metSym
- milestone
- moduleRef
- moduleSpec
- monogr
- mood
- move
- msContents
- msDesc
- msIdentifier
- msItem
- msItemStruct
- msName
- msPart
- musicNotation
n
- name
- nameLink
- namespace
- nationality
- node
- normalization
- note
- notesStmt
- num
- number
- numeric
- nym
o
- oRef
- oVar
- objectDesc
- occupation
- offset
- opener
- org
- orgName
- orig
- origDate
- origPlace
- origin
- orth
p
- p
- pRef
- pVar
- particDesc
- pause
- pb
- pc
- per
- performance
- persName
- person
- personGrp
- phr
- physDesc
- place
- placeName
- population
- pos
- postBox
- postCode
- postscript
- precision
- preparedness
- principal
- profileDesc
- projectDesc
- prologue
- pron
- provenance
- ptr
- pubPlace
- publicationStmt
- publisher
- purpose
q
- q
- quotation
- quote
r
- rdg
- rdgGrp
- re
- recordHist
- recording
- recordingStmt
- ref
- refState
- refsDecl
- reg
- region
- relatedItem
- relation
- relationGrp
- remarks
- rendition
- repository
- residence
- resp
- respStmt
- respons
- restore
- revisionDesc
- rhyme
- role
- roleDesc
- roleName
- root
- row
- rs
- rubric
s
- s
- said
- salute
- samplingDecl
- schemaSpec
- scriptStmt
- seal
- sealDesc
- secFol
- seg
- segmentation
- sense
- series
- seriesStmt
- set
- setting
- settingDesc
- settlement
- se x (separated for spam filter)
- shift
- sic
- signatures
- signed
- soCalled
- socecStatus
- sound
- source
- sourceDesc
- sp
- space
- span
- spanGrp
- speaker
- specDesc
- specGrp
- specGrpRef
- specList
- sponsor
- stage
- stamp
- state
- stdVals
- street
- stress
- string
- stringVal
- subc
- subst
- summary
- superEntry
- supplied
- support
- supportDesc
- surface
- surname
- surplus
- surrogates
- syll
- symbol
t
- TEI
- table
- tag
- tagUsage
- tagsDecl
- taxonomy
- tech
- teiCorpus
- teiHeader
- term
- terrain
- text
- textClass
- textDesc
- textLang
- then
- time
- timeline
- title
- titlePage
- titlePart
- titleStmt
- tns
- trailer
- trait
- tree
- triangle
- typeDesc
- typeNote
u
- u
unclear {display:inline;}
- unicodeName
- usg
v
- vAlt
- vColl
- vDefault
- vLabel
- vMerge
- vNot
- vRange
- val
- valDesc
- valItem
- valList
- value
- variantEncoding
- view
- vocal
w
- w
- watermark
- when
- width
- wit
- witDetail
- witEnd
- witStart
- witness
- writing
x
- xr
y
(none)
z
z
- zone