diff --git a/galerie/templates/galerie/Galerie.html b/galerie/templates/galerie/Galerie.html
index c37f5a62..e699e243 100644
--- a/galerie/templates/galerie/Galerie.html
+++ b/galerie/templates/galerie/Galerie.html
@@ -5,14 +5,16 @@
{% endblock %}{% endblock %}
{% block content %}
-
{% if obrazky_predchozi %}
{% with obrazky_predchozi|last as predchozi_obrazek %}
-
+
{% endwith %}
diff --git a/galerie/templates/galerie/GalerieNahled.html b/galerie/templates/galerie/GalerieNahled.html
index a2dce6fc..49ccbd50 100644
--- a/galerie/templates/galerie/GalerieNahled.html
+++ b/galerie/templates/galerie/GalerieNahled.html
@@ -34,41 +34,20 @@
{# 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..6316c6a2 100644
--- a/mamweb/static/css/mamweb.css
+++ b/mamweb/static/css/mamweb.css
@@ -469,25 +469,63 @@ div.zadani_azad_termin {
.galerie{
position: relative;
+ text-align: center;
+ width: 630px;
+ margin: 0 auto 0 auto;
+}
+
+.galerie h2{
+ text-align: center;
+}
+
+.popis{
+ text-align: center;
+ margin: 10px 10px 30px 10px;
}
.galerie_nahledy{
- margin: 1em 0;
+ /*margin: 1em 0;*/
+ margin: 0 auto 0 auto;
text-align: center;
}
-.galerie_index{
+
+.galerie_nahledy img{
+ margin: 0 10px 0 10px;
+}
+
+.galerie_nahledy a{
+ height: 100%;
width: 100%;
}
-.galerie_index td{
- width: 50%;
+
+.galerie_nahled{ /* frame */
+ float: left;
+ width: 190px;
+ height: 190px;
+ text-align: center;
+ border: solid;
+ border-width: 2px;
+ border-radius: 5px;
+ border-color: #ffa500;
+ background-color: #ffb52d;
+ white-space: nowrap;
+ margin: 10px;
}
-.galerie_nahled{
- width: 100%;
+
+.vystredeno{ /* helper */
+ display: inline-block;
+ height: 100%;
+ vertical-align: middle;
}
-.galerie_nahled td{
- width: 33%;
+
+.galerie_nahled img{
+ border-radius: 2px;
+ vertical-align: middle;
+ max-height: 180px;
+ max-width: 180px;
}
+
/* titulni stranka */
.zjistit_vic{