Skip to content

Commit 23e40a2

Browse files
committed
Replace more colors
1 parent b2d44ba commit 23e40a2

File tree

2 files changed

+87
-323
lines changed

2 files changed

+87
-323
lines changed
Lines changed: 22 additions & 245 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/* Dark mode */
2-
3-
42
div.phpdebugbar[data-theme='dark'],
53
div.phpdebugbar-openhandler[data-theme='dark'] {
64
--color-gray-100: #F7FAFC;
@@ -15,45 +13,36 @@ div.phpdebugbar-openhandler[data-theme='dark'] {
1513
--color-red-vivid: #eb4432;
1614

1715
--color-background: var(--color-gray-800);
18-
--color-text: var(--color-gray-200);
19-
20-
}
16+
--color-text: var(--color-gray-100);
17+
--color-text-muted: var(--color-gray-600);
18+
--color-border: var(--color-gray-600);
2119

22-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-dataset-history .phpdebugbar-widgets-dataset-actions,
23-
div.phpdebugbar-openhandler[data-theme="dark"] {
24-
background: var(--color-gray-800);
25-
}
20+
--color-header:var(--color-gray-900);
21+
--color-header-text: var(--color-gray-200);
22+
--color-header-border: var(--color-gray-800);
23+
24+
/*--color-active: #444;*/
25+
/*--color-active-text: #e0e0e0;*/
2626

27-
div.phpdebugbar[data-theme="dark"],
28-
div.phpdebugbar-openhandler[data-theme="dark"],
29-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-header > div > *,
30-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-timeline li span.phpdebugbar-widgets-label,
31-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-timeline li span.phpdebugbar-widgets-collector,
32-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item,
33-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-list li span.phpdebugbar-widgets-label,
34-
div.phpdebugbar[data-theme="dark"] code.phpdebugbar-widgets-sql span.hljs-keyword,
35-
div.phpdebugbar-openhandler[data-theme="dark"] .php debugbar-openhandler-header,
36-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-header a,
37-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-panel .phpdebugbar-widgets-dataset-actions select {
38-
color: var(--color-gray-200);
27+
--color-icons: var(--color-header-text);
28+
--color-badge: #fff;
29+
--color-badge-text: var(--color-red-vivid);
30+
31+
--color-badge-active: var(--color-red-vivid);
32+
--color-badge-active-text: #fff;
33+
34+
--color-link: var(--color-gray-500);
35+
--color-hover: var(--color-gray-400);
36+
--color-hover-bg: var(--color-gray-300);
37+
38+
--color-header-hover: var(--color-gray-700);
39+
--color-background-alt: var(--color-gray-900);
3940
}
4041

4142
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-timeline li span.phpdebugbar-widgets-label {
4243
text-shadow: 1px 1px #000;
4344
}
4445

45-
div.phpdebugbar-openhandler[data-theme="dark"],
46-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar,
47-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-exceptions li.phpdebugbar-widgets-list-item pre.phpdebugbar-widgets-file,
48-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item table.phpdebugbar-widgets-params,
49-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > a,
50-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions button,
51-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > form input,
52-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > form select,
53-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-panel .phpdebugbar-widgets-dataset-actions select {
54-
border-color: var(--color-gray-600);
55-
}
56-
5746
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-panel div.phpdebugbar-widgets-status > span:first-child:before,
5847
div.phpdebugbar-openhandler[data-theme="dark"] table th,
5948
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > a,
@@ -67,219 +56,7 @@ div.phpdebugbar[data-theme="dark"] div.phpdebugbar-header {
6756
text-shadow: none;
6857
}
6958

70-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-header-right > * {
71-
border-right-color: var(--color-gray-800);
72-
}
73-
74-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-header > div > select,
75-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item table.phpdebugbar-widgets-params,
76-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > form input,
77-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > form select,
78-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-panel .phpdebugbar-widgets-dataset-actions select,
79-
div.phpdebugbar[data-theme="dark"] input[type='text'],
80-
div.phpdebugbar[data-theme="dark"] input[type='password'] {
81-
background-color: var(--color-gray-800);
82-
}
83-
84-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-header,
85-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-restore-btn,
86-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-header,
87-
div.phpdebugbar[data-theme="dark"] dl.phpdebugbar-widgets-kvlist > :nth-child(4n-1),
88-
div.phpdebugbar[data-theme="dark"] dl.phpdebugbar-widgets-kvlist > :nth-child(4n),
89-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item:nth-child(even),
90-
div.phpdebugbar[data-theme="dark"] .hljs,
91-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params th,
92-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > a,
93-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions button,
94-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-templates table.phpdebugbar-widgets-params th {
95-
background-color: var(--color-gray-900);
96-
}
97-
98-
div.phpdebugbar[data-theme="dark"] .phpdebugbar-widgets-mails ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item .phpdebugbar-widgets-headers,
99-
div.phpdebugbar[data-theme="dark"] ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item table.phpdebugbar-widgets-params {
100-
border-left-color: var(--color-gray-600);
101-
}
102-
103-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-tab:hover,
104-
div.phpdebugbar[data-theme="dark"] span.phpdebugbar-indicator:hover,
105-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-indicator:hover,
106-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-close-btn:hover,
107-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-minimize-btn:hover,
108-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-maximize-btn:hover,
109-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-open-btn:hover,
110-
div.phpdebugbar-openhandler[data-theme="dark"] table th,
111-
div.phpdebugbar-openhandler[data-theme="dark"] table tr:nth-child(2n),
112-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar {
113-
background-color: var(--color-gray-700);
114-
}
115-
116-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-tab.phpdebugbar-active:hover {
117-
background-color: var(--color-red-vivid);
118-
}
119-
120-
div.phpdebugbar[data-theme="dark"] .phpdebugbar-indicator span.phpdebugbar-tooltip,
121-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-mini-design a.phpdebugbar-tab:hover span.phpdebugbar-text,
122-
div.phpdebugbar[data-theme="dark"] pre.sf-dump,
123-
div.phpdebugbar[data-theme="dark"] .hljs,
124-
div.phpdebugbar[data-theme="dark"] code.phpdebugbar-widgets-sql span.hljs-operator {
125-
color: var(--color-gray-100);
126-
}
127-
128-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-public,
129-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-protected,
130-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-private {
131-
color: var(--color-gray-100) !important;
132-
}
133-
134-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-panel div.phpdebugbar-widgets-status > span:first-child:before,
135-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-openhandler[data-theme="dark"] a {
136-
color: var(--color-gray-500);
137-
}
138-
139-
div.phpdebugbar[data-theme="dark"] .phpdebugbar-indicator span.phpdebugbar-tooltip,
140-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-mini-design a.phpdebugbar-tab:hover span.phpdebugbar-text {
141-
background: var(--color-gray-900);
142-
}
143-
144-
div.phpdebugbar[data-theme="dark"] .hljs-tag .hljs-value,
145-
div.phpdebugbar[data-theme="dark"] .hljs-phpdoc,
146-
div.phpdebugbar[data-theme="dark"] .tex .hljs-formula,
147-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-exceptions li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-message {
148-
color: var(--color-red-vivid);
149-
}
150-
151-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-database,
152-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-duration,
153-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-memory,
154-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-row-count,
155-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-copy-clipboard,
156-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-stmt-id,
157-
div.phpdebugbar[data-theme="dark"] .phpdebugbar-widgets-callgraph pre,
158-
div.phpdebugbar[data-theme="dark"] .phpdebugbar-text-muted,
159-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-text-muted
160-
{
161-
color: var(--color-gray-600);
162-
}
163-
164-
div.phpdebugbar[data-theme="dark"] li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-filename,
165-
div.phpdebugbar[data-theme="dark"] li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-filename a.phpdebugbar-widgets-editor-link
166-
{
167-
color: #ddd;
168-
}
169-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate {
170-
background-color: #473e00;
171-
}
172-
173-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value:before {
174-
color: #7B7B7B;
175-
}
176-
177-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-note {
178-
color: #8be9fd;
179-
}
180-
181-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-num,
182-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-const,
183-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-index {
184-
color: #bd93f9;
185-
}
186-
187-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-key,
188-
div.phpdebugbar[data-theme="dark"] pre.sf-dump .sf-dump-str {
189-
color: #f1fa8c;
190-
}
191-
19259
div.phpdebugbar-openhandler[data-theme="dark"] {
19360
border-top-color: var(--color-red-vivid);
19461
}
19562

196-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-header .phpdebugbar-tab {
197-
border-color: var(--color-gray-800);
198-
}
199-
200-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-body {
201-
border-top-color: var(--color-gray-800);
202-
}
203-
204-
div.phpdebugbar[data-theme="dark"] a.phpdebugbar-restore-btn {
205-
border-right-color: var(--color-gray-800) !important;
206-
}
207-
208-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-panel div.phpdebugbar-widgets-status {
209-
background-color: var(--color-gray-900) !important;
210-
border-bottom-color: var(--color-gray-800) !important;
211-
}
212-
213-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-templates div.phpdebugbar-widgets-status {
214-
background: var(--color-gray-900) !important;
215-
}
216-
217-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-panel div.phpdebugbar-widgets-status > * {
218-
color: var(--color-gray-200) !important;
219-
}
220-
221-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-templates span.phpdebugbar-widgets-render-time,
222-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-templates span.phpdebugbar-widgets-memory,
223-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-templates span.phpdebugbar-widgets-param-count,
224-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-templates span.phpdebugbar-widgets-type {
225-
color: var(--color-gray-600) !important;
226-
}
227-
228-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params td {
229-
border-color: var(--color-gray-600) !important;
230-
}
231-
232-
div.phpdebugbar[data-theme="dark"] code,
233-
div.phpdebugbar[data-theme="dark"] pre {
234-
color: #f1fa8c;
235-
}
236-
237-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > a,
238-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions button,
239-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > form input,
240-
div.phpdebugbar-openhandler[data-theme="dark"] .phpdebugbar-openhandler-actions > form select,
241-
div.phpdebugbar[data-theme="dark"] input[type='text'],
242-
div.phpdebugbar[data-theme="dark"] input[type='password'] {
243-
color: var(--color-gray-300);
244-
}
245-
246-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-exceptions li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate span.phpdebugbar-widgets-filename,
247-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate span.phpdebugbar-widgets-database,
248-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate span.phpdebugbar-widgets-duration,
249-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate span.phpdebugbar-widgets-memory,
250-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate span.phpdebugbar-widgets-row-count,
251-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate span.phpdebugbar-widgets-copy-clipboard,
252-
div.phpdebugbar[data-theme="dark"] div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item.phpdebugbar-widgets-sql-duplicate span.phpdebugbar-widgets-stmt-id {
253-
color: var(--color-gray-500);
254-
}
255-
256-
div.phpdebugbar[data-theme="dark"] dl.phpdebugbar-widgets-kvlist > :nth-child(4n)::before {
257-
background-color: var(--color-gray-900);
258-
}
259-
260-
div.phpdebugbar[data-theme="dark"] dt.phpdebugbar-widgets-key {
261-
background: var(--color-gray-800);
262-
}
263-
264-
div.phpdebugbar[data-theme="dark"] code.language-php,
265-
div.phpdebugbar[data-theme="dark"] pre.language-php {
266-
color: #FFF;
267-
}
268-
269-
div.phpdebugbar[data-theme="dark"] pre.phpdebugbar-widgets-code-block ul {
270-
background: none;
271-
}
272-
273-
.phpdebugbar-widgets-dataset-history table tr.phpdebugbar-widgets-active {
274-
background-color: var(--color-gray-700);
275-
color: white;
276-
}
277-
278-
.phpdebugbar-widgets-dataset-history table th,
279-
.phpdebugbar-widgets-dataset-history table td {
280-
border-color: var(--color-gray-600);
281-
}
282-
283-
ul.phpdebugbar-widgets-timeline table.phpdebugbar-widgets-params td {
284-
border-color: var(--color-gray-700);
285-
}

0 commit comments

Comments
 (0)