File: freedict-dictionary.css

package info (click to toggle)
freedict 2016.12.12-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 556,676 kB
  • ctags: 484
  • sloc: xml: 466,758; perl: 3,392; python: 936; makefile: 550; sh: 268; yacc: 207
file content (135 lines) | stat: -rw-r--r-- 4,840 bytes parent folder | download | duplicates (132)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Tentative CSS for the dictionaries of the FreeDict project
  originally by Piotr Bański (bansp in the domain of o2.pl) */
/* Version: 29 November 2010. License: CC BY-SA 3.0 or GNU GPL 3.0 (choose) */

/* $Id: freedict-dictionary.css 1038 2010-11-29 00:04:39Z bansp $ */

/* Note that you may need to CUSTOMIZE this stylesheet! */

/*************** the header part ***************/
title, respStmt, editionStmt, edition, extent, publicationStmt, publisher, availability, sourceDesc, 
fileDesc, encodingDesc, revisionDesc, change, item, pubPlace, list > head {display:block; margin-bottom: 1em}

titleStmt > title, edition { font-weight:bold}

titleStmt > title {font-size:larger; text-align:center}

p title, p name, change title, change name {font-weight:inherit; display:inline}

/* edition > date {margin-left: 1em} */
/* not needed for now, <edition/> is used for version numbering */

edition:before {content: "Version ";  font-weight:bold}

p, list {display:block}
list {margin-left: 1em}

list > head {font-weight:bold}

extent:before {content: "Extent: "}
publisher:before {content: "Publisher: "}
availability:before {content: "Availability: "}
publicationStmt > date:before {content: "Publication date: "}
pubPlace:before {content: "Published at: "}

publicationStmt:before {content: "Publication Statement"; color:blue; font-size:larger}

editionStmt:before {content: "Edition Statement"; color:blue; font-size:larger}

sourceDesc:before {content: "Source Description"; color:blue; font-size:larger}

projectDesc:before {content: "Project Description"; color:blue; font-size:larger}

revisionDesc:before {content: "Change Log"; color:blue; font-size:larger}

respStmt:before, list[type='bulleted'] > item:before {content:"* "}

teiHeader {display:block; margin-bottom: 3em}

name {color:teal}

foreign {font-style:italic}

teiHeader {border-bottom:solid black 1px} 

/*************** dictionary body ***************/
entry, /*dicteg,*/ sense, cit, re, note {display:block}

form, gramGrp, xr, quote, bibl, gloss {display: inline}

gramGrp, /* usg,*/ q, quote {font-style: italic}

gramGrp {color:brown}

/* hiding untyped <note> elements 
note {display:none}
note[type] {display:block}
*/

note[type='style'], note[type='infl-base'], note[type='hint'], note[type='num'] {display:inline}
note[type='style']:before, note[type='infl-base']:before, note[type='hint']:before, note[type='num']:before {content: "("; color:black; font-weight:normal}
note[type='style']:after, note[type='infl-base']:after, note[type='hint']:after, note[type='num']:after {content: ")"; color:black; font-weight:normal}
note[type='cl-agr']:before {content: "(agrees with cl. ";color:navy; font-weight:normal}
note[type='cl-agr']:after {content: ")"; color:navy; font-weight:normal}

note[type='plural-sense'] {color: black}
note[type='plural-form'] {display:inline; color: black}
note[type='plural-sense']:before {content:""}
note[type='plural-form']:before {content:""}

note {color: navy}
note:before {content: "NOTE: "; color: orange; font-weight:bold}


entry {margin:2em}

sense {margin-left: 1em}
sense[n]:before {content:attr(n) "."}
sense:before {content:"• "}

form[type='N']:after {content: " [sg=pl]"}

entry > form > orth {font-weight: bold}
re > form > orth {font-weight: bold}
orth[type=morph]+orth {display: none} /* out */
entry[n='1'] > form > orth:first-child:after {content:"1"; font-size: 0.7em;
    vertical-align: top; bottom: 0.33em}
entry[n='2'] > form > orth:first-child:after {content:"2"; font-size: 0.7em;
    vertical-align: top; bottom: 0.33em}
entry[n='3'] > form > orth:first-child:after {content:"3"; font-size: 0.7em;
    vertical-align: top; bottom: 0.33em}
entry[n='4'] > form > orth:first-child:after {content:"4"; font-size: 0.7em;
    vertical-align: top; bottom: 0.33em}

/* this might be made more universal, though I'm not sure it's worth the time */
orth[type=variant]:before {content: "(also ";font-weight:normal}
orth[type=variant]:after {content: ")";font-weight:normal}

def+xr[type=plural-sense] {display:block}
def+xr[type=plural-sense]:before {content:"· "}
xr[type=plural-sense]:after {content:":"}

cit[type='trans'] {display:inline}
cit[type='dicteg'] {display:block}

cit[type='trans'] > quote {display:inline}
cit[type='trans'] > quote + note {display:inline}

xr[type=cf] {display:block}

ref {color: teal; text-decoration: none}
xr[type=tail_infl] > ref {color: green; }
ref+ref:before {content:"· "; text-decoration: none;}

def+def:before {content:"· "}


/*********** ERRORS ***********/
entry > xr[type=syn] { color: red; font-weight: bold; font-size: larger }
 /* synonyms always for a particular sense */
 
 [rend='red'] {color: red}
 [rend='red']:before {content: "ERROR: "; color: red} /* sometimes the rend can appear on an empty element */
 
 note[type='dunno'] {color: green}