forked from FooSoft/yomichan
-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy paththeme-eink.css
More file actions
143 lines (131 loc) · 4.56 KB
/
Copy paththeme-eink.css
File metadata and controls
143 lines (131 loc) · 4.56 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
/*
* 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/>.
*/
/* ===== E-INK THEME: STRIP ALL MOTION AND DEPTH ===== */
/* Targeted selectors — NOT universal * */
:root[data-theme-mode='eink'] .entry,
:root[data-theme-mode='eink'] .tag,
:root[data-theme-mode='eink'] button,
:root[data-theme-mode='eink'] .popup-menu,
:root[data-theme-mode='eink'] .sidebar-button,
:root[data-theme-mode='eink'] .action-button,
:root[data-theme-mode='eink'] .progress-bar-indeterminant {
transition: none;
box-shadow: none;
text-shadow: none;
/* stylelint-disable-next-line declaration-no-important */
animation-duration: 0s !important;
/* stylelint-disable-next-line declaration-no-important */
animation-delay: 0s !important;
}
/* ===== E-INK THEME: INNER CONTENT (Light) ===== */
:root[data-theme-mode='eink'][data-theme='light'] {
--text-color: #000000;
--text-color-light1: #000000;
--text-color-light2: #000000;
--text-color-light3: #000000;
--text-color-light4: #000000;
--background-color: #ffffff;
--background-color-light: #ffffff;
--background-color-dark1: #ffffff;
--accent-color: #000000;
--link-color: #000000;
--sidebar-background-color: #ffffff;
--light-border-color: #000000;
--medium-border-color: #000000;
--dark-border-color: #000000;
--tag-text-color: #000000;
--tag-border-color: #000000;
}
/* ===== E-INK THEME: INNER CONTENT (Dark) ===== */
:root[data-theme-mode='eink'][data-theme='dark'] {
--text-color: #ffffff;
--text-color-light1: #ffffff;
--text-color-light2: #ffffff;
--text-color-light3: #ffffff;
--text-color-light4: #ffffff;
--background-color: #000000;
--background-color-light: #000000;
--background-color-dark1: #000000;
--accent-color: #ffffff;
--link-color: #ffffff;
--sidebar-background-color: #000000;
--light-border-color: #ffffff;
--medium-border-color: #ffffff;
--dark-border-color: #ffffff;
--tag-text-color: #ffffff;
--tag-border-color: #ffffff;
}
/* ===== E-INK THEME: TAGS AS OUTLINED BOXES ===== */
/* High specificity, no !important needed */
:root[data-theme-mode='eink'] .tag {
--tag-color: transparent;
background-color: transparent;
border: 1px solid currentColor;
border-radius: 0;
}
:root[data-theme-mode='eink'] .tag-label {
background-color: transparent;
color: inherit;
}
:root[data-theme-mode='eink'] .tag-body::before {
display: none;
}
/* Remove borders from tag inner elements to prevent double-bordering */
:root[data-theme-mode='eink'] .tag-label,
:root[data-theme-mode='eink'] .tag-body {
border: none;
}
/* Remove border from nested frequency tags to prevent double-bordering in grouped modes */
:root[data-theme-mode='eink'] .frequency-group-tag .frequency-tag {
border: none;
}
/* ===== E-INK THEME: REMOVE ALL ROUNDING ===== */
:root[data-theme-mode='eink'] .entry,
:root[data-theme-mode='eink'] .tag,
:root[data-theme-mode='eink'] button,
:root[data-theme-mode='eink'] input,
:root[data-theme-mode='eink'] .popup-menu {
border-radius: 0;
}
/* ===== E-INK THEME: ENTRY SEPARATION ===== */
:root[data-theme-mode='eink'] .entry+.entry {
border-top: 1px solid currentColor;
}
/* ===== E-INK THEME: IMAGE FILTERS ===== */
:root[data-theme-mode='eink'] .gloss-image {
filter: none;
}
/* ===== E-INK THEME: SCROLLBAR ===== */
:root[data-theme-mode='eink'] ::-webkit-scrollbar-thumb {
background-color: currentColor;
}
:root[data-theme-mode='eink'] ::-webkit-scrollbar-track {
background-color: transparent;
}
/* ===== E-INK THEME: OUTER CHROME ===== */
iframe.yomitan-popup[data-theme-mode='eink'] {
--popup-border-radius: 0;
--popup-border-width: 1px;
--popup-border-color: #000000;
--popup-box-shadow: none;
--popup-background-color: #ffffff;
}
iframe.yomitan-popup[data-theme-mode='eink'][data-theme='dark'] {
--popup-border-color: #ffffff;
--popup-background-color: #000000;
}