Skip to content

Commit dbc8ef7

Browse files
committed
Lots of font changes and other tweaks.
1 parent b79deb7 commit dbc8ef7

File tree

3 files changed

+35
-18
lines changed

3 files changed

+35
-18
lines changed

TracyDebugger.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TracyDebugger extends WireData implements Module, ConfigurableModule {
3232
'summary' => __('Tracy debugger from Nette with several PW specific custom tools.', __FILE__),
3333
'author' => 'Adrian Jones',
3434
'href' => 'https://processwire.com/talk/topic/12208-tracy-debugger/',
35-
'version' => '4.10.12',
35+
'version' => '4.10.13',
3636
'autoload' => true,
3737
'singular' => true,
3838
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
@@ -1810,7 +1810,7 @@ class TracyDebugger extends WireData implements Module, ConfigurableModule {
18101810
public static function generatedTimeSize($panel, $seconds, $bytes) {
18111811
\TracyDebugger::$panelGenerationTime[$panel]['time'] = $seconds;
18121812
\TracyDebugger::$panelGenerationTime[$panel]['size'] = $bytes;
1813-
return '<div style="position:absolute; bottom: 3px; clear:both; font-size:9px !important; text-align:left !important">'.static::formatTime($seconds).'<span style="color: #999999;">,</span> '.static::human_filesize($bytes).'</div>';
1813+
return '<div class="tracy-time-size">'.static::formatTime($seconds).'<span style="color: #999999;">,</span> '.static::human_filesize($bytes).'</div>';
18141814
}
18151815

18161816

panels/ConsolePanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getPanel() {
3737
$pwRoot = $this->wire('config')->urls->root;
3838
$tracyModuleUrl = $this->wire("config")->urls->TracyDebugger;
3939
$inAdmin = \TracyDebugger::$inAdmin;
40-
$consoleContainerAdjustment = $inAdmin ? 140 : 170;
40+
$consoleContainerAdjustment = $inAdmin ? 130 : 160;
4141

4242
// store various $input properties so they are available to the console
4343
$this->wire('session')->tracyPostData = $this->wire('input')->post->getArray();

styles.css

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ body.tracyHidden:before {
2020
display: none;
2121
}
2222

23-
/* needed to make panels draggable - comes from bar.css but we change block to #tracy-debug-bar so need to add this here. */
23+
2424
#tracy-debug * {
25-
pointer-events: auto;
25+
pointer-events: auto; /* needed to make panels draggable - comes from bar.css but we change block to #tracy-debug-bar so need to add this here. */
26+
font: inherit;
2627
}
2728

28-
#tracy-debug *:not(span):not(h1):not('.tracy-icons') {
29-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
29+
#tracy-debug:not(.tracy-icons):not(.tracy-label):not(.ace_editor) {
30+
font: normal normal 13px/1.3 Arial, sans-serif !important;
3031
}
3132

32-
#tracy-debug pre * {
33+
#tracy-debug pre {
3334
font-family: monospace !important;
3435
}
3536

@@ -92,7 +93,7 @@ body.tracyHidden:before {
9293
}
9394

9495
#tracy-debug input {
95-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
96+
font: normal normal 13px/1.3 Arial, sans-serif !important;
9697
font-size: 13px !important;
9798
text-transform: none !important;
9899
display: inline-block !important;
@@ -138,7 +139,7 @@ body.tracyHidden:before {
138139
}
139140

140141
#tracy-debug input[type="text"], #tracy-debug input[type="number"] {
141-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
142+
font: normal normal 13px/1.3 Arial, sans-serif !important;
142143
height: 30px !important;
143144
width: initial !important;
144145
display: inline-block !important;
@@ -147,15 +148,20 @@ body.tracyHidden:before {
147148
border-radius: 0 !important;
148149
}
149150

151+
#tracy-debug legend {
152+
margin: 0 !important;
153+
border: 0 !important;
154+
}
155+
150156
#tracy-debug, #tracy-debug h2, #tracy-debug legend {
151-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
157+
font: normal normal 13px/1.3 Arial, sans-serif !important;
152158
font-weight: normal !important;
153159
color: #333333 !important;
154160
text-transform: none !important;
155161
}
156162

157163
#tracy-debug, #tracy-debug legend, #tracy-debug p, #tracy-debug legend li, #tracy-debug select, #tracy-debug label {
158-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
164+
font: normal normal 13px/1.3 Arial, sans-serif !important;
159165
font-weight: normal !important;
160166
color: #333333 !important;
161167
}
@@ -233,7 +239,7 @@ body.tracyHidden:before {
233239

234240
#tracy-debug .tracy-panel td,
235241
#tracy-debug .tracy-panel th {
236-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
242+
font: normal normal 13px/1.3 Arial, sans-serif !important;
237243
font-weight: normal !important;
238244
padding: 4px !important;
239245
border: 1px solid #C9D4E1 !important;
@@ -282,7 +288,7 @@ table.captainHookTable td:nth-child(3), table.captainHookTable th:nth-child(3) {
282288
border-radius: 5px !important;
283289
cursor: pointer !important;
284290
text-transform: none !important;
285-
font: normal normal 13px/1.55 Tahoma, sans-serif;
291+
font: normal normal 13px/1.3 Arial, sans-serif;
286292
color: #444444;
287293
}
288294

@@ -381,6 +387,10 @@ table.captainHookTable td:nth-child(3), table.captainHookTable th:nth-child(3) {
381387
pointer-events: none;
382388
}
383389

390+
#tracy-debug-panel-PanelSelectorPanel label {
391+
line-height: 1.75 !important;
392+
}
393+
384394
#tracy-debug-panel-PanelSelectorPanel fieldset div label {
385395
display: block !important;
386396
width: 300px !important;
@@ -430,7 +440,7 @@ ul.pw-info-links {
430440
}
431441

432442
.pw-info-links a {
433-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
443+
font: normal normal 13px/1.3 Arial, sans-serif !important;
434444
transition: transform 0.12s;
435445
}
436446
.pw-info-links a svg {
@@ -476,7 +486,7 @@ ul.pw-info-links {
476486
display: block;
477487
padding: 0 !important;
478488
border-top: 1px solid #ddd;
479-
font: normal normal 13px/1.55 Tahoma, sans-serif !important;
489+
font: normal normal 13px/1.3 Arial, sans-serif !important;
480490
line-height: 18px !important;
481491
position:relative !important;
482492
}
@@ -782,9 +792,8 @@ ul.pw-info-links {
782792
height: 16px !important;
783793
}
784794

785-
786795
#tracy-debug .tracy-DumpPanel h2, #tracyConsoleResult h2, #tracySnippetRunnerResult h2 {
787-
font: normal normal Tahoma, sans-serif !important;
796+
font: normal normal Arial, sans-serif !important;
788797
font-size: 14px !important;
789798
margin: 0;
790799
padding: 2px 8px;
@@ -802,6 +811,14 @@ ul.pw-info-links {
802811
background-color: #125EAE !important;
803812
}
804813

814+
.tracy-time-size {
815+
position:absolute;
816+
bottom: 3px;
817+
clear:both;
818+
font-size:9px !important;
819+
text-align:left !important;
820+
}
821+
805822
/* clipboardjs "Copied!" tooltip */
806823
.tooltipped {
807824
position:relative !important;

0 commit comments

Comments
 (0)