From 9dc7d548aef01945c0e975c7e80135ed04007e13 Mon Sep 17 00:00:00 2001 From: Trever Fischer Date: Sat, 21 Apr 2012 12:09:50 -0400 Subject: [PATCH] Unify profile tiles --- static/css/main.css | 41 +++++++++++++++++++++--------------- templates/_profile_tile.html | 9 ++++++++ templates/base_with_nav.html | 17 +++++++++++++++ templates/forums/_reply.html | 10 +-------- templates/forums/topic.html | 36 +++++++++++++++++++------------ templates/local/list.html | 4 ++-- templates/local/profile.html | 14 ++++++++---- 7 files changed, 85 insertions(+), 46 deletions(-) create mode 100644 templates/_profile_tile.html create mode 100644 templates/base_with_nav.html diff --git a/static/css/main.css b/static/css/main.css index b7ad30b..3ea977b 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -141,19 +141,28 @@ tbody tr:nth-child(odd) { background: url(img/adminium.png); } -.forum-post-user { - float: left; - width: 100px; +.user-tile { + display: block; + width: 150px; + height: 150px; text-align: center; } -.forum-post-user .byline { +.post .user-tile { + float: left; +} + +.user-tile .byline { padding: 1em; } +.user-tile a { + color: #fff; +} + .forum-post-content { padding: 1em; - margin-left: 100px; + margin-left: 150px; background: #222; border-left: 3px solid black; } @@ -254,11 +263,13 @@ tr.sticky a:link { .profile-list li { float: left; - border:3px solid black; - padding: 3px; - width: 128px; - height: 128px; + margin: 1em; text-align: center; + background: url(img/wood.png) +} + +.profile-list .user-tile { + border: 3px solid black; } #epicenter ul { @@ -317,10 +328,6 @@ fieldset { color: #f33; } -.forum .avatar { - float: left; -} - .forum .author-info ul { list-style: none; margin-left: 32; @@ -354,10 +361,6 @@ fieldset { border-bottom: #aaa solid 1px; } -.topic .avatar { - float: left; -} - .topic h2 { margin-left: 42px; } @@ -417,3 +420,7 @@ fieldset { #statbox .avatar { padding: 5px; } + +.topic .avatar { + float: left; +} diff --git a/templates/_profile_tile.html b/templates/_profile_tile.html new file mode 100644 index 0000000..2e53b52 --- /dev/null +++ b/templates/_profile_tile.html @@ -0,0 +1,9 @@ +{% load minecraft %} +
+ +
diff --git a/templates/base_with_nav.html b/templates/base_with_nav.html new file mode 100644 index 0000000..470fcf6 --- /dev/null +++ b/templates/base_with_nav.html @@ -0,0 +1,17 @@ +{% extends 'base.html' %} +{% block main %} +
+
+
+ {% block localnav %} + {% endblock %} +
+
+
+ {% block content %} + {% endblock %} +
+
+{% include '_sidebar.html' %} +{% endblock main %} + diff --git a/templates/forums/_reply.html b/templates/forums/_reply.html index 4b29bba..db2d9c0 100644 --- a/templates/forums/_reply.html +++ b/templates/forums/_reply.html @@ -1,15 +1,7 @@ {% load markup %} -{% load minecraft %}
-
- -
+{% include "_profile_tile.html" %}