chiark / gitweb /
mason/dhandler, static/tgal.css: Add option to download zipfiles.
[tgal] / static / tgal.css
index dc95e2c318c82d4ae99449c3aff2d7d2d2c516bb..aa648784adc822b950d3cc803581179d5ef130ad 100644 (file)
@@ -61,6 +61,18 @@ h1, h2, h3, h4, h5, h6 { font-family: sans-serif; font-weight bold; }
 hr { width: calc(100% - 4em); }
 div.fill { flex-grow: 1; }
 
+div.menu {
+       font-family: sans;
+       font-weight: normal;
+       font-size: initial;
+       float: right;
+}
+h1 div.menu:before {
+       visibility: hidden;
+       font-size: 200%;
+       content: "";
+}
+
 div.footer {
        border-top: medium black solid;  
        margin-top: 3.43ex;
@@ -76,23 +88,27 @@ div.footitem {
 }
 
 div.gallery {
-       display: block;
-       text-align: center;
+       flex-direction: row; flex-wrap: wrap;
+       align-items: start; justify-content: space-evenly;
 }
+div.gallery.medthumb { display: flex; }
 
-div.pic {
+figure.thumb {
        display: inline-block;
        vertical-align: top;
-       width: 228px;
        margin: 1em;
 }
+a.thumb:link { display: inline-block; }
+img.thumb { object-fit: contain; }
 
-div.pic a:link { display: inline-block; }
+figure.bigthumb { width: 228px; }
+img.bigthumb { width: 228px; height: 228px; }
 
-img.thumb {
-       width: 228px; height: 228px;
-       object-fit: contain;
-}
+figure.medthumb { width: 144px; }
+img.medthumb { width: 144px; height: 144px; }
+
+figure.smallthumb { width: 96px; }
+img.smallthumb { width: 96px; height: 96px; }
 
 div.comment {
        border: thin black solid;
@@ -103,13 +119,10 @@ div.comment {
        margin-top: 2ex; margin-bottom: 2ex;
 }
 
-div.caption {
-       display: block;
-       width: 228px;
-       white-space: normal;
-}
-div.caption span.name { font-family: sans-serif; }
-div.caption span.comment { font-style: italic; margin-inline-start: 1em; }
+figure.thumb figcaption { display: block; }
+figcaption { text-align: center; }
+figcaption span.name { font-family: sans-serif; }
+figcaption span.comment { font-style: italic; margin-inline-start: 1em; }
 
 div.viewnav {
        flex-grow: 1; flex-basis: 0;
@@ -129,7 +142,7 @@ a.prev, a.next {
        background-color: #0006;
        min-width: 1em;
        text-align: center;
-       min-height: 3.5ex;
+       min-height: 3ex;
 }
 a.view {
        flex-grow: 1; flex-basis: 0;
@@ -145,10 +158,24 @@ a.view img {
 }
 
 div.thumbstrip {
-       width: 100%;
+       max-width: 100%;
        overflow-x: auto;
        text-align: center;
-       white-space: nowrap;
+       flex-direction: row; align-self: center;
+}
+
+div.thumbstrip.smallthumb { display: flex; }
+div.thumbstrip.medthumb { display: none; }
+div.thumbstrip.bigthumb { display: none; }
+@media (min-height: 1200px) and (max-height: 1599px) {
+       div.thumbstrip.smallthumb { display: none; }
+       div.thumbstrip.medthumb { display: flex; }
+       div.thumbstrip.bigthumb { display: none; }
+}
+@media (min-height: 1600px) {
+       div.thumbstrip.smallthumb { display: none; }
+       div.thumbstrip.medthumb { display: none; }
+       div.thumbstrip.bigthumb { display: flex; }
 }
 
 /*----- That's all, folks -------------------------------------------------*/