chiark / gitweb /
mason/dhandler (.image), static/tgal.css: Adaptive view scaling.
[tgal] / static / tgal.css
index 0cbae14a56664aff408e8f460b7401e34152944a..73e393320c8156c16bcab340d93199701b08c651 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;
@@ -79,7 +91,7 @@ div.gallery {
        flex-direction: row; flex-wrap: wrap;
        align-items: start; justify-content: space-evenly;
 }
-div.gallery.bigthumb { display: flex; }
+div.gallery.medthumb { display: flex; }
 
 figure.thumb {
        display: inline-block;
@@ -92,6 +104,12 @@ img.thumb { object-fit: contain; }
 figure.bigthumb { width: 228px; }
 img.bigthumb { width: 228px; height: 228px; }
 
+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;
        max-width: 40em;
@@ -132,6 +150,11 @@ a.view {
 }
 a:link:hover.view { background: inherit; }
 
+a.view picture {
+       display: flex; flex-direction: column;
+       flex-grow: 1; flex-basis: 0;
+}
+
 a.view img {
        min-width: 0; min-height: 0;
        max-width: 100%; max-height: 100%;
@@ -145,6 +168,19 @@ div.thumbstrip {
        text-align: center;
        flex-direction: row; align-self: center;
 }
-div.thumbstrip.bigthumb { display: flex; }
+
+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 -------------------------------------------------*/