-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-css-mandarin.css
135 lines (110 loc) · 2.99 KB
/
custom-css-mandarin.css
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* The fonts are Apple's fonts due to hightly compatable with pīnyīn sign.
* Most Kaiti fonts are incompatable with pīnyīn above Hanzi and may ending with distortion.
* My personal suggestion is you can use Noto Serif SC or TC instead.
*/
.kanji-link {
font-family: "STKaiti";
font-size: 20px
}
.kanji-glyph {
font-family: "STKaiti";
font-size: 20px
}
ruby {
font-family: "STKaiti";
font-size: 35px
}
.source-text {
font-family: "PingFang SC";
font-size: 20px
}
.gloss-content {
font-family: "PingFang SC";
font-size: 20px
}
.tag-label-content {
font-family: "PingFang SC";
font-size: 10px
}
:root {
/* Change this opacity to 0% if you don't want backgrounds to change.
* Or increase it if you want them to change more.
*/
--dict-color-opacity: 100%;
--dict-color: var(--tag-dictionary-background-color);
--dict-bg-opacity: 0;
}
.definition-item {
background-color: color-mix(
in srgb,
var(--dict-color) calc(var(--dict-bg-opacity) * var(--dict-color-opacity)),
var(--background-color)
);
--tag-dictionary-background-color: var(--dict-color);
}
/* Chinese Dicts */
.definition-item[data-dictionary*="中华成语大词典"] {
--dict-color: #854110;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary*="Xiandai7"] {
--dict-color: #CB2540;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary="现代汉语规范词典"] {
--dict-color: #8352A2;
--dict-bg-opacity: 0.03;
}
.definition-item[data-dictionary^="萌典"] {
--dict-color: #FE9C9A;
--dict-bg-opacity: 0.12;
}
.definition-item[data-dictionary^="zdic"] {
--dict-color: #6d4948;
--dict-bg-opacity: 0.12;
}
.definition-item[data-dictionary="两岸词典"] {
--dict-color: #6B8CB4;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary="DaCidian"] {
--dict-color: #95A5A6;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary*="Wenlin ABC"] {
--dict-color: #E0C700;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary*="CC-CEDICT"] {
--dict-color: #4C66A4;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary="牛津英汉汉英词典"] {
--dict-color: #EE6534;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary="Wunan"] {
--dict-color: #E7A039;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary="DrEye"] {
--dict-color: #87CAC6;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary="Dict2U (Zh-Th)"] {
--dict-color: #990000;
--dict-bg-opacity: 0.05;
}
.definition-item[data-dictionary="EDHCC"] {
--dict-color: #990099;
--dict-bg-opacity: 0.05;
}
/* End Dictionary Colorizer */
/* Delete 'Add reading' button' */
button[title^="Add reading"] {
display:none;
}
/* Delete dot line below the headword */
.headword-kanji-link {
border-bottom: none !important;
}