Pop-up dictionary browser extension for language learning. Successor to Yomichan. (PERSONAL FORK)
at lambda-fork/main 132 lines 3.4 kB view raw
1/* 2 * Copyright (C) 2023-2025 Yomitan Authors 3 * Copyright (C) 2021-2022 Yomichan Authors 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the entrys of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <https://www.gnu.org/licenses/>. 17 */ 18 19:root { 20 --pronunciation-annotation-color: #000000; 21} 22:root[data-theme=dark] { 23 --pronunciation-annotation-color: #ffffff; 24} 25 26.pronunciation-downstep-notation { 27 display: inline; 28} 29 30.pronunciation-text { 31 display: inline; 32} 33.pronunciation-mora { 34 display: inline-block; 35 position: relative; 36} 37.pronunciation-mora-line { 38 border-color: var(--pronunciation-annotation-color); 39} 40.pronunciation-mora[data-pitch=high]>.pronunciation-mora-line { 41 display: block; 42 user-select: none; 43 pointer-events: none; 44 position: absolute; 45 top: 0.1em; 46 left: 0; 47 right: 0; 48 height: 0; 49 border-top-width: 0.1em; 50 border-top-style: solid; 51} 52.pronunciation-mora[data-pitch=high][data-pitch-next=low]>.pronunciation-mora-line { 53 right: -0.1em; 54 height: 0.4em; 55 border-right-width: 0.1em; 56 border-right-style: solid; 57} 58.pronunciation-mora[data-pitch=high][data-pitch-next=low] { 59 padding-right: 0.1em; 60 margin-right: 0.1em; 61} 62.pronunciation-devoice-indicator { 63 display: block; 64 position: absolute; 65 left: 50%; 66 top: 50%; 67 width: 1.125em; 68 height: 1.125em; 69 border: calc(1.5em / var(--font-size-no-units)) dotted var(--danger-color); 70 border-radius: 50%; 71 box-sizing: border-box; 72 z-index: 1; 73 transform: translate(-50%, -50%); 74} 75.pronunciation-nasal-indicator { 76 display: block; 77 position: absolute; 78 right: -0.125em; 79 top: 0.125em; 80 width: 0.375em; 81 height: 0.375em; 82 border: calc(1.5em / var(--font-size-no-units)) solid var(--danger-color); 83 border-radius: 50%; 84 box-sizing: border-box; 85 z-index: 1; 86} 87.pronunciation-nasal-diacritic { 88 position: absolute; 89 width: 0; 90 height: 0; 91 opacity: 0; 92} 93.pronunciation-character { 94 display: inline; 95} 96.pronunciation-character-group { 97 display: inline-block; 98 position: relative; 99} 100 101.pronunciation-graph { 102 display: inline-block; 103 vertical-align: middle; 104 height: 1.5em; 105} 106.pronunciation-graph-line, 107.pronunciation-graph-line-tail { 108 fill: none; 109 stroke: var(--pronunciation-annotation-color); 110 stroke-width: 5; 111} 112.pronunciation-graph-line-tail { 113 stroke-dasharray: 5 5; 114} 115.pronunciation-graph-dot { 116 fill: var(--pronunciation-annotation-color); 117 stroke: var(--pronunciation-annotation-color); 118 stroke-width: 5; 119} 120.pronunciation-graph-dot-downstep1 { 121 fill: none; 122 stroke: var(--pronunciation-annotation-color); 123 stroke-width: 5; 124} 125.pronunciation-graph-dot-downstep2 { 126 fill: var(--pronunciation-annotation-color); 127} 128.pronunciation-graph-triangle { 129 fill: none; 130 stroke: var(--pronunciation-annotation-color); 131 stroke-width: 5; 132}