forked from FooSoft/yomichan
-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy paththeme-minimal.css
More file actions
175 lines (149 loc) · 6.22 KB
/
Copy paththeme-minimal.css
File metadata and controls
175 lines (149 loc) · 6.22 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*
* Copyright (C) 2023-2026 Yomitan Authors
* Copyright (C) 2016-2022 Yomichan Authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms 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/>.
*/
/* ===== MINIMAL THEME: FULL HOSHI READER REPRODUCTION ===== */
/* Light mode — pure white bg, black text, muted grays */
:root[data-theme-mode='minimal'][data-theme='light'] {
--text-color: #000000;
--text-color-light1: #555555;
--text-color-light2: #666666;
--text-color-light3: #777777;
--text-color-light4: #888888;
--background-color: #ffffff;
--background-color-light: #ffffff;
--background-color-dark1: #eeeeee;
--accent-color: #426cf5;
--link-color: #426cf5;
--shadow-color: rgba(0, 0, 0, 0);
--shadow-color-light: rgba(0, 0, 0, 0);
--tag-text-color: #000000;
--tag-muted-background-color: rgba(128, 128, 128, 0.2);
--tag-accent-background-color: rgba(128, 128, 128, 0.2);
--tag-expression-background-color: rgba(120, 140, 160, 0.22);
--tag-popular-background-color: rgba(120, 140, 160, 0.22);
--tag-frequent-background-color: rgba(128, 128, 128, 0.2);
--tag-archaism-background-color: rgba(128, 128, 128, 0.2);
--tag-dictionary-background-color: rgba(128, 128, 128, 0.2);
--tag-frequency-background-color: rgba(119, 170, 235, 0.25);
--tag-part-of-speech-background-color: rgba(128, 128, 128, 0.2);
--tag-pronunciation-dictionary-background-color: rgba(148, 166, 235, 0.25);
--sidebar-background-color: var(--background-color);
--sidebar-button-background-color-hover: var(--background-color-dark1);
--sidebar-button-background-color-active: var(--background-color-dark1);
--entry-current-indicator-color: rgba(128, 128, 128, 0.15);
--action-button-hover-color: rgba(128, 128, 128, 0.12);
--action-button-active-color: rgba(128, 128, 128, 0.12);
}
/* Dark mode — pure black bg, white text */
:root[data-theme-mode='minimal'][data-theme='dark'] {
--text-color: #ffffff;
--text-color-light1: #aaaaaa;
--text-color-light2: #999999;
--text-color-light3: #888888;
--text-color-light4: #777777;
--background-color: #000000;
--background-color-light: #000000;
--background-color-dark1: #333333;
--accent-color: #426cf5;
--link-color: #426cf5;
--shadow-color: rgba(0, 0, 0, 0);
--shadow-color-light: rgba(0, 0, 0, 0);
--tag-text-color: #ffffff;
--tag-muted-background-color: rgba(128, 128, 128, 0.25);
--tag-accent-background-color: rgba(128, 128, 128, 0.25);
--tag-expression-background-color: rgba(120, 140, 160, 0.3);
--tag-popular-background-color: rgba(120, 140, 160, 0.3);
--tag-frequent-background-color: rgba(128, 128, 128, 0.25);
--tag-archaism-background-color: rgba(128, 128, 128, 0.25);
--tag-dictionary-background-color: rgba(128, 128, 128, 0.25);
--tag-frequency-background-color: rgba(119, 170, 235, 0.3);
--tag-part-of-speech-background-color: rgba(128, 128, 128, 0.25);
--tag-pronunciation-dictionary-background-color: rgba(148, 166, 235, 0.3);
--sidebar-background-color: var(--background-color);
--sidebar-button-background-color-hover: var(--background-color-dark1);
--sidebar-button-background-color-active: var(--background-color-dark1);
--entry-current-indicator-color: rgba(255, 255, 255, 0.15);
--action-button-hover-color: rgba(255, 255, 255, 0.12);
--action-button-active-color: rgba(255, 255, 255, 0.12);
}
/* Structural overrides (same for light and dark) */
:root[data-theme-mode='minimal'] .entry+.entry {
border-top: none;
}
:root[data-theme-mode='minimal'] button.action-button {
background: transparent;
border: none;
opacity: 0.6;
transition: opacity 0.1s ease;
}
:root[data-theme-mode='minimal'] button.action-button:hover {
opacity: 1;
}
/* ===== MINIMAL THEME: DICTIONARY NAME LABELS ===== */
/* Hide dictionary tag pills - they're too visually noisy */
:root[data-theme-mode='minimal'] .tag[data-category='dictionary'] {
display: none;
}
/* Show dictionary name as subtle text label above each definition */
:root[data-theme-mode='minimal'] .definition-item::before {
content: attr(data-dictionary);
display: block;
font-size: calc(1em * 10 / 14);
font-weight: 500;
color: var(--text-color-light2);
margin-top: 0.2em;
margin-bottom: 0.3em;
letter-spacing: 0.02em;
}
/* ===== MINIMAL THEME: COMPACT INFLECTION DISPLAY ===== */
/* Hide source icons (📖, 🧩) — too noisy in minimal mode */
:root[data-theme-mode='minimal'] .inflection-source-icon {
display: none;
}
/* No arrow separator — use spacing instead for consistency across platforms */
:root[data-theme-mode='minimal'] .inflection-rule-chain>.inflection+.inflection-separator+.inflection::before {
display: none;
}
/* Keep the .inflection-separator itself hidden (the ::before handles it) */
:root[data-theme-mode='minimal'] .inflection-separator {
display: none;
}
/* Style inflections as small inline pills */
:root[data-theme-mode='minimal'] .inflection {
display: inline-block;
font-size: calc(1em * 11 / 14);
padding: 0.1em 0.25em;
margin-right: 0.25em;
border-radius: 4px;
background-color: var(--tag-muted-background-color);
color: var(--tag-text-color);
}
/* Compact the inflection rule chain container */
:root[data-theme-mode='minimal'] .inflection-rule-chain {
margin: 0.15em 0;
}
/* ===== MINIMAL THEME: OUTER CHROME ===== */
iframe.yomitan-popup[data-theme-mode='minimal'] {
--popup-border-radius: 8em;
--popup-border-color: #d1d1d6;
--popup-box-shadow: none;
background-color: #ffffff;
}
iframe.yomitan-popup[data-theme-mode='minimal'][data-theme='dark'] {
--popup-border-color: #3a3a3c;
background-color: #000000;
}