From 752f75024e979e0b4756da3ab6f5a817fa2c6690 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Thu, 17 Dec 2009 17:11:24 +0100 Subject: [PATCH 1/1] Drobne poprawki w aplikacje sponsors. --- apps/sponsors/models.py | 3 +-- apps/sponsors/static/sponsors/css/footer_admin.css | 8 ++++---- wolnelektury/static/sponsors/css/footer_admin.css | 8 ++++---- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/apps/sponsors/models.py b/apps/sponsors/models.py index 598d5627b..db5c1442c 100644 --- a/apps/sponsors/models.py +++ b/apps/sponsors/models.py @@ -15,7 +15,7 @@ class Sponsor(models.Model): thumbnail={ 'size': (120, 60), 'extension': 'png', - 'options': ['upscale', 'pad', 'detail'], + 'options': ['pad', 'detail'], }) url = models.URLField(_('url'), blank=True, verify_exists=False) @@ -31,7 +31,6 @@ class Sponsor(models.Model): class SponsorPage(models.Model): name = models.CharField(_('name'), max_length=120) - column_width = models.PositiveIntegerField(_('column width'), default=200) sponsors = JSONField(_('sponsors'), default={}) _html = models.TextField(blank=True, editable=False) diff --git a/apps/sponsors/static/sponsors/css/footer_admin.css b/apps/sponsors/static/sponsors/css/footer_admin.css index 2f0887bba..a4e9640c9 100644 --- a/apps/sponsors/static/sponsors/css/footer_admin.css +++ b/apps/sponsors/static/sponsors/css/footer_admin.css @@ -55,13 +55,13 @@ margin: 0; padding: 2px; list-style: none; - min-height: 200px; + min-height: 250px; } .sponsors-sponsor { - margin: 0 30px 2px 0; - width: 150px; - height: 75px; + margin: 0 40px 2px 0; + width: 120px; + height: 60px; border: 1px solid #CCC; background-color: #EEE; cursor: default; diff --git a/wolnelektury/static/sponsors/css/footer_admin.css b/wolnelektury/static/sponsors/css/footer_admin.css index 2f0887bba..a4e9640c9 100644 --- a/wolnelektury/static/sponsors/css/footer_admin.css +++ b/wolnelektury/static/sponsors/css/footer_admin.css @@ -55,13 +55,13 @@ margin: 0; padding: 2px; list-style: none; - min-height: 200px; + min-height: 250px; } .sponsors-sponsor { - margin: 0 30px 2px 0; - width: 150px; - height: 75px; + margin: 0 40px 2px 0; + width: 120px; + height: 60px; border: 1px solid #CCC; background-color: #EEE; cursor: default; -- 2.20.1