Skip to content

Commit

Permalink
Use system font stack in the toolbar
Browse files Browse the repository at this point in the history
We follow the Django admin's lead, see https://code.djangoproject.com/ticket/33878
  • Loading branch information
matthiask committed Sep 16, 2022
1 parent 5923f38 commit c88a13d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
41 changes: 24 additions & 17 deletions debug_toolbar/static/debug_toolbar/css/toolbar.css
Expand Up @@ -76,7 +76,9 @@
color: #000;
vertical-align: baseline;
background-color: transparent;
font-family: sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
text-align: left;
text-shadow: none;
white-space: normal;
Expand Down Expand Up @@ -237,13 +239,30 @@
font-size: 16px;
}

#djDebug pre,
#djDebug code {
display: block;
font-family: Consolas, Monaco, "Bitstream Vera Sans Mono", "Lucida Console",
monospace;
font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
"Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
"Fira Mono", "Droid Sans Mono", "Courier New", monospace,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
overflow: auto;
}

#djDebug code {
font-size: 12px;
white-space: pre;
overflow: auto;
}

#djDebug pre {
white-space: pre-wrap;
color: #555;
border: 1px solid #ccc;
border-collapse: collapse;
background-color: #fff;
padding: 2px 3px;
margin-bottom: 3px;
}

#djDebug .djdt-panelContent {
Expand Down Expand Up @@ -562,19 +581,7 @@
#djDebug .djSQLDetailsDiv {
margin-top: 0.8em;
}
#djDebug pre {
white-space: pre-wrap;
color: #555;
border: 1px solid #ccc;
border-collapse: collapse;
background-color: #fff;
display: block;
overflow: auto;
padding: 2px 3px;
margin-bottom: 3px;
font-family: Consolas, Monaco, "Bitstream Vera Sans Mono", "Lucida Console",
monospace;
}

#djDebug .djdt-stack span {
color: #000;
font-weight: bold;
Expand Down
2 changes: 2 additions & 0 deletions docs/changes.rst
Expand Up @@ -4,6 +4,8 @@ Change log
Pending
-------

* The toolbar's font stack now prefers system UI fonts.

3.6.0 (2022-08-17)
------------------

Expand Down

0 comments on commit c88a13d

Please sign in to comment.