Skip to content

Commit 930a44f

Browse files
committed
style(panel): enhance styles for Tracy debug panel
- Added styles for Tracy debug panel elements - Ensured consistency between Nette and Tracy debug styles - Improved hover and active states for interactive elements
1 parent b30a3e0 commit 930a44f

File tree

1 file changed

+29
-20
lines changed

1 file changed

+29
-20
lines changed

src/Diagnostics/Panel/panel.phtml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ namespace Spameri\Elastic\Diagnostics\Panel;
44

55
?>
66
<style>
7-
#nette-debug .elasticSearchPanel-method { font-weight: bold; }
7+
#nette-debug .elasticSearchPanel-method,
8+
#tracy-debug .elasticSearchPanel-method { font-weight: bold; }
89

9-
#nette-debug .elasticSearchPanel-error { font-size: xx-small; }
10+
#nette-debug .elasticSearchPanel-error,
11+
#tracy-debug .elasticSearchPanel-error { font-size: xx-small; }
1012

11-
#nette-debug .elasticSearchPanel-copy {
13+
#nette-debug .elasticSearchPanel-copy,
14+
#tracy-debug .elasticSearchPanel-copy {
1215
cursor: pointer;
1316
padding: 4px 10px;
1417
font-size: 11px;
@@ -19,35 +22,41 @@ namespace Spameri\Elastic\Diagnostics\Panel;
1922
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
2023
}
2124

22-
#nette-debug .elasticSearchPanel-copy:hover {
25+
#nette-debug .elasticSearchPanel-copy:hover,
26+
#tracy-debug .elasticSearchPanel-copy:hover {
2327
background: #e8e8e8;
2428
border-color: #aaa;
2529
}
2630

27-
#nette-debug .elasticSearchPanel-copy:active {
31+
#nette-debug .elasticSearchPanel-copy:active,
32+
#tracy-debug .elasticSearchPanel-copy:active {
2833
background: #ddd;
2934
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
3035
}
3136

32-
#nette-debug .elasticSearchPanel .tracy-toggle .tracy-dump-object {
33-
cursor: pointer;
34-
display: inline-block;
35-
padding: 4px 10px;
36-
font-size: 11px;
37-
background: #f5f5f5;
38-
border: 1px solid #bbb;
39-
border-radius: 4px;
40-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
37+
#nette-debug .elasticSearchPanel .tracy-toggle > .tracy-dump-object,
38+
#tracy-debug .elasticSearchPanel .tracy-toggle > .tracy-dump-object {
39+
cursor: pointer !important;
40+
display: inline-block !important;
41+
padding: 4px 10px !important;
42+
font-size: 11px !important;
43+
background: #f5f5f5 !important;
44+
border: 1px solid #bbb !important;
45+
border-radius: 4px !important;
46+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
47+
color: #333 !important;
4148
}
4249

43-
#nette-debug .elasticSearchPanel .tracy-toggle .tracy-dump-object:hover {
44-
background: #e8e8e8;
45-
border-color: #aaa;
50+
#nette-debug .elasticSearchPanel .tracy-toggle > .tracy-dump-object:hover,
51+
#tracy-debug .elasticSearchPanel .tracy-toggle > .tracy-dump-object:hover {
52+
background: #e8e8e8 !important;
53+
border-color: #aaa !important;
4654
}
4755

48-
#nette-debug .elasticSearchPanel .tracy-toggle .tracy-dump-object:active {
49-
background: #ddd;
50-
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
56+
#nette-debug .elasticSearchPanel .tracy-toggle > .tracy-dump-object:active,
57+
#tracy-debug .elasticSearchPanel .tracy-toggle > .tracy-dump-object:active {
58+
background: #ddd !important;
59+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
5160
}
5261
</style>
5362
<h1>

0 commit comments

Comments
 (0)