Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use system font stack in the toolbar #1672

Merged
merged 1 commit into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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