diff --git a/Schema_new.dia b/Schema_new.dia
index f09c0589..c212ec3b 100644
Binary files a/Schema_new.dia and b/Schema_new.dia differ
diff --git a/galerie/models.py b/galerie/models.py
index c6acc5df..2d9b8e56 100644
--- a/galerie/models.py
+++ b/galerie/models.py
@@ -69,6 +69,8 @@ class Obrazek(models.Model):
ordering = ['nazev']
def obrazek_maly_tag(self):
+ if not self.obrazek_maly:
+ return ''
return u''.format(self.obrazek_maly.url)
obrazek_maly_tag.short_description = "Náhled"
obrazek_maly_tag.allow_tags = True
diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css
index 357b5027..7e7adbfd 100644
--- a/mamweb/static/css/mamweb.css
+++ b/mamweb/static/css/mamweb.css
@@ -14,8 +14,31 @@ div.container {
margin: auto;
}
+.org-logged-in div.container {
+ margin-top: 20px;
+}
+
div.login-bar {
background: #6a0043;
+ color: #f9d59e;
+ width: 100%;
+
+ position: fixed;
+ margin-top: -20px;
+ min-height: 20px;
+ z-index: 20;
+
+ padding-left: 5px;
+ padding-right: 5px;
+}
+
+div.login-bar div {
+ display: inline;
+}
+
+a.login-ref-admin {
+ display: inline;
+ color: #fffbf6;
}
/* odkazy a nadpisy */
@@ -74,16 +97,16 @@ h6 {
.org-logged-in .mam-text-plugin {
- border: dashed 1px #f77;
+ border: dashed 1px #6a0043;
padding: 5px;
margin: -5px;
}
.mam-org-only {
- background: #fff0d7;
+ background: #eee4ec;
padding: 10px;
margin: 10px -10px;
- border: orange 2px dashed;
+ border: #6a0043 2px dashed;
}
.mam-org-only .mam-org-only {
@@ -123,6 +146,8 @@ h1 {
margin-top: 0px;
}
+
+
/* Comments */
#id_comment {
@@ -191,7 +216,7 @@ vikendovka
#header.NOCsoustredeni { background-image: url("../images/header/vylet.jpg");}
#header.NOCzadani { background-image: url("../images/header/stiny.jpg");}
#header.NOCclanky { background-image: url("../images/header/ohen.jpg");}
-#header.NOCarchiv { background-image: url("../images/header/vikendovka.jpg");}
+#header.NOCarchiv { background-image: url("../images/header/stiny.jpg");}
#header img.logo {
@@ -407,6 +432,10 @@ ul.submenu {
/* malý tablet, mobil */
@media (max-width: 650px) {
+ #hide-if-small.login-bar-flatpage {
+ display: none;
+ }
+
#title {
display: none;
}
@@ -558,7 +587,7 @@ div.seznam_orgu {
text-align: center;
}
-div.org_pole {
+div.org_pole, div.rocnik_pole {
display: inline-block;
width: 30%;
min-width: 300px;
@@ -576,16 +605,24 @@ div.org_email {
font-weight: bold;
}
-/*otáčecí karty organizátorů*/
+/*otáčecí karty (orgové, archiv) */
.flip-card {
- width: 200px;
- height: 250px;
perspective: 1000px; /* Remove this if you don't want the 3D effect */
margin-left: auto;
margin-right: auto;
}
+#organizatori.flip-card {
+ width: 200px;
+ height: 250px;
+}
+
+#archiv.flip-card {
+ width: 210px;
+ height: 298px;
+}
+
/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
@@ -614,9 +651,10 @@ div.org_email {
background-color: #bbb;
}
-div.foto_org img {
+div.flip-card-foto img {
width: 100%;
height: 100%;
+ filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.4)); /* FIXME: obecně k obrázkům */
}
/* Style the back side */
@@ -631,6 +669,23 @@ div.foto_org img {
padding-top: 20px;
}
+/* karty archiv */
+
+div.popis_rocniku {
+ text-align: left;
+ font-weight: bold;
+ margin: 20px;
+}
+
+
+div.popis_rocniku a{
+ color: black;
+}
+
+div.popis_rocniku a:hover{
+ color: #6f2509;
+}
+
/* graf na úvodní stránce */
a span.popup {
diff --git a/mamweb/templates/base.html b/mamweb/templates/base.html
index a53fa3df..a7616627 100644
--- a/mamweb/templates/base.html
+++ b/mamweb/templates/base.html
@@ -36,22 +36,22 @@
Ročník číslo {{ rocnik.rocnik }} ({{ rocnik.prvni_rok }}/{{ rocnik.druhy_rok }}) - -