From 5970a855f619d29bb8a9119659411e551795ee67 Mon Sep 17 00:00:00 2001 From: jpope777 Date: Wed, 1 Jan 2014 00:48:23 -0600 Subject: [PATCH] incorporate skeleton layout in the galleries --- mediagoblin/static/css/base.css | 42 +++++++++++++++++-- .../static/css/extlib/baseskeleton.css | 1 - mediagoblin/static/css/extlib/layout.css | 1 - mediagoblin/templates/mediagoblin/base.html | 26 +++++------- .../mediagoblin/utils/collection_gallery.html | 12 +++--- .../mediagoblin/utils/object_gallery.html | 12 +++--- 6 files changed, 62 insertions(+), 32 deletions(-) delete mode 120000 mediagoblin/static/css/extlib/baseskeleton.css delete mode 120000 mediagoblin/static/css/extlib/layout.css diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 7b422167..f998bbb3 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -107,7 +107,7 @@ input, textarea { .container { margin: auto; - width: 96%; +/* width: 96%;*/ max-width: 940px; } @@ -275,6 +275,22 @@ text-align: center; margin-left: 8px; } +.alpha { + margin-left:0; +} + +.omega { + margin-right:0; +} + +.heaven { + margin-top:0; +} + +.hell { + margin-bottom:0; +} + /* forms */ .form_box,.form_box_xl { @@ -820,7 +836,7 @@ pre { header { text-align: center; } - + .header_right { margin-right: 2%; float: none; @@ -829,12 +845,32 @@ pre { a.logo { margin-left: 2%; } + +} +@media screen and (min-width: 960px) { + .container .three.columns { + width:180px; + margin-left:3px; + margin-right:3px; + } +} +@media only screen and (min-width: 768px) and (max-width: 959px) { + .container .three.columns { + width:147px; + margin-left:2px; + margin-right:2px; + } +} +@media screen and (max-width: 767px) { + .thumb_row { + margin-bottom: 0; + } } - @media screen and (max-width: 570px) { .media_thumbnail { width: 29%; } + } @media screen and (max-width: 380px) { diff --git a/mediagoblin/static/css/extlib/baseskeleton.css b/mediagoblin/static/css/extlib/baseskeleton.css deleted file mode 120000 index ee4f8c52..00000000 --- a/mediagoblin/static/css/extlib/baseskeleton.css +++ /dev/null @@ -1 +0,0 @@ -../../../../extlib/skeleton/stylesheets/base.css \ No newline at end of file diff --git a/mediagoblin/static/css/extlib/layout.css b/mediagoblin/static/css/extlib/layout.css deleted file mode 120000 index 87c79a92..00000000 --- a/mediagoblin/static/css/extlib/layout.css +++ /dev/null @@ -1 +0,0 @@ -../../../../extlib/skeleton/stylesheets/layout.css \ No newline at end of file diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index 6e2bca20..69b28685 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -28,24 +28,11 @@ - - + href="{{ request.staticdirect('/css/extlib/skeleton.css') }}"/> + href="{{ request.staticdirect('/css/base.css') }}"/> - - - - {# For clarification, the difference between the extra_head.html template # and the head template hook is that the former should be used by @@ -183,4 +170,13 @@ {%- endblock mediagoblin_body %} {% include 'mediagoblin/bits/body_end.html' %} + + + + diff --git a/mediagoblin/templates/mediagoblin/utils/collection_gallery.html b/mediagoblin/templates/mediagoblin/utils/collection_gallery.html index dfe2ebe2..64b30815 100644 --- a/mediagoblin/templates/mediagoblin/utils/collection_gallery.html +++ b/mediagoblin/templates/mediagoblin/utils/collection_gallery.html @@ -19,15 +19,15 @@ {% from "mediagoblin/utils/pagination.html" import render_pagination %} {% macro media_grid(request, collection_items, col_number=5) %} - + {% for item in row %} {% set media_entry = item.get_media_entry %} {% set entry_url = media_entry.url_for_self(request.urlgen) %} - + {% endfor %} - + {% endfor %} - + {%- endmacro %} {# diff --git a/mediagoblin/templates/mediagoblin/utils/object_gallery.html b/mediagoblin/templates/mediagoblin/utils/object_gallery.html index d328b552..1b4a15ed 100644 --- a/mediagoblin/templates/mediagoblin/utils/object_gallery.html +++ b/mediagoblin/templates/mediagoblin/utils/object_gallery.html @@ -19,14 +19,14 @@ {% from "mediagoblin/utils/pagination.html" import render_pagination %} {% macro media_grid(request, media_entries, col_number=5) %} - + {% for entry in row %} {% set entry_url = entry.url_for_self(request.urlgen) %} - + {% endfor %} - + {% endfor %} - + {%- endmacro %} {# -- 2.25.1