From b30dc629467c86b0eb89a8276443e5f51d96dab7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 11 Oct 2013 11:48:55 +0200 Subject: [PATCH] Styles for image gallery --- prawokultury/static/css/entry.css | 12 ++++++++++++ prawokultury/static/css/entry.scss | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/prawokultury/static/css/entry.css b/prawokultury/static/css/entry.css index ef568fc..b3841e2 100644 --- a/prawokultury/static/css/entry.css +++ b/prawokultury/static/css/entry.css @@ -60,6 +60,18 @@ .entry-wrapped .more .read-more:after { content: url("/static/img/read-more.png"); margin-left: .7em; } + .entry-wrapped .gallery-item { + float: left; + width: 300px; + text-align: center; + margin-top: 2em; } + .entry-wrapped .gallery-image { + height: 250px; + width: 300px; + display: table-cell; + vertical-align: middle; } + .entry-wrapped .gallery-image img { + margin: 0; } .entry-info .entry-wrapped, .entry-publications .entry-wrapped { diff --git a/prawokultury/static/css/entry.scss b/prawokultury/static/css/entry.scss index c66f59d..e8ddda8 100644 --- a/prawokultury/static/css/entry.scss +++ b/prawokultury/static/css/entry.scss @@ -94,6 +94,23 @@ margin-left: .7em; } } + + .gallery-item { + float: left; + width: 300px; + text-align: center; + margin-top: 2em; + } + + .gallery-image { + height: 250px; + width: 300px; + display: table-cell; + vertical-align: middle; + img { + margin: 0; + } + } } .entry-info .entry-wrapped, -- 2.20.1