From 7fa876099e200d8691dd7acb5e73963341c91af2 Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Sun, 10 May 2015 12:45:39 +0800 Subject: [PATCH] Add medium size to catalog thumbnaisl because why not? --- js/catalog.js | 1 + stylesheets/style.css | 10 ++++++++++ templates/themes/catalog/catalog.html | 1 + 3 files changed, 12 insertions(+) diff --git a/js/catalog.js b/js/catalog.js index 065fba7b..59b57f6c 100644 --- a/js/catalog.js +++ b/js/catalog.js @@ -17,6 +17,7 @@ if (active_page == 'catalog') $(function(){ var value = this.value, old; $(".grid-li").removeClass("grid-size-vsmall"); $(".grid-li").removeClass("grid-size-small"); + $(".grid-li").removeClass("grid-size-medium"); $(".grid-li").removeClass("grid-size-large"); $(".grid-li").addClass("grid-size-"+value); catalog.image_size = value; diff --git a/stylesheets/style.css b/stylesheets/style.css index ac9281a5..af8a3d8b 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -778,6 +778,16 @@ pre { max-height: 192px; } +.theme-catalog div.grid-size-medium img { + max-height: 33%; + max-width: 95% +} + +.theme-catalog div.grid-size-medium { + min-width:200px; max-width: 200px; + max-height: 274px; +} + .theme-catalog div.grid-size-large img { max-height: 40%; max-width: 95% diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index 903bd619..ea89e188 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -32,6 +32,7 @@