Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit ace343c

Browse files
committed
Add css close button
1 parent 26c9e23 commit ace343c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

module/ggrachdev.debugbar/classes/general/BitrixDebugger/Representer/DebugBarRepresenter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public static function render(Debugger $debugger): string {
9696

9797
self::addViewInRightSlot('<a target="_blank" href="/bitrix/admin/site_edit.php?LID=' . \SITE_ID . '&lang=ru" class="ggrach__debug_bar__right__item type-notice-success" title="Текущая страница">' . SITE_CHARSET . '</a>');
9898

99+
self::addViewInRightSlot('<a href="javascript:void(0);" data-click="toggle_debug_bar" class="ggrach__debug_bar__right__item ggrach__debug_bar__right__item_close ggrach-debug-bar-color-black" title="Скрыть / Раскрыть фильтр">&#215;</a>');
100+
99101
$view = '<section class="ggrach__overlay" style="display: none;"></section><section class="ggrach__debug_bar">';
100102

101103
$view .= self::renderLeftView();

module/ggrachdev.debugbar/install/css/general.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,14 @@
225225
}
226226

227227
.ggrach-debug-bar-color-black {
228-
color: #fff;
228+
color: #fff !important;
229229
background: #000;
230230
}
231231

232+
.ggrach__debug_bar__right__item_close {
233+
font-size: 26px !important;
234+
}
235+
232236
.ggrach__debug_bar.hide-debug-bar > * {
233237
display: none !important;
234238
}

0 commit comments

Comments
 (0)