liquid_feedback_frontend

diff static/lf4.css @ 1665:97dfef4eb2d7

Optionally show attachment previews in listings
author bsw
date Mon Feb 15 15:24:26 2021 +0100 (2021-02-15)
parents fcf0bc8706f4
children dc54e50a70b9
line diff
     1.1 --- a/static/lf4.css	Mon Feb 15 14:37:18 2021 +0100
     1.2 +++ b/static/lf4.css	Mon Feb 15 15:24:26 2021 +0100
     1.3 @@ -578,6 +578,40 @@
     1.4    vertical-align: top;
     1.5  }
     1.6  
     1.7 +.initiatives .mdl-list__item {
     1.8 +  display: grid;
     1.9 +  grid-template-columns: 1fr min-content;
    1.10 +  grid-gap: 1em;
    1.11 +  align-items: start;
    1.12 +}
    1.13 +
    1.14 +.initiatives .attachment {
    1.15 +  max-width: 180px;
    1.16 +  max-height: 80px;
    1.17 +}
    1.18 +
    1.19 +.competing_initiatives .initiatives .attachment {
    1.20 +  max-width: 80px;
    1.21 +  max-height: 80px;
    1.22 +}
    1.23 +
    1.24 +
    1.25 +@media (max-width: 960px) {
    1.26 +  .initiatives .mdl-list__item {
    1.27 +    display: block;
    1.28 + }
    1.29 +  .competing_initiatives .initiatives .mdl-list__item {
    1.30 +    display: grid;
    1.31 +  }
    1.32 +  .initiatives .attachment {
    1.33 +    max-width: 100%;
    1.34 +    max-height: 120px;
    1.35 +    margin-bottom: 2ex;
    1.36 +  }
    1.37 +
    1.38 +}
    1.39 +
    1.40 +
    1.41  .initiative_pie {
    1.42    float: left;
    1.43    margin-right: 15px;

Impressum / About Us