From: Marek Stępniowski Date: Thu, 17 Dec 2009 16:11:24 +0000 (+0100) Subject: Drobne poprawki w aplikacje sponsors. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/752f75024e979e0b4756da3ab6f5a817fa2c6690?ds=inline;hp=-c Drobne poprawki w aplikacje sponsors. --- 752f75024e979e0b4756da3ab6f5a817fa2c6690 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;