From da4d97e0fd143d50e0c0c6b2a29038077b8b4e69 Mon Sep 17 00:00:00 2001 From: jpope Date: Tue, 7 Jan 2014 17:52:38 -0600 Subject: [PATCH] add a little button color and new media page layout --- mediagoblin/static/css/base.css | 51 +++++++++++++++++-- mediagoblin/templates/mediagoblin/base.html | 2 +- .../mediagoblin/user_pages/media.html | 24 ++++++--- 3 files changed, 66 insertions(+), 11 deletions(-) diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 3a38f405..aa2987c1 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -202,6 +202,20 @@ footer { display:block; } +.media_pane { + border-bottom: 1px solid #333333; +} + +.media_sidebar { + border-left: 1px solid #333333; + padding-left: 1em; + padding-top: 1em; +} + +.media_comments { + padding-top: 1em; +} + /* common website elements */ .button_action, .button_action_highlight, .button_form { @@ -225,6 +239,17 @@ footer { color: #283F35; } +.button_info { + background-color: #508BB5; + border-color: #5899C7 #437699 #427496; + color: #C3C3C3; +} + +.button_warning { + background-color: #8A2D2D; + border-color: #913030 #451717 #431212; + color: #C3C3C3; +} .button_form { min-width: 99px; @@ -249,6 +274,13 @@ text-align: center; padding-top: 70px; } +.no_background { + background-image: none; + height: 0; + padding-top: 0; + display: inline-block; +} + .right_align { float: right; } @@ -278,13 +310,13 @@ text-align: center; } .media_sidebar h3 { - font-size: 1em; - margin: 0 0 5px; - border: none; + font-size: 1em; + margin: 0 0 5px; + border: none; } .media_sidebar p { - margin-left: 8px; + margin-left: 8px; } .alpha { @@ -874,6 +906,17 @@ pre { margin-right: auto; margin-top: 1em; } + + .media_sidebar { + border-left: none; + padding-left: 0; + padding-top: 1em; + margin-top: 1em; + } + + .media_comments { + border-bottom: 1px solid #333333; + } } /* Exif display */ diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index f60d5f10..d9f66e41 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -78,7 +78,7 @@ {% set notification_count = get_notification_count(request.user.id) %} {% if notification_count %} - + {{ notification_count }} {% endif %} diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 4c2323cf..abdd9599 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -46,7 +46,7 @@ {% include "mediagoblin/utils/prev_next.html" %} -
+
{% block mediagoblin_media %} {% set display_media = request.app.public_store.file_url( @@ -70,12 +70,14 @@ {% endif %} {% endblock %}
+

{{ media.title }}

{% if request.user and (media.uploader == request.user.id or request.user.has_privilege('admin')) %} +
{% set edit_url = request.urlgen('mediagoblin.edit.edit_media', user= media.get_uploader.username, media_id=media.id) %} @@ -83,13 +85,18 @@ {% set delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete', user= media.get_uploader.username, media_id=media.id) %} - {% trans %}Delete{% endtrans %} - + {% trans %}Delete{% endtrans %} +
{% endif %} {% autoescape False %}

{{ media.description_html }}

{% endautoescape %} +
+
+ + +
{% endblock %} -- 2.25.1