aboutsummaryrefslogtreecommitdiff
path: root/ext/css/display-pronunciation.css
blob: 4ea15bafab9621754b1d3a99c57b5459cfb2db30 (plain)
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
/*
 * Copyright (C) 2021  Yomichan Authors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the entrys of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

:root {
    --pitch-accent-annotation-color: #000000;
}
:root[data-theme=dark] {
    --pitch-accent-annotation-color: #ffffff;
}

.pitch-accent-character {
    display: inline-block;
    position: relative;
}
.pitch-accent-character::before {
    border-color: var(--pitch-accent-annotation-color);
}
.pitch-accent-character[data-pitch='high']::before {
    content: '';
    display: block;
    user-select: none;
    pointer-events: none;
    position: absolute;
    top: 0.1em;
    left: 0;
    right: 0;
    height: 0;
    border-top-width: 0.1em;
    border-top-style: solid;
}
.pitch-accent-character[data-pitch='high'][data-pitch-next='low']::before {
    right: -0.1em;
    height: 0.4em;
    border-right-width: 0.1em;
    border-right-style: solid;
}
.pitch-accent-character[data-pitch='high'][data-pitch-next='low'] {
    padding-right: 0.1em;
    margin-right: 0.1em;
}
.pitch-accent-character-devoice-indicator {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.125em;
    height: 1.125em;
    border: calc(1.5em / var(--font-size-no-units)) dotted var(--danger-color);
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
    transform: translate(-50%, -50%);
}
.pitch-accent-character-nasal-indicator {
    display: block;
    position: absolute;
    right: -0.125em;
    top: 0.125em;
    width: 0.375em;
    height: 0.375em;
    border: calc(1.5em / var(--font-size-no-units)) solid var(--danger-color);
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
}

.pitch-accent-position::before {
    content: ' [';
}
.pitch-accent-position::after {
    content: ']';
}

.pitch-accent-graph {
    display: block;
    height: 1.5em;
    transform: translateY(-0.875em);
}
.pitch-accent-graph-line,
.pitch-accent-graph-line-tail {
    fill: none;
    stroke: var(--pitch-accent-annotation-color);
    stroke-width: 5;
}
.pitch-accent-graph-line-tail {
    stroke-dasharray: 5 5;
}
.pitch-accent-graph-dot {
    fill: var(--pitch-accent-annotation-color);
    stroke: var(--pitch-accent-annotation-color);
    stroke-width: 5;
}
.pitch-accent-graph-dot-downstep1 {
    fill: none;
    stroke: var(--pitch-accent-annotation-color);
    stroke-width: 5;
}
.pitch-accent-graph-dot-downstep2 {
    fill: var(--pitch-accent-annotation-color);
}
.pitch-accent-graph-triangle {
    fill: none;
    stroke: var(--pitch-accent-annotation-color);
    stroke-width: 5;
}