From 7285ce304e93e67e57f0ba64108ba04f63b2c061 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Tue, 12 Dec 2023 10:58:59 -0300 Subject: [PATCH] Update CSS and heading tags in blog views. (#22) --- src/Framework/resource/css/style.css | 3 +++ src/UseCase/Blog/view/category/_posts.php | 4 ++-- src/UseCase/Blog/view/posts/_posts.php | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Framework/resource/css/style.css b/src/Framework/resource/css/style.css index 4f2e347..c824e02 100644 --- a/src/Framework/resource/css/style.css +++ b/src/Framework/resource/css/style.css @@ -587,6 +587,9 @@ a:hover,a:focus { .bs-orange-bg { background-color:#fd9843 !important } +.text-justify { + text-align:justify !important +} pre { display: block; padding: 9.5px; diff --git a/src/UseCase/Blog/view/category/_posts.php b/src/UseCase/Blog/view/category/_posts.php index 65e0a32..42a9254 100644 --- a/src/UseCase/Blog/view/category/_posts.php +++ b/src/UseCase/Blog/view/category/_posts.php @@ -42,9 +42,9 @@ A::widget() ->content( H::widget() - ->class('font-weight-bold mb-3') + ->class('fs-4 font-weight-bold mb-3 text-justify') ->content($post->title) - ->tagName('h4') + ->tagName('h1') ) ->href(Url::to(['blog/post', 'slug' => $post->slug])), Div::widget() diff --git a/src/UseCase/Blog/view/posts/_posts.php b/src/UseCase/Blog/view/posts/_posts.php index e7660b7..55916af 100644 --- a/src/UseCase/Blog/view/posts/_posts.php +++ b/src/UseCase/Blog/view/posts/_posts.php @@ -30,9 +30,9 @@ A::widget() ->content( H::widget() - ->class('font-weight-bold mb-3') + ->class('fs-4 font-weight-bold mb-3 text-justify') ->content($post->title) - ->tagName('h4') + ->tagName('h1') ) ->href(Url::to(['blog/post', 'slug' => $post->slug])), Div::widget()