2021-07-17 14:26:20 +00:00
|
|
|
/*
|
|
|
|
* 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 {
|
2021-07-25 22:16:07 +00:00
|
|
|
--pronunciation-annotation-color: #000000;
|
2021-07-17 14:26:20 +00:00
|
|
|
}
|
|
|
|
:root[data-theme=dark] {
|
2021-07-25 22:16:07 +00:00
|
|
|
--pronunciation-annotation-color: #ffffff;
|
2021-07-17 14:26:20 +00:00
|
|
|
}
|
|
|
|
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-downstep-notation {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pronunciation-text {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
.pronunciation-mora {
|
2021-07-17 14:26:20 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-mora-line {
|
2021-07-25 22:16:07 +00:00
|
|
|
border-color: var(--pronunciation-annotation-color);
|
2021-07-17 14:26:20 +00:00
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-mora[data-pitch=high]>.pronunciation-mora-line {
|
2021-07-17 14:26:20 +00:00
|
|
|
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;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-mora[data-pitch=high][data-pitch-next=low]>.pronunciation-mora-line {
|
2021-07-17 14:26:20 +00:00
|
|
|
right: -0.1em;
|
|
|
|
height: 0.4em;
|
|
|
|
border-right-width: 0.1em;
|
|
|
|
border-right-style: solid;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-mora[data-pitch=high][data-pitch-next=low] {
|
2021-07-17 14:26:20 +00:00
|
|
|
padding-right: 0.1em;
|
|
|
|
margin-right: 0.1em;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-devoice-indicator {
|
2021-07-17 14:26:20 +00:00
|
|
|
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%);
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-nasal-indicator {
|
2021-07-17 14:26:20 +00:00
|
|
|
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;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-nasal-diacritic {
|
2021-07-17 16:20:11 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-character {
|
|
|
|
display: inline;
|
2021-07-17 14:26:20 +00:00
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-character-group {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2021-07-17 14:26:20 +00:00
|
|
|
}
|
|
|
|
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-graph {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2021-07-17 14:26:20 +00:00
|
|
|
height: 1.5em;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-graph-line,
|
|
|
|
.pronunciation-graph-line-tail {
|
2021-07-17 14:26:20 +00:00
|
|
|
fill: none;
|
2021-07-25 22:16:07 +00:00
|
|
|
stroke: var(--pronunciation-annotation-color);
|
2021-07-17 14:26:20 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-graph-line-tail {
|
2021-07-17 14:26:20 +00:00
|
|
|
stroke-dasharray: 5 5;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-graph-dot {
|
2021-07-25 22:16:07 +00:00
|
|
|
fill: var(--pronunciation-annotation-color);
|
|
|
|
stroke: var(--pronunciation-annotation-color);
|
2021-07-17 14:26:20 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-graph-dot-downstep1 {
|
2021-07-17 14:26:20 +00:00
|
|
|
fill: none;
|
2021-07-25 22:16:07 +00:00
|
|
|
stroke: var(--pronunciation-annotation-color);
|
2021-07-17 14:26:20 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-graph-dot-downstep2 {
|
2021-07-25 22:16:07 +00:00
|
|
|
fill: var(--pronunciation-annotation-color);
|
2021-07-17 14:26:20 +00:00
|
|
|
}
|
2021-07-17 18:44:36 +00:00
|
|
|
.pronunciation-graph-triangle {
|
2021-07-17 14:26:20 +00:00
|
|
|
fill: none;
|
2021-07-25 22:16:07 +00:00
|
|
|
stroke: var(--pronunciation-annotation-color);
|
2021-07-17 14:26:20 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|