diff --git a/galerie/templates/galerie/GalerieNahled.html b/galerie/templates/galerie/GalerieNahled.html index a2dce6fc..e2ce3416 100644 --- a/galerie/templates/galerie/GalerieNahled.html +++ b/galerie/templates/galerie/GalerieNahled.html @@ -34,41 +34,21 @@ {# obrazky v galerii #} {% if obrazky %} - +
{% for obrazek in obrazky %} - {% if forloop.counter|add:-1|divisibleby:3 %} -
- {% endif %} - - {% if forloop.last %} - {% if not forloop.counter|divisibleby:3 %} - - {% endif %} - {% if not forloop.counter|divisibleby:2 %} - - {% endif %} - {% endif %} - {% if forloop.counter|divisibleby:3 or forloop.last %} - - {% endif %} + + {% endfor %} -
- +
+
+ {% else %}
V galerii nejsou žádné fotky. diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index b7431e15..7ba04987 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -467,27 +467,39 @@ div.zadani_azad_termin { background-repeat: no-repeat; } -.galerie{ +/*.galerie{ position: relative; -} +}*/ .galerie_nahledy{ - margin: 1em 0; - text-align: center; + /*margin: 1em 0;*/ + margin: 0 auto 0 auto; } -.galerie_index{ + +.galerie_nahledy a{ + height: 100%; width: 100%; } -.galerie_index td{ - width: 50%; -} + .galerie_nahled{ - width: 100%; + float: left; + width: 190px; + height: 190px; + vertical-align: middle; + text-align: center; + border: solid; + border-width: 4px; + border-radius: 5px; + border-color: #ffa500; + background-color: #ffa500; + margin: 10px; } -.galerie_nahled td{ - width: 33%; + +.galerie_nahled img{ + border-radius: 2px; } + /* titulni stranka */ .zjistit_vic{