~alcinnz/rhapsode

ref: 87bf54fbd80fd7fd74bad77b868a427fbd1322ea rhapsode/user-agent.css -rw-r--r-- 2.9 KiB
87bf54fb — Adrian Cochrane Update user-agent.css 5 years ago
                                                                                
3f107618 Adrian Cochrane
c65d3891 Adrian Cochrane
3f107618 Adrian Cochrane
90aef5e4 Adrian Cochrane
3f107618 Adrian Cochrane
90aef5e4 Adrian Cochrane
3f107618 Adrian Cochrane
87bf54fb Adrian Cochrane
3f107618 Adrian Cochrane
87bf54fb Adrian Cochrane
3f107618 Adrian Cochrane
7b37832e Adrian Cochrane
3f107618 Adrian Cochrane
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
head, link, meta, style, script, title {speak: never}
datalist {speak: never}

/** Forms **/
/* Hide buttons that don't do anything */
button[type=button] {speak: never}
button[formaction] {speak: always}

button::before, input[type=button]::before, input[type=submit]::before {
    content: "Button";
    pitch: high;
}
select::before, textarea::before, input::before {content: "Input"; pitch: high}
output::before {content: "Output"; pitch: high}
text-area, button, select, input, output {pitch: low}
input, output {content: attr(value)}
text-area {speak-as: literal-punctuation}

option:not([checked]) {speak: never}
select[multiple] option {cue-before: url(bulletpoint.wav)}

/* Forms themselves require a label in order to support navigation */
form::before {content: "Form"}
form[action]::before {content: attr(action)}
form[alt]::before {content: attr(alt)}
form[title]::before {content: attr(title)}

/** Tables **/
table::before {content: "Table"; voice-volume: x-soft}
tr {cue-before: url(bulletpoint.wav)}
td, th {cue-before: url(bulletpoint.wav) -1db}
th::th /* Rhapsode-specific, selects inlined table headers */ {speak: never;}
table caption {voice-volume: soft}

/** Sectioning **/
footer, header {voice-volume: soft}
h1, h2, h3, h4, h5, h6, legend, caption, th, summary {voice-stress: strong}
h1 {pause: x-strong; voice-rate: x-slow}
h2 {pause: strong; voice-rate: slow}
h3, caption, th, summary, h3 {pause: medium; voice-rate: medium}
h4 {pause: weak; voice-rate: fast}
h5, h6 {pause: x-weak; voice-rate: fast}
h6 {pitch: high}

/** Text **/
hr {pause: x-strong}
p, pre {pause: strong}
pre, address {speak-as: literal-punctuation}

:link {cue-before: url(link.wav); voice-rate: slow}
:link:visited {cue-before: url(link.wav) -1db}

b, strong {voice-rate: x-slow}
i, em {voice-stress: strong}
br {pause: medium}
code {speak-as: literal-punctuation}
s, del {voice-volume: x-soft}
u {voice-volume: loud}

/** lists **/
li {cue-before: url(bulletpoint.wav); pause: strong}
li li {cue-before: url(bulletpoint.wav) -1db}
li li li {cue-before: url(bulletpoint.wav) -2db}
li li li li {cue-before: url(bulletpoint.wav) -3db}
li li li li li {cue-before: url(bulletpoint.wav) -4db}
li li li li li li {cue-before: url(bulletpoint.wav) -5db}

ol {counter-reset: -rhaps-ol1}
ol ol {counter-reset: -rhaps-ol2}
ol ol ol {counter-reset: -rhaps-ol3}
ol ol ol ol {counter-reset: -rhaps-ol4}
ol ol ol ol ol {counter-reset: -rhaps-ol5}
ol ol ol ol ol ol {counter-reset: -rhaps-ol6}
ol li::before {content: counter(-rhaps-ol1)}
ol ol li::before {content: counters(-rhaps-ol1, -rhaps-ol2)}
ol ol ol li::before {content: counters(-rhaps-ol1, -rhaps-ol2, -rhaps-ol3)}
ol ol ol ol li::before {
    content: counters(-rhaps-ol1, -rhaps-ol2, -rhaps-ol3, -rhaps-ol4)
}
ol ol ol ol ol li::before {
    content: counters(-rhaps-ol1, -rhaps-ol2, -rhaps-ol3, -rhaps-ol4, -rhaps-ol5)
}
ol ol ol ol ol ol li::before {
    content: counters(-rhaps-ol1, -rhaps-ol2, -rhaps-ol3, -rhaps-ol4, -rhaps-ol5, -rhaps-ol6)
}