|
17 | 17 | STYLE_BLOCK = """<style> |
18 | 18 | #django-devbar { |
19 | 19 | position: fixed; %s; z-index: 999999999; |
20 | | - display: flex; align-items: center; gap: 4px; |
| 20 | + display: flex; align-items: center; gap: 5px; |
21 | 21 | font-family: -apple-system, system-ui, sans-serif; |
22 | 22 | font-size: 11px; font-weight: 500; |
23 | 23 | padding: 4px 8px; margin: 8px; border-radius: 4px; |
24 | | - backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); |
25 | | - box-shadow: 0 2px 5px rgba(0,0,0,0.1); |
| 24 | + backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); |
| 25 | + box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.2); |
26 | 26 | transition: all 0.2s ease; |
27 | 27 | cursor: default; |
28 | 28 | line-height: 1.3; |
29 | | - background: rgba(20, 20, 20, 0.85); |
30 | | - color: #e5e5e5; |
| 29 | + background: rgba(20, 20, 20, 0.92); |
| 30 | + color: #f5f5f5; |
31 | 31 | } |
32 | 32 | #django-devbar.level-warn { border-left: 3px solid #f59e0b; } |
33 | 33 | #django-devbar.level-crit { border-left: 3px solid #dc2626; } |
34 | 34 | #django-devbar span { opacity: 0.7; } |
35 | 35 | #django-devbar strong { opacity: 1; font-weight: 600; } |
| 36 | +#django-devbar .duplicate-badge { color: #f59e0b; font-weight: 600; } |
| 37 | +@media (max-width: 640px) { #django-devbar { display: none; } } |
36 | 38 | </style>""" |
37 | 39 |
|
38 | 40 | BAR_TEMPLATE = """<div id="django-devbar" class="level-%s"> |
@@ -128,7 +130,7 @@ def _inject_devbar(self, response, stats, level): |
128 | 130 | return |
129 | 131 |
|
130 | 132 | dup_marker = ( |
131 | | - ' <strong style="color:#f59e0b">(d)</strong>' |
| 133 | + ' <strong class="duplicate-badge">(d)</strong>' |
132 | 134 | if stats["has_duplicates"] |
133 | 135 | else "" |
134 | 136 | ) |
|
0 commit comments