From b114795f4f996919da8e8a04f9aaac570f12c414 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 24 May 2024 22:07:19 +0200 Subject: [PATCH] more styling posts too lazy to made up commit message atp --- res/forum/home/home.html | 2 +- res/forum/style.css | 33 ++++++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/res/forum/home/home.html b/res/forum/home/home.html index e5dbf97..7d003cb 100644 --- a/res/forum/home/home.html +++ b/res/forum/home/home.html @@ -27,8 +27,8 @@ "
" + "
Název: " + result[i].title + "
" + - ((result[i].description != null) ? "
Popis: " + result[i].description + "
" : "") + "
Autor: " + result[i].username + "
" + + ((result[i].description != null) ? "
Popis:
" + result[i].description + "
" : "") + "
" + "" ); diff --git a/res/forum/style.css b/res/forum/style.css index e499e7f..52c12f2 100644 --- a/res/forum/style.css +++ b/res/forum/style.css @@ -142,16 +142,23 @@ body #info_pane { - position: relative; + position: absolute; width: fit-content; - height: auto; + height: fit-content; margin: 0 auto; padding: 5vh; - border: solid 1px #3E392F; - border-radius: 0.5vh 0.5vh; - background: #6F7270; + left: 0; + right: 0; + top: 0; + bottom: 0; + margin: auto; +} + +#info_pane * +{ + padding: 0.5vh; } #save_btn @@ -268,4 +275,20 @@ body .post img:hover { filter: invert(10%); +} + +.post_desc +{ + display: flex; + flex-direction: column; + padding-top: 1vh; + width: 25vw; +} + +.post_desc_text +{ + height: fit-content; + max-height: 15vh; + overflow-y: auto; + padding-left: 1vw; } \ No newline at end of file