From 424e16e8d27f8e7459089554f5036a07d7ea252e Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 9 Feb 2020 18:29:56 +0100 Subject: Book Marx: Properly format bookmarks. Change-Id: Idd6f2c4622d4b1a16c74b2d3af02e637625732fc --- src/main/resources/META-INF/resources/cms2/base.css | 19 ++++++++++++++++++- .../templates/benki/bookmarks/bookmarkList.html | 4 ++-- 2 files changed, 20 insertions(+), 3 deletions(-) (limited to 'src/main/resources') diff --git a/src/main/resources/META-INF/resources/cms2/base.css b/src/main/resources/META-INF/resources/cms2/base.css index fd224de..bb5d200 100644 --- a/src/main/resources/META-INF/resources/cms2/base.css +++ b/src/main/resources/META-INF/resources/cms2/base.css @@ -112,6 +112,7 @@ body > main { background-color: var(--main-bg-color); padding: 10px; border-left: 1px solid lightgray; + overflow: scroll; } body > footer { @@ -127,4 +128,20 @@ body > footer { h1.bookmark-title { font-size: 1em; -} \ No newline at end of file + margin: 0; + padding: 0; +} + +.bookmark-info { + font-style: italic; + font-size: smaller; + margin: 0; + padding: 0; +} + +article.bookmark { + margin: 0.5em 0; + border: 1px solid lightcoral; + padding: 0.3em; + background: #fee; +} diff --git a/src/main/resources/templates/benki/bookmarks/bookmarkList.html b/src/main/resources/templates/benki/bookmarks/bookmarkList.html index 4ad97fd..0d392c8 100644 --- a/src/main/resources/templates/benki/bookmarks/bookmarkList.html +++ b/src/main/resources/templates/benki/bookmarks/bookmarkList.html @@ -15,14 +15,14 @@

{title}

-
+
{owner.firstName} {owner.lastName}
- {description} + {descriptionHtml.raw}
{/with} -- cgit v1.2.3