From 8557e2b7783d0ba7468e56ecfab17141dc2fbf19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Mon, 30 Dec 2024 11:59:56 +0100 Subject: [PATCH] Improve a bit the layout for descriptions --- ram/portal/static/css/main.css | 9 +++++---- ram/portal/templates/bookshelf/book.html | 7 ++++++- ram/portal/templates/rollingstock.html | 14 ++++++++++++-- ram/ram/__init__.py | 2 +- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ram/portal/static/css/main.css b/ram/portal/static/css/main.css index 324fa29..400ccfa 100644 --- a/ram/portal/static/css/main.css +++ b/ram/portal/static/css/main.css @@ -17,6 +17,11 @@ td > img.logo-xl { max-height: 96px; } +/* Disable margin on last

in a */ +td > p:last-child { + margin-bottom: 0; +} + .btn > span { display: inline-block; } @@ -38,10 +43,6 @@ a.badge, a.badge:hover { border-top: calc(var(--bs-border-width) * 3) solid var(--bs-border-color); } -#nav-notes > p { - padding: .5rem; -} - #nav-journal ul, #nav-journal ol { margin: 0; padding-left: 1rem; diff --git a/ram/portal/templates/bookshelf/book.html b/ram/portal/templates/bookshelf/book.html index 2bc935c..c8e1a35 100644 --- a/ram/portal/templates/bookshelf/book.html +++ b/ram/portal/templates/bookshelf/book.html @@ -57,7 +57,6 @@