From 2d62e30b5f96565346ec11df5a9e50fd477c6382 Mon Sep 17 00:00:00 2001 From: Matt Libera Date: Thu, 1 Mar 2018 03:51:46 -0500 Subject: [PATCH] Update for Bootstrap 4 (#122) * update for bootstrap4, using fontawesome. adjust some spacing and font-size away from bs4 default * better style organization, change style and markup on button in content section for bs4 --- .../LaravelLogViewer/LaravelLogViewer.php | 18 +++---- src/views/log.blade.php | 54 ++++++++++++------- 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php b/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php index 212b535..7ca8838 100644 --- a/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php +++ b/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php @@ -27,15 +27,15 @@ class LaravelLogViewer ]; private static $levels_imgs = [ - 'debug' => 'info', - 'info' => 'info', - 'notice' => 'info', - 'warning' => 'warning', - 'error' => 'warning', - 'critical' => 'warning', - 'alert' => 'warning', - 'emergency' => 'warning', - 'processed' => 'info' + 'debug' => 'info-circle', + 'info' => 'info-circle', + 'notice' => 'info-circle', + 'warning' => 'exclamation-triangle', + 'error' => 'exclamation-triangle', + 'critical' => 'exclamation-triangle', + 'alert' => 'exclamation-triangle', + 'emergency' => 'exclamation-triangle', + 'processed' => 'info-circle' ]; /** diff --git a/src/views/log.blade.php b/src/views/log.blade.php index 9e31020..4ad7f10 100644 --- a/src/views/log.blade.php +++ b/src/views/log.blade.php @@ -2,14 +2,12 @@ - - + Laravel log viewer - - + + @@ -28,6 +26,20 @@ margin-top: 0; } + #table-log { + font-size: 0.85rem; + } + + .sidebar { + font-size: 0.85rem; + line-height: 1; + } + + .btn { + font-size: 0.7rem; + } + + .stack { font-size: 0.85em; } @@ -54,8 +66,8 @@
-