Skip to content

Commit c359e76

Browse files
committed
Tweak spacings a bit because of the changed fonts
1 parent be0a433 commit c359e76

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

debug_toolbar/static/debug_toolbar/css/toolbar.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
#djDebug tr,
6565
#djDebug th,
6666
#djDebug td,
67+
#djDebug summary,
6768
#djDebug button {
6869
margin: 0;
6970
padding: 0;
@@ -159,7 +160,7 @@
159160
text-decoration: none;
160161
display: block;
161162
font-size: 16px;
162-
padding: 10px 10px 5px 25px;
163+
padding: 7px 10px 8px 25px;
163164
color: #fff;
164165
}
165166
#djDebug #djDebugToolbar li > div.djdt-disabled {
@@ -178,6 +179,7 @@
178179

179180
#djDebug #djDebugToolbar li.djdt-active:before {
180181
content: "▶";
182+
font-family: sans-serif;
181183
position: absolute;
182184
left: 0;
183185
top: 50%;
@@ -388,18 +390,19 @@
388390
position: absolute;
389391
top: 4px;
390392
right: 15px;
391-
height: 16px;
392-
width: 16px;
393393
line-height: 16px;
394-
padding: 5px;
395394
border: 6px solid #ddd;
396395
border-radius: 50%;
397396
background: #fff;
398397
color: #ddd;
399-
text-align: center;
400398
font-weight: 900;
401399
font-size: 20px;
402-
box-sizing: content-box;
400+
height: 36px;
401+
width: 36px;
402+
padding: 0 0 5px;
403+
box-sizing: border-box;
404+
display: grid;
405+
place-items: center;
403406
}
404407

405408
#djDebug .djdt-panelContent .djDebugClose:hover {

docs/changes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Pending
1414
users to disable the inclusion of all project code. This will be useful
1515
to project setups that have dependencies installed under
1616
``settings.BASE_DIR``.
17-
* The toolbar's font stack now prefers system UI fonts.
17+
* The toolbar's font stack now prefers system UI fonts. Tweaked the CSS a bit
18+
to improve spacings.
1819

1920
3.6.0 (2022-08-17)
2021
------------------

0 commit comments

Comments
 (0)