|
| 1 | +/* |
| 2 | + This font is kindly shared by Bint or caoimhe.00 on Discord. |
| 3 | + You can purchase the below fonts, or swap them with other fonts available in your system. |
| 4 | + If you have any issues with using the CSS, please contact us (Yomidevs) via our official Discord server. |
| 5 | +*/ |
| 6 | + |
| 7 | +/* --- Light Mode colours --- */ |
| 8 | +:root { |
| 9 | + --background-color: #FEFBF6; |
| 10 | + --freq-dict-color: #ED9DB8; |
| 11 | + --pitch-dict-color: #925F9B; |
| 12 | + --dict-color: #765BA5; |
| 13 | + |
| 14 | + /* main fonts */ |
| 15 | + --gyousho-font: DF行書体 Pro-5, DFGyoSho Pro-5; |
| 16 | + --kyoukasho-font: DF教科書体 Std, DFKyoKaSho Pro-5; |
| 17 | + --kaisho-font: DF中楷書体 Pro-5, DFKaisho Pro-5; |
| 18 | + --mincho-font: ヒラギノ明朝 ProN; |
| 19 | + |
| 20 | + |
| 21 | + /* silly fonts */ |
| 22 | + --tsukihime-font: FOT-テロップ明朝 Pro, FOT-TelopMin Pro; |
| 23 | + --kinbun-font: DF金文体 Std; |
| 24 | + --kinbun-like-font: FTT-ライラ; |
| 25 | + --fot-arc-font: FOT-アーク Std; |
| 26 | + --english-font: Baskerville; |
| 27 | +} |
| 28 | + |
| 29 | +/* --- Dark Mode colours --- */ |
| 30 | +:root[data-theme="dark"] { |
| 31 | + --background-color: #212228; |
| 32 | + --freq-dict-color: #BF8599; |
| 33 | + |
| 34 | + .frequency-group-tag .tag-label { |
| 35 | + background: var(--freq-dict-color); |
| 36 | + } |
| 37 | + .frequency-group-tag .tag-body { |
| 38 | + --tag-color: var(--freq-dict-color); |
| 39 | + } |
| 40 | +} |
| 41 | + |
| 42 | +/*-----------*/ |
| 43 | +/*-- Fonts --*/ |
| 44 | +/*-----------*/ |
| 45 | + |
| 46 | +/* --- Term --- */ |
| 47 | +.headword-term { |
| 48 | + font-family: var(--gyousho-font); |
| 49 | + font-size: clamp(2rem, 10vw, 2.5rem); |
| 50 | +} |
| 51 | + |
| 52 | +/* --- Furigana --- */ |
| 53 | +.headword-reading { |
| 54 | + font-family: var(--kyoukasho-font); |
| 55 | + font-size: clamp(0.7rem, 3vw, 0.9rem); |
| 56 | +} |
| 57 | + |
| 58 | +/* --- Frequency info --- */ |
| 59 | +.frequency-group-tag .tag-label { |
| 60 | + background: var(--freq-dict-color); |
| 61 | + font-family: var(--kyoukasho-font); |
| 62 | + font-size: clamp(1rem, 4.2vw, 1.15rem); |
| 63 | +} |
| 64 | + |
| 65 | +.frequency-group-tag .tag-body { |
| 66 | + --tag-color: var(--freq-dict-color); |
| 67 | + font-family: var(--tsukihime-font); |
| 68 | + font-size: clamp(0.85rem, 3.5vw, 1rem); |
| 69 | +} |
| 70 | + |
| 71 | +/* --- Pitch --- */ |
| 72 | +.pronunciation-group-tag-list.tag-list .tag-label { |
| 73 | + background: var(--pitch-dict-color); |
| 74 | + font-family: var(--kyoukasho-font); |
| 75 | + font-size: clamp(1rem, 3.5vw, 1.15rem); |
| 76 | +} |
| 77 | + |
| 78 | +.pronunciation-representation-list { |
| 79 | + font-family: var(--kaisho-font); |
| 80 | + font-size: clamp(0.75rem, 3.5vw, 1rem); |
| 81 | +} |
| 82 | + |
| 83 | +/* --- Dict name --- */ |
| 84 | +.definition-tag-list.tag-list .tag-label { |
| 85 | + background: var(--dict-color); |
| 86 | + font-family: var(--kaisho-font); |
| 87 | + font-size: clamp(1rem, 4.2vw, 1.15rem); |
| 88 | +} |
| 89 | + |
| 90 | +/* --- Grammar stuff --- */ |
| 91 | +.inflection-rule-chains { |
| 92 | + font-family: var(--mincho-font); |
| 93 | + font-size: clamp(0.7rem, 3vw, 0.9rem); |
| 94 | +} |
| 95 | + |
| 96 | +/* --- Definition --- */ |
| 97 | +.gloss-list { |
| 98 | + font-family: var(--kaisho-font); |
| 99 | + font-size: clamp(1.1rem, 4vw, 1.3rem); |
| 100 | +} |
| 101 | + |
| 102 | +/*---------------------------*/ |
| 103 | +/*-- Dictionary Formatting --*/ |
| 104 | +/*---------------------------*/ |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +/*-----------*/ |
| 110 | +/*-- Other --*/ |
| 111 | +/*-----------*/ |
| 112 | + |
| 113 | +/* --- Remove "Add reading" Button --- */ |
| 114 | +button[title^="Add reading"] { |
| 115 | + display: none; |
| 116 | +} |
| 117 | + |
| 118 | +/* --- Inflection Icon --- */ |
| 119 | +.inflection-source-icon[data-inflection-source="algorithm"]::after { content: "🌸"; } |
| 120 | + |
0 commit comments