| 1 |
/* Tentative CSS for the dictionaries of the FreeDict project |
| 2 |
originally by Piotr Bański (bansp in the domain of o2.pl) */ |
| 3 |
/* Version: 29 November 2010. License: CC BY-SA 3.0 or GNU GPL 3.0 (choose) */ |
| 4 |
|
| 5 |
/* $Id:$ */ |
| 6 |
|
| 7 |
/* Note that you may need to CUSTOMIZE this stylesheet! */ |
| 8 |
|
| 9 |
/*************** the header part ***************/ |
| 10 |
title, respStmt, editionStmt, edition, extent, publicationStmt, publisher, availability, sourceDesc, |
| 11 |
fileDesc, encodingDesc, revisionDesc, change, item, pubPlace, list > head {display:block; margin-bottom: 1em} |
| 12 |
|
| 13 |
titleStmt > title, edition { font-weight:bold} |
| 14 |
|
| 15 |
titleStmt > title {font-size:larger; text-align:center} |
| 16 |
|
| 17 |
p title, p name, change title, change name {font-weight:inherit; display:inline} |
| 18 |
|
| 19 |
/* edition > date {margin-left: 1em} */ |
| 20 |
/* not needed for now, <edition/> is used for version numbering */ |
| 21 |
|
| 22 |
edition:before {content: "Version "; font-weight:bold} |
| 23 |
|
| 24 |
p, list {display:block} |
| 25 |
list {margin-left: 1em} |
| 26 |
|
| 27 |
list > head {font-weight:bold} |
| 28 |
|
| 29 |
extent:before {content: "Extent: "} |
| 30 |
publisher:before {content: "Publisher: "} |
| 31 |
availability:before {content: "Availability: "} |
| 32 |
publicationStmt > date:before {content: "Publication date: "} |
| 33 |
pubPlace:before {content: "Published at: "} |
| 34 |
|
| 35 |
publicationStmt:before {content: "Publication Statement"; color:blue; font-size:larger} |
| 36 |
|
| 37 |
editionStmt:before {content: "Edition Statement"; color:blue; font-size:larger} |
| 38 |
|
| 39 |
sourceDesc:before {content: "Source Description"; color:blue; font-size:larger} |
| 40 |
|
| 41 |
projectDesc:before {content: "Project Description"; color:blue; font-size:larger} |
| 42 |
|
| 43 |
revisionDesc:before {content: "Change Log"; color:blue; font-size:larger} |
| 44 |
|
| 45 |
respStmt:before, list[type='bulleted'] > item:before {content:"* "} |
| 46 |
|
| 47 |
teiHeader {display:block; margin-bottom: 3em} |
| 48 |
|
| 49 |
name {color:teal} |
| 50 |
|
| 51 |
foreign {font-style:italic} |
| 52 |
|
| 53 |
teiHeader {border-bottom:solid black 1px} |
| 54 |
|
| 55 |
/*************** dictionary body ***************/ |
| 56 |
entry, /*dicteg,*/ sense, cit, re, note {display:block} |
| 57 |
|
| 58 |
form, gramGrp, xr, quote, bibl, gloss {display: inline} |
| 59 |
|
| 60 |
gramGrp, /* usg,*/ q, quote {font-style: italic} |
| 61 |
|
| 62 |
gramGrp {color:brown} |
| 63 |
|
| 64 |
/* hiding untyped <note> elements |
| 65 |
note {display:none} |
| 66 |
note[type] {display:block} |
| 67 |
*/ |
| 68 |
|
| 69 |
note[type='style'], note[type='infl-base'], note[type='hint'], note[type='num'] {display:inline} |
| 70 |
note[type='style']:before, note[type='infl-base']:before, note[type='hint']:before, note[type='num']:before {content: "("; color:black; font-weight:normal} |
| 71 |
note[type='style']:after, note[type='infl-base']:after, note[type='hint']:after, note[type='num']:after {content: ")"; color:black; font-weight:normal} |
| 72 |
note[type='cl-agr']:before {content: "(agrees with cl. ";color:navy; font-weight:normal} |
| 73 |
note[type='cl-agr']:after {content: ")"; color:navy; font-weight:normal} |
| 74 |
|
| 75 |
note[type='plural-sense'] {color: black} |
| 76 |
note[type='plural-form'] {display:inline; color: black} |
| 77 |
note[type='plural-sense']:before {content:""} |
| 78 |
note[type='plural-form']:before {content:""} |
| 79 |
|
| 80 |
note {color: navy} |
| 81 |
note:before {content: "NOTE: "; color: orange; font-weight:bold} |
| 82 |
|
| 83 |
|
| 84 |
entry {margin:2em} |
| 85 |
|
| 86 |
sense {margin-left: 1em} |
| 87 |
sense[n]:before {content:attr(n) "."} |
| 88 |
sense:before {content:"• "} |
| 89 |
|
| 90 |
form[type='N']:after {content: " [sg=pl]"} |
| 91 |
|
| 92 |
entry > form > orth {font-weight: bold} |
| 93 |
re > form > orth {font-weight: bold} |
| 94 |
orth[type=morph]+orth {display: none} /* out */ |
| 95 |
entry[n='1'] > form > orth:first-child:after {content:"1"; font-size: 0.7em; |
| 96 |
vertical-align: top; bottom: 0.33em} |
| 97 |
entry[n='2'] > form > orth:first-child:after {content:"2"; font-size: 0.7em; |
| 98 |
vertical-align: top; bottom: 0.33em} |
| 99 |
entry[n='3'] > form > orth:first-child:after {content:"3"; font-size: 0.7em; |
| 100 |
vertical-align: top; bottom: 0.33em} |
| 101 |
entry[n='4'] > form > orth:first-child:after {content:"4"; font-size: 0.7em; |
| 102 |
vertical-align: top; bottom: 0.33em} |
| 103 |
|
| 104 |
/* this might be made more universal, though I'm not sure it's worth the time */ |
| 105 |
orth[type=variant]:before {content: "(also ";font-weight:normal} |
| 106 |
orth[type=variant]:after {content: ")";font-weight:normal} |
| 107 |
|
| 108 |
def+xr[type=plural-sense] {display:block} |
| 109 |
def+xr[type=plural-sense]:before {content:"· "} |
| 110 |
xr[type=plural-sense]:after {content:":"} |
| 111 |
|
| 112 |
cit[type='trans'] {display:inline} |
| 113 |
cit[type='dicteg'] {display:block} |
| 114 |
|
| 115 |
cit[type='trans'] > quote {display:inline} |
| 116 |
cit[type='trans'] > quote + note {display:inline} |
| 117 |
|
| 118 |
xr[type=cf] {display:block} |
| 119 |
|
| 120 |
ref {color: teal; text-decoration: none} |
| 121 |
xr[type=tail_infl] > ref {color: green; } |
| 122 |
ref+ref:before {content:"· "; text-decoration: none;} |
| 123 |
|
| 124 |
def+def:before {content:"· "} |
| 125 |
|
| 126 |
|
| 127 |
/*********** ERRORS ***********/ |
| 128 |
entry > xr[type=syn] { color: red; font-weight: bold; font-size: larger } |
| 129 |
/* synonyms always for a particular sense */ |
| 130 |
|
| 131 |
[rend='red'] {color: red} |
| 132 |
[rend='red']:before {content: "ERROR: "; color: red} /* sometimes the rend can appear on an empty element */ |
| 133 |
|
| 134 |
note[type='dunno'] {color: green} |
| 135 |
|