From 1c037bc0cfb73a335f69b9f4653f9fa9eedcbea6 Mon Sep 17 00:00:00 2001 From: singingbush Date: Tue, 20 Jun 2023 22:57:28 +0100 Subject: [PATCH] fix styling due to Bootstrap upgrade --- public/styles/style.css | 5 +---- views/admin_users.dt | 6 +++--- views/header.dt | 4 ++-- views/index.dt | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/public/styles/style.css b/public/styles/style.css index 7d86f73..ebe6500 100644 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -11,11 +11,8 @@ body { margin: 10% -15px; } -.jumbotron-primary { - /*background-color: rgba(54, 55, 197, 0.87);*/ - background-color: #0275d8; /* Same Blue that is used by Bootstrap */ +.bg-shadow { box-shadow: inset 0 0 5rem rgba(0,0,0,.5); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); - border-radius: 0; } \ No newline at end of file diff --git a/views/admin_users.dt b/views/admin_users.dt index d436dc2..4459273 100644 --- a/views/admin_users.dt +++ b/views/admin_users.dt @@ -4,13 +4,13 @@ block title title Admin | Manage Users block body - .jumbotron.jumbotron-primary - .container + .mb-4.bg-primary.bg-shadow + .container.py-5 h1 Manage Users .container(role='main') .row - .col-md-12 + .col-md-6 h2 Create User form.form-horizontal(action='/admin/user/create', method="POST") .mb-3 diff --git a/views/header.dt b/views/header.dt index 32754bf..1f40fa3 100644 --- a/views/header.dt +++ b/views/header.dt @@ -8,7 +8,7 @@ header .container a.navbar-brand(href="/") | Eloquent - ul.nav.navbar-nav.mr-auto + ul.nav.navbar-nav.me-auto li.nav-item a.nav-link(href="/") Home - if (user.administrator) @@ -18,7 +18,7 @@ header - if (user.authenticated) li.nav-item a.nav-link(href="/profile/#{user.username}") - i.fa.fa-user + i.fa.fa-user.mx-1 | Profile li.nav-item a.nav-link(href="/logout") Logout diff --git a/views/index.dt b/views/index.dt index 7a7be51..8544ed6 100644 --- a/views/index.dt +++ b/views/index.dt @@ -4,7 +4,7 @@ block title title Home block body - .p-5.mb-4.bg-light.rounded-3 + .mb-4.bg-primary.bg-shadow .container.py-5 h1& home.welcome-message