From e8ada1e11f8ffc675266359818d2fbdfdc4d09d2 Mon Sep 17 00:00:00 2001 From: Jimi Robaer Date: Fri, 22 Nov 2024 14:53:07 +0100 Subject: [PATCH] Tweaks to styling --- app/Livewire/TopSecretComponent.php | 2 +- resources/css/front/utilities/black-friday.css | 6 ++++++ .../front/pages/top-secret/index.blade.php | 18 +++++++++--------- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/app/Livewire/TopSecretComponent.php b/app/Livewire/TopSecretComponent.php index 3a478dae..2e40ae09 100644 --- a/app/Livewire/TopSecretComponent.php +++ b/app/Livewire/TopSecretComponent.php @@ -143,7 +143,7 @@ public function render(): View return view('front.pages.top-secret.index') ->layout('layout.blank', [ 'title' => 'Top Secret', - 'bodyClass' => 'bg-bf-gray min-h-screen overflow-hidden antialiased', + 'bodyClass' => 'bg-bf-gray min-h-screen md:overflow-hidden antialiased', 'image' => '/backgrounds/bf-24-desk.jpg', ]); } diff --git a/resources/css/front/utilities/black-friday.css b/resources/css/front/utilities/black-friday.css index ae2b14b2..237b8c8b 100644 --- a/resources/css/front/utilities/black-friday.css +++ b/resources/css/front/utilities/black-friday.css @@ -35,6 +35,12 @@ } +.bf-pre { + @apply bg-transparent font-special-elite; + white-space: pre-wrap; + overflow-wrap: break-word; +} + .challenge-sheet { display: flex; flex-direction: column; diff --git a/resources/views/front/pages/top-secret/index.blade.php b/resources/views/front/pages/top-secret/index.blade.php index d7cc96f1..5c00ffd7 100644 --- a/resources/views/front/pages/top-secret/index.blade.php +++ b/resources/views/front/pages/top-secret/index.blade.php @@ -65,9 +65,9 @@ class="bf-page page-challenge" >
-
+
-
+
@if ($reward)
@@ -92,19 +92,19 @@ class="underline hover:no-underline"
-
+
@if ($reward) -

{{ $question }}

+
{{ $question }}

> {{ $answer }}

@elseif($days[$currentDay]->endOfDay()->isPast()) -

{{ $question }}

+
{{ $question }}
@else
+ }" class="flex flex-col gap-6">
-

{{ $question }}

+
{{ $question }}