Skip to content

Commit 69bf1eb

Browse files
blopkertim-schilling
authored andcommitted
Remove css text-indent hack for back and close buttons.
Fixes django-commons#624. Remove text-index Remove old 'Back' text Remove 'close' text
1 parent e009bb3 commit 69bf1eb

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

debug_toolbar/static/debug_toolbar/css/toolbar.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@
370370
*/
371371

372372
#djDebug .djdt-panelContent .djDebugClose {
373-
text-indent:-9999999px;
374373
display:block;
375374
position:absolute;
376375
top:4px;

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
inner.prev().remove(); // Remove AJAX loader
3535
inner.html(data);
3636
}).fail(function(xhr){
37-
var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
37+
var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href=""></a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
3838
$('#djDebugWindow').html(message).show();
3939
});
4040
}
@@ -79,7 +79,7 @@
7979
$.ajax(ajax_data).done(function(data){
8080
$('#djDebugWindow').html(data).show();
8181
}).fail(function(xhr){
82-
var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
82+
var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href=""></a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
8383
$('#djDebugWindow').html(message).show();
8484
});
8585

debug_toolbar/templates/debug_toolbar/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% if panel.has_content and panel.enabled %}
5353
<div id="{{ panel.panel_id }}" class="djdt-panelContent">
5454
<div class="djDebugPanelTitle">
55-
<a href="" class="djDebugClose">{% trans "Close" %}</a>
55+
<a href="" class="djDebugClose"></a>
5656
<h3>{{ panel.title|safe }}</h3>
5757
</div>
5858
<div class="djDebugPanelContent">

debug_toolbar/templates/debug_toolbar/panels/sql_explain.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load i18n %}{% load static from staticfiles %}
22
<div class="djDebugPanelTitle">
3-
<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
3+
<a class="djDebugClose djDebugBack" href=""></a>
44
<h3>{% trans "SQL explained" %}</h3>
55
</div>
66
<div class="djDebugPanelContent">

debug_toolbar/templates/debug_toolbar/panels/sql_profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load i18n %}{% load static from staticfiles %}
22
<div class="djDebugPanelTitle">
3-
<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
3+
<a class="djDebugClose djDebugBack" href=""></a>
44
<h3>{% trans "SQL profiled" %}</h3>
55
</div>
66
<div class="djDebugPanelContent">

debug_toolbar/templates/debug_toolbar/panels/sql_select.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load i18n %}{% load static from staticfiles %}
22
<div class="djDebugPanelTitle">
3-
<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
3+
<a class="djDebugClose djDebugBack" href=""></a>
44
<h3>{% trans "SQL selected" %}</h3>
55
</div>
66
<div class="djDebugPanelContent">

debug_toolbar/templates/debug_toolbar/panels/template_source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load i18n %}
22
<div class="djDebugPanelTitle">
3-
<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
3+
<a class="djDebugClose djDebugBack" href=""></a>
44
<h3>{% trans "Template source:" %} <code>{{ template_name }}</code></h3>
55
</div>
66
<div class="djDebugPanelContent">

0 commit comments

Comments
 (0)