-
Notifications
You must be signed in to change notification settings - Fork 9
/
daymode.css
208 lines (193 loc) · 4.46 KB
/
daymode.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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/*
DAYMODE - A bleached theme adaptation for on-the-fly switching
Add following JS (or something like this):
(function () {
'use strict';
const $html = $('html');
const template = `<li id="menu-item-skin"><a>${l10nStrings.uiBarNightMode || 'Day mode'}</a></li>`;
let isOn;
if (storage.has('dayMode')) {
isOn = storage.get('dayMode');
} else if ('dayMode' in State.variables) {
isOn = State.variables.dayMode;
}
const $button = jQuery(template)
.ariaClick(() => {
$html.toggleClass('daymode');
isOn = !isOn;
storage.set('dayMode', isOn);
});
$button.appendTo('#menu-core');
if (isOn) {
$html.addClass('daymode');
}
}());
*/
.daymode body {
color: #111;
background-color: #fff;
}
.daymode a {
color: #35c;
}
.daymode a:hover {
color: #57e;
}
.daymode span.link-disabled {
color: #777;
}
.daymode button {
color: #111;
background-color: #acf;
border-color: #8ad;
}
.daymode button:hover {
background-color: #8ad;
border-color: #68b;
}
.daymode button:disabled {
background-color: #ccc;
border-color: #aaa;
}
.daymode input,
.daymode select,
.daymode textarea {
color: #111;
border-color: #ccc;
}
.daymode input:focus,
.daymode select:focus,
.daymode textarea:focus,
.daymode input:hover,
.daymode select:hover,
.daymode textarea:hover {
background-color: #eee;
border-color: #111;
}
.daymode hr {
border-color: #111;
}
.daymode .error {
background-color: #eaa;
border-left-color: #d77;
}
.daymode #ui-bar {
background-color: #eee;
border-color: #ccc;
}
.daymode #ui-bar hr {
border-color: #ccc;
}
.daymode #ui-bar-toggle,
.daymode #ui-bar-history [id|="history"] {
color: #111;
border-color: #ccc;
}
.daymode #ui-bar-toggle:hover,
.daymode #ui-bar-history [id|="history"]:hover {
background-color: #ccc;
border-color: #111;
}
.daymode #ui-bar-history [id|="history"]:disabled {
color: #ccc;
background-color: transparent;
border-color: #ccc;
}
.daymode #menu ul {
border-color: #ccc;
}
.daymode #menu li:not(:first-child) {
border-top-color: #ccc;
}
.daymode #menu li a {
color: #111;
}
.daymode #menu li a:hover {
background-color: #ccc;
border-color: #111;
}
/* Default dialog styling */
.daymode #ui-overlay {
background-color: #777;
}
.daymode #ui-dialog-titlebar {
background-color: #ccc;
}
.daymode #ui-dialog-close:hover {
background-color: #b44;
border-color: #a33;
}
.daymode #ui-dialog-body {
background-color: #fff;
border-color: #ccc;
}
.daymode #ui-dialog-body hr {
background-color: #ccc;
}
/* List-based dialog styling */
.daymode #ui-dialog-body.list li:not(:first-child) {
border-top-color: #ccc;
}
.daymode #ui-dialog-body.list li a {
color: #111;
}
.daymode #ui-dialog-body.list li a:hover {
background-color: #ccc;
border-color: #111;
}
/* Saves dialog styling */
.daymode #ui-dialog-body.saves > *:not(:first-child),
.daymode #ui-dialog-body.saves tr:not(:first-child) {
border-top-color: #ccc;
}
.daymode #ui-dialog-body.saves .empty {
color: #777;
}
/* Settings dialog styling */
.daymode #ui-dialog-body.settings button[id|="setting-control"] {
color: #111;
border-color: #ccc;
}
.daymode #ui-dialog-body.settings button[id|="setting-control"]:hover {
background-color: #eee;
border-color: #111;
}
.daymode #ui-dialog-body.settings button[id|="setting-control"].enabled {
background-color: #9e9;
border-color: #7c7;
}
.daymode #ui-dialog-body.settings button[id|="setting-control"].enabled:hover {
background-color: #7c7;
border-color: #5a5;
}
/* Debug view styling */
html.daymode:not([data-debug-view]) #debug-view-toggle {
color: #111;
border-color: #ccc;
}
html.daymode:not([data-debug-view]) #debug-view-toggle:hover {
background-color: #eee;
border-color: #111;
}
html.daymode[data-debug-view] #debug-view-toggle {
background-color: #9e9;
border-color: #7c7;
}
html.daymode[data-debug-view] #debug-view-toggle:hover {
background-color: #7c7;
border-color: #5a5;
}
html.daymode[data-debug-view] .debug {
background-color: #dc9;
}
html.daymode[data-debug-view] .debug.hidden,
html.daymode[data-debug-view] .debug.hidden .debug {
background-color: #bbb;
}
/* Style menu item to have "moon" icon */
#menu-core #menu-item-skin a::before {
content: '\e800\00a0';
}
.daymode #menu-core #menu-item-skin a::before {
content: '\e801\00a0';
}