[WebProfilerBundle] added btn-link.
This commit is contained in:
parent
0a5807bf47
commit
ac7591f505
@ -162,7 +162,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if stack %}
|
||||
<a class="text-small sf-toggle" data-toggle-selector="#{{ id }}" data-toggle-alt-content="Hide stack trace">Show strack trace</a>
|
||||
<button class="btn-link text-small sf-toggle" data-toggle-selector="#{{ id }}" data-toggle-alt-content="Hide stack trace">Show strack trace</button>
|
||||
{% endif %}
|
||||
|
||||
{% for index, call in stack if index > 1 %}
|
||||
|
@ -179,7 +179,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if message.parameters|length > 0 %}
|
||||
<a class="newline text-small sf-toggle" data-toggle-selector="#parameters-{{ loop.index }}" data-toggle-alt-content="Hide parameters">Show parameters</a>
|
||||
<button class="btn-link newline text-small sf-toggle" data-toggle-selector="#parameters-{{ loop.index }}" data-toggle-alt-content="Hide parameters">Show parameters</button>
|
||||
|
||||
<div id="parameters-{{ loop.index }}" class="hidden">
|
||||
{% for parameters in message.parameters %}
|
||||
|
@ -387,6 +387,8 @@
|
||||
}
|
||||
|
||||
Sfjs.addEventListener(toggles[i], 'click', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
var toggle = e.target || e.srcElement;
|
||||
var element = document.querySelector(toggle.getAttribute('data-toggle-selector'));
|
||||
|
||||
@ -406,8 +408,6 @@
|
||||
var originalContent = toggle.getAttribute('data-toggle-original-content');
|
||||
var altContent = toggle.getAttribute('data-toggle-alt-content');
|
||||
toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,18 @@ button {
|
||||
height: 16px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
border-color: transparent;
|
||||
color: #218BC3;
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.btn-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
{# Tables
|
||||
------------------------------------------------------------------------- #}
|
||||
table, tr, th, td {
|
||||
|
Reference in New Issue
Block a user