Skip to content

Commit dc11707

Browse files
authored
UI refinements toolbar (php-debugbar#647)
* Better alignments icons * refined icons * improve widgets list item padding * Ui refinements * Apply background blur to make sure tooltip text is readable in front of text * undo change that didn't have any effect * proper adjustment of previous commit * Revert fully rounded shape on the tab counters * remove px for 0 value
1 parent 7aa9a27 commit dc11707

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

src/DebugBar/Resources/debugbar.css

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ div.phpdebugbar-closed, div.phpdebugbar-minimized{
122122
/* -------------------------------------- */
123123

124124
a.phpdebugbar-restore-btn {
125-
background: #efefef url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20fill%3D%22%23000%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M6.039%208.342c.463%200%20.772.084.927.251.154.168.191.455.11.862-.084.424-.247.727-.487.908-.241.182-.608.272-1.1.272h-.743l.456-2.293h.837zm-2.975%204.615h1.22l.29-1.457H5.62c.461%200%20.84-.047%201.139-.142.298-.095.569-.254.812-.477.205-.184.37-.387.497-.608.127-.222.217-.466.27-.734.13-.65.032-1.155-.292-1.518-.324-.362-.84-.543-1.545-.543H4.153l-1.089%205.479zM9.235%206.02h1.21l-.289%201.458h1.079c.679%200%201.147.115%201.405.347.258.231.335.607.232%201.125l-.507%202.55h-1.23l.481-2.424c.055-.276.035-.464-.06-.565-.095-.1-.298-.15-.608-.15H9.98L9.356%2011.5h-1.21l1.089-5.48M15.566%208.342c.464%200%20.773.084.928.251.154.168.19.455.11.862-.084.424-.247.727-.488.908-.24.182-.607.272-1.1.272h-.742l.456-2.293h.836zm-2.974%204.615h1.22l.29-1.457h1.046c.461%200%20.84-.047%201.139-.142.298-.095.569-.254.812-.477.205-.184.37-.387.497-.608.127-.222.217-.466.27-.734.129-.65.032-1.155-.292-1.518-.324-.362-.84-.543-1.545-.543H13.68l-1.089%205.479z%22%20fill%3D%22%23FFF%22%2F%3E%3C%2Fsvg%3E) no-repeat 5px 4px / 20px 20px;
125+
background: #efefef url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20fill%3D%22%23000%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M6.039%208.342c.463%200%20.772.084.927.251.154.168.191.455.11.862-.084.424-.247.727-.487.908-.241.182-.608.272-1.1.272h-.743l.456-2.293h.837zm-2.975%204.615h1.22l.29-1.457H5.62c.461%200%20.84-.047%201.139-.142.298-.095.569-.254.812-.477.205-.184.37-.387.497-.608.127-.222.217-.466.27-.734.13-.65.032-1.155-.292-1.518-.324-.362-.84-.543-1.545-.543H4.153l-1.089%205.479zM9.235%206.02h1.21l-.289%201.458h1.079c.679%200%201.147.115%201.405.347.258.231.335.607.232%201.125l-.507%202.55h-1.23l.481-2.424c.055-.276.035-.464-.06-.565-.095-.1-.298-.15-.608-.15H9.98L9.356%2011.5h-1.21l1.089-5.48M15.566%208.342c.464%200%20.773.084.928.251.154.168.19.455.11.862-.084.424-.247.727-.488.908-.24.182-.607.272-1.1.272h-.742l.456-2.293h.836zm-2.974%204.615h1.22l.29-1.457h1.046c.461%200%20.84-.047%201.139-.142.298-.095.569-.254.812-.477.205-.184.37-.387.497-.608.127-.222.217-.466.27-.734.129-.65.032-1.155-.292-1.518-.324-.362-.84-.543-1.545-.543H13.68l-1.089%205.479z%22%20fill%3D%22%23FFF%22%2F%3E%3C%2Fsvg%3E) no-repeat center / 20px 20px;
126126
}
127127
div.phpdebugbar-header {
128128
min-height: 26px;
@@ -145,9 +145,16 @@ div.phpdebugbar-header-right {
145145
div.phpdebugbar-header > div > * {
146146
padding: 5px 5px;
147147
font-size: 14px;
148+
height: 16px;
148149
color: #555;
149150
text-decoration: none;
150151
}
152+
div.phpdebugbar-header-left > *,
153+
div.phpdebugbar-header-right > * {
154+
line-height: 0;
155+
display: flex;
156+
align-items: center;
157+
}
151158
div.phpdebugbar-header-left > * {
152159
float: left;
153160
}
@@ -188,7 +195,10 @@ a.phpdebugbar-tab.phpdebugbar-active {
188195
color: #555;
189196
font-weight: normal;
190197
text-shadow: none;
191-
vertical-align: middle;
198+
}
199+
a.phpdebugbar-tab.phpdebugbar-active span.phpdebugbar-badge {
200+
background: #000;
201+
color: #fff;
192202
}
193203
a.phpdebugbar-tab i {
194204
display: none;
@@ -242,16 +252,18 @@ a.phpdebugbar-open-btn {
242252
display: none;
243253
position: absolute;
244254
top: -30px;
245-
background: #efefef;
246-
opacity: .7;
255+
background: #efefef70;
247256
border: 1px solid #ccc;
248257
color: #555;
249258
font-size: 11px;
250-
padding: 2px 3px;
259+
padding: 2px 6px;
251260
z-index: 1000;
252261
text-align: center;
253-
width: 200%;
262+
white-space: nowrap;
254263
right: 0;
264+
line-height: 1.5;
265+
backdrop-filter: blur(5px);
266+
-webkit-backdrop-filter: blur(5px);
255267
}
256268
.phpdebugbar-indicator:hover span.phpdebugbar-tooltip:not(.phpdebugbar-disabled) {
257269
display: block;
@@ -300,15 +312,18 @@ div.phpdebugbar-mini-design a.phpdebugbar-tab {
300312
display: block;
301313
position: absolute;
302314
top: -30px;
303-
background: #efefef;
304-
opacity: .7;
315+
background: #efefef70;
316+
opacity: 1;
305317
border: 1px solid #ccc;
306318
color: #555;
307319
font-size: 11px;
308-
padding: 2px 3px;
320+
padding: 2px 6px;
309321
z-index: 1000;
310322
text-align: center;
311323
right: 0;
324+
line-height: 1.5;
325+
backdrop-filter: blur(5px);
326+
-webkit-backdrop-filter: blur(5px);
312327
}
313328
div.phpdebugbar-mini-design a.phpdebugbar-tab i {
314329
display:inline-block;
@@ -326,6 +341,7 @@ div.phpdebugbar-mini-design a.phpdebugbar-tab {
326341

327342
a.phpdebugbar-tab.phpdebugbar-tab-history .phpdebugbar-text {
328343
display: none;
344+
white-space: nowrap;
329345
}
330346
a.phpdebugbar-tab.phpdebugbar-tab-history i {
331347
display:inline-block;

0 commit comments

Comments
 (0)