From 9eb5191096a9d868333cd21acbe12ebfca75ee2b Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Sun, 29 Sep 2024 00:18:04 +0300 Subject: [PATCH] Make them corners beatiful --- index.php | 3 +++ style.css | 25 +++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 614f996..801fb0c 100755 --- a/index.php +++ b/index.php @@ -79,8 +79,11 @@ $posts = array_reverse($database->getPosts()); //var_dump($posts); foreach($posts as $post) { echo '
'; + echo ''; + echo '

' . $post["post.text"] . '

'; echo '
' . date("D j.n.Y \@ G:i", $post["post.time"]) . ''; echo ' diff --git a/style.css b/style.css index a776198..f07887c 100644 --- a/style.css +++ b/style.css @@ -62,14 +62,35 @@ hr { } .post { + position: relative; border-style: solid; border-width: 1px; padding: 1rem; - margin-top: 1rem; + margin-top: 3rem; border-radius: 1rem; } +.postinfo { + position: absolute; + left: -1px; + top: -2em; + width: 33%; + background-color: #ffc000; + color: #000000; + border-radius: 1rem; + border-bottom-left-radius: 0; + padding: .25rem; + padding-left: 1rem; + padding-right: 1rem; +} .postactions { - float: right; + /*float: right;*/ + position: absolute; + background-color: #ffc000; + padding: .25rem; + border-radius: 2rem; + border-top-right-radius: 0; + right: -1px; + bottom: -1rem; } .reactionaction { height: 2rem;