Skip to content

Commit

Permalink
fix: make css button for vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Mar 8, 2024
1 parent 1ceafd6 commit 0fc5485
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
10 changes: 5 additions & 5 deletions admin/css/debug-toolbar/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
@import '_mixins';
@import '_settings';

a[role="button"] {
cursor: pointer;
}

// DEBUG ICON
// ========================================================================== */

Expand All @@ -39,7 +35,6 @@ a[role="button"] {
clear: both;
text-align: center;

// Cursor
cursor: pointer;

a svg {
Expand All @@ -62,6 +57,10 @@ a[role="button"] {
// DEBUG BAR
// ========================================================================== */

.debug-bar-vars {
cursor: pointer;
}

#debug-bar {
// Position
bottom: 0;
Expand Down Expand Up @@ -247,6 +246,7 @@ a[role="button"] {
#debug-bar-link {
display: flex;
padding: 6px;
cursor: pointer;
}

// The toolbar menus
Expand Down
9 changes: 5 additions & 4 deletions system/Debug/Toolbar/Views/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
a[role=button] {
cursor: pointer;
}

#debug-icon {
bottom: 0;
position: fixed;
Expand All @@ -36,6 +32,10 @@ a[role=button] {
display: none;
}

.debug-bar-vars {
cursor: pointer;
}

#debug-bar {
bottom: 0;
left: 0;
Expand Down Expand Up @@ -175,6 +175,7 @@ a[role=button] {
#debug-bar #debug-bar-link {
display: flex;
padding: 6px;
cursor: pointer;
}
#debug-bar .ci-label {
display: inline-flex;
Expand Down
14 changes: 7 additions & 7 deletions system/Debug/Toolbar/Views/toolbar.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<?php if (isset($vars['varData'])) : ?>
<?php foreach ($vars['varData'] as $heading => $items) : ?>

<a role="button" data-toggle="datatable" data-table="<?= strtolower(str_replace(' ', '-', $heading)) ?>">
<a class="debug-bar-vars" data-toggle="datatable" data-table="<?= strtolower(str_replace(' ', '-', $heading)) ?>">
<h2><?= $heading ?></h2>
</a>

Expand All @@ -148,7 +148,7 @@
<?php endif ?>

<!-- Session -->
<a role="button" data-toggle="datatable" data-table="session">
<a class="debug-bar-vars" data-toggle="datatable" data-table="session">
<h2>Session User Data</h2>
</a>

Expand All @@ -174,7 +174,7 @@
<h2>Request <span>( <?= $vars['request'] ?> )</span></h2>

<?php if (isset($vars['get']) && $get = $vars['get']) : ?>
<a role="button" data-toggle="datatable" data-table="get">
<a class="debug-bar-vars" data-toggle="datatable" data-table="get">
<h3>$_GET</h3>
</a>

Expand All @@ -191,7 +191,7 @@
<?php endif ?>

<?php if (isset($vars['post']) && $post = $vars['post']) : ?>
<a role="button" data-toggle="datatable" data-table="post">
<a class="debug-bar-vars" data-toggle="datatable" data-table="post">
<h3>$_POST</h3>
</a>

Expand All @@ -208,7 +208,7 @@
<?php endif ?>

<?php if (isset($vars['headers']) && $headers = $vars['headers']) : ?>
<a role="button" data-toggle="datatable" data-table="request_headers">
<a class="debug-bar-vars" data-toggle="datatable" data-table="request_headers">
<h3>Headers</h3>
</a>

Expand All @@ -225,7 +225,7 @@
<?php endif ?>

<?php if (isset($vars['cookies']) && $cookies = $vars['cookies']) : ?>
<a role="button" data-toggle="datatable" data-table="cookie">
<a class="debug-bar-vars" data-toggle="datatable" data-table="cookie">
<h3>Cookies</h3>
</a>

Expand All @@ -246,7 +246,7 @@
</h2>

<?php if (isset($vars['response']['headers']) && $headers = $vars['response']['headers']) : ?>
<a role="button" data-toggle="datatable" data-table="response_headers">
<a class="debug-bar-vars" data-toggle="datatable" data-table="response_headers">
<h3>Headers</h3>
</a>

Expand Down

0 comments on commit 0fc5485

Please sign in to comment.