From d781702215dd001a2ae19715bac7dd031bbaf6e2 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Sat, 29 Jul 2023 17:25:04 +0100 Subject: [PATCH] More fixes --- public/css/master.css | 72 ++++++++----------- public/css/minimal.css | 2 +- .../admin/guestbook-del-confirm.blade.php | 2 +- .../views/pages/admin/guestbook.blade.php | 6 +- resources/views/pages/guestbook.blade.php | 6 +- 5 files changed, 37 insertions(+), 51 deletions(-) diff --git a/public/css/master.css b/public/css/master.css index 27ca004..dcec607 100644 --- a/public/css/master.css +++ b/public/css/master.css @@ -1,6 +1,6 @@ body { font-family: sans-serif; - margin: 0px; + margin: 0; color: #ddd; background-color: #333; } @@ -54,13 +54,7 @@ h2, h3 { margin-top: 1em; clear: left; - h1, - h2, - h3 { - margin-top: 1em; - clear: left; - color: #fff; - } + color: #fff; } img { @@ -125,9 +119,10 @@ div.codeblock pre { max-width: 90%; min-width: 400px; } + div.codeblock pre h1, div.codeblock pre hr { - margin: 0px + margin: 0 } div.codeblock pre h1 small { @@ -168,12 +163,12 @@ nav div a img { nav div h1 { font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, - Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, + Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-weight: normal; font-size: 30px; margin: 10px; - margin-left: 0px; + margin-left: 0; } div.date { @@ -186,10 +181,7 @@ div.note { table { border-collapse: collapse; - table { - border-collapse: collapse; - border-color: #fff; - } + border-color: #fff; } table.noborder td { @@ -295,14 +287,12 @@ table td { } td { - padding: 0px; + padding: 0; vertical-align: top; } table.skami { - table.skami { - border-color: #eeeeee; - } + border-color: #eeeeee; } .header .pagetree { @@ -344,7 +334,7 @@ table.computers { td.computer { width: 50%; - border: 0px; + border: 0; } div.footer { @@ -362,78 +352,74 @@ a { text-decoration: none; } -table.gb_entryform tr td { +table.gb-entryform tr td { border: none; } -table.gb_entryform tr td label { +table.gb-entryform tr td label { padding-right: 5px; } -table.gb_entryform tr td span.text-danger { +table.gb-entryform tr td span.text-danger { padding-left: 5px; color: rgb(255, 114, 114); } -table.gb_entryform tr td textarea, -table.gb_entryform tr td input { +table.gb-entryform tr td textarea, +table.gb-entryform tr td input { margin-bottom: 5px; } -table.gb_entryform_container { +table.gb-entryform-container { width: 100%; } -table.gb_entryform_container tr td { +table.gb-entryform-container tr td { border: none; vertical-align: top; } -table.gb_entryform_container tr td p, -table.gb_entryform_container tr td ul { - margin: 0px; +table.gb-entryform-container tr td p, +table.gb-entryform-container tr td ul { + margin: 0; } -table.gb_entryform tbody tr td textarea { +table.gb-entryform tbody tr td textarea { width: 210px; } -table.gb_entry tr td { +table.gb-entry tr td { border: solid #ffffff 1px; width: 500px; vertical-align: top; padding: 5px; } -table.gb_entry { +table.gb-entry { margin-bottom: 5px; } -table.gb_admin { +table.gb-admin { margin-bottom: 5px; width: 500px; - table.gb_admin { - margin-bottom: 5px; - width: 500px; - border: #fff solid; - } + border: #fff solid; } -table.gb_admin tr td { +table.gb-admin tr td { border-right: none; border-bottom: none; vertical-align: top; padding: 5px; } -table.gb_admin tr td.gb_del { +table.gb-admin tr td.gb-del { border-left: none; vertical-align: top; padding: 5px; width: 32px; } -table.gb_admin tr td.gb_message { +table.gb-admin tr td.gb-message { border-top: none; vertical-align: top; padding: 5px; @@ -448,7 +434,7 @@ table.infotable tr td { table.infotable tr td h1, table.infotable tr td h2, table.infotable tr td small { - margin: 0px; + margin: 0; } table.infotable tr td small { diff --git a/public/css/minimal.css b/public/css/minimal.css index 3193602..d70d9d6 100644 --- a/public/css/minimal.css +++ b/public/css/minimal.css @@ -10,6 +10,6 @@ body { background-color: #333; } -table.gb_entry_details tr td { +table.gb-entry_details tr td { padding-right: 5px; } diff --git a/resources/views/pages/admin/guestbook-del-confirm.blade.php b/resources/views/pages/admin/guestbook-del-confirm.blade.php index ebdafd2..7db9e6d 100644 --- a/resources/views/pages/admin/guestbook-del-confirm.blade.php +++ b/resources/views/pages/admin/guestbook-del-confirm.blade.php @@ -6,7 +6,7 @@

Are you sure you want to delete this entry?

Entry Details:

- +
diff --git a/resources/views/pages/admin/guestbook.blade.php b/resources/views/pages/admin/guestbook.blade.php index a3b073f..d510910 100644 --- a/resources/views/pages/admin/guestbook.blade.php +++ b/resources/views/pages/admin/guestbook.blade.php @@ -10,19 +10,19 @@ @endphp

Entries ({{ count($entries) }} total)

@foreach ($entries as $entry) -
ID: {{ $entry->id }}
+
- - diff --git a/resources/views/pages/guestbook.blade.php b/resources/views/pages/guestbook.blade.php index a0112c1..9037ab5 100644 --- a/resources/views/pages/guestbook.blade.php +++ b/resources/views/pages/guestbook.blade.php @@ -2,13 +2,13 @@ @section('title', 'Guestbook') @section('content')
-
Name: {{ $entry->name }}
IP:   {{ $entry->ip_address }}
Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}
+ del
+
{{ htmlspecialchars($entry->message) }}
+
@csrf - +
@@ -62,7 +62,7 @@ @endphp

Entries ({{ count($entries) }} total)

@foreach ($entries as $entry) - +
Submitted by {{ $entry->name }}