From 08e987c4bbc4cfc8a4df9165e62ce2006a8d9939 Mon Sep 17 00:00:00 2001 From: Gergely POLONKAI Date: Thu, 16 Aug 2012 19:35:05 +0200 Subject: [PATCH] Redesigned forum Signed-off-by: Gergely POLONKAI --- .../Resources/public/css/forum.css | 33 +++++++++++-------- .../FrontBundle/Resources/public/css/main.css | 3 +- .../Resources/views/Forum/postList.html.twig | 12 ++++--- 3 files changed, 28 insertions(+), 20 deletions(-) diff --git a/src/KekRozsak/FrontBundle/Resources/public/css/forum.css b/src/KekRozsak/FrontBundle/Resources/public/css/forum.css index 4d9eda6..fcbab28 100644 --- a/src/KekRozsak/FrontBundle/Resources/public/css/forum.css +++ b/src/KekRozsak/FrontBundle/Resources/public/css/forum.css @@ -1,5 +1,5 @@ /* - Document : forum + Document : forum.css Created on : 2012.08.15., 11:40:39 Author : Gergely Description: @@ -7,7 +7,7 @@ */ .forum-lista { - border: 1px solid #3366ff; + border: 1px solid #142965; border-collapse: collapse; width: 100%; margin-bottom: 20px; @@ -16,46 +16,50 @@ .forum-lista thead td { font-weight: bold; height: 1.5em; - border-bottom: 2px solid #3366ff; + border-bottom: 2px solid #142965; padding: 3px; } .forum-lista thead td a { - color: #3366ff; + color: #142965; text-decoration: none; } .forum-lista tbody td { padding: 5px; - border-bottom: 1px solid #3366ff; + border-bottom: 1px solid #142965; } .forum-lista tbody tr.odd td { - background-color: #060c16; + background-color: #abccdc; } .forum-lista tbody tr.even td { - background-color: #000000; + background-color: #c6ecfe; } .forum-lista tbody td a { - color: #3366ff; + color: #142965; text-decoration: underline; } .post-lista { - border: 1px solid #3366ff; + border: 1px solid #142965; border-collapse: collapse; } .post-lista td { border-style: solid; - border-color: #3366ff; - border-width: 3px 1px; + border-color: #142965; + border-width: 3px 1px 1px 1px; vertical-align: top; padding: 5px; } +.post-lista td.datum { + background-color: #abccdc; +} + .post-lista td.felado { width: 150px !important; font-size: 80%; @@ -63,6 +67,7 @@ .post-lista td.szoveg { width: 510px; + border-width: 1px; } .post-lista td.szoveg div { @@ -75,10 +80,10 @@ td.uj-post { td.uj-post textarea { width: 500px; - background-color: #000000; - color: #3366ff; + background-color: #c6ecfe; + color: #142965; border-style: solid; - border-color: #3366ff; + border-color: #142965; border-width: 0 0 2px 0; height: 15em; } diff --git a/src/KekRozsak/FrontBundle/Resources/public/css/main.css b/src/KekRozsak/FrontBundle/Resources/public/css/main.css index 0f8cc97..a712d64 100644 --- a/src/KekRozsak/FrontBundle/Resources/public/css/main.css +++ b/src/KekRozsak/FrontBundle/Resources/public/css/main.css @@ -21,7 +21,7 @@ body { } a { - color: inherit; + color: inherit !important; text-decoration: underline; } @@ -62,7 +62,6 @@ a { } h3 a { - color: #3366ff; text-decoration: none; } diff --git a/src/KekRozsak/FrontBundle/Resources/views/Forum/postList.html.twig b/src/KekRozsak/FrontBundle/Resources/views/Forum/postList.html.twig index 147c188..40dfb05 100644 --- a/src/KekRozsak/FrontBundle/Resources/views/Forum/postList.html.twig +++ b/src/KekRozsak/FrontBundle/Resources/views/Forum/postList.html.twig @@ -28,10 +28,11 @@ {% for post in posts %} -
{{ post.text|bbdecode }}
- - {{ post.createdAt|date('Y-m-d') }}
- {{ post.createdAt|date('H:i') }}
+ + {{ post.createdAt|date('Y-m-d') }} + {{ post.createdAt|date('H:i') }} + + [avatar]
{{ post.createdBy|userdataspan }}
Szint
@@ -40,6 +41,9 @@ {{ post.createdBy.RegisteredAt|date('Y-m-d') }} + +
{{ post.text|bbdecode }}
+ {% endfor %}