]> git.0d.be Git - panikweb.git/commitdiff
use focus to mark emissions with podcasts
authorFrédéric Péters <fpeters@0d.be>
Wed, 1 Aug 2018 11:26:17 +0000 (13:26 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 1 Aug 2018 11:26:17 +0000 (13:26 +0200)
panikweb_templates/static/css/_specifics.scss
panikweb_templates/templates/home.html

index bdcdb30133416268a3c0ad8db2b4e422545b7299..da2fb8ae7e10c8a10193a5ddceeff2e5d033559b 100644 (file)
@@ -2052,6 +2052,15 @@ div.emission-tile {
                        padding: 5px 20px;
                }
        }
+       span.badge {
+               position: absolute;
+               top: 1rem;
+               left: calc(1rem + 10px);
+               background: $secondary;
+               color: white;
+               padding: 0.5ex 1ex;
+               border-bottom: 3px solid $yellow;
+       }
 }
 
 div.emission-detail {
index 88e4c26fa87e107d8a9132885255798d8ef11f35..5e860dbd81070b778f05cf9a8ea26211d9b224e1 100644 (file)
            {% spaceless %}
            {% for emission in emissions %}
            <a href="{% url 'emission-view' slug=emission.slug %}">
-           <div class="emission-tile">
+           <div class="emission-tile {% if emission.has_focus %}emission-focus{% endif %}">
                    <div class="image">
                        {% thumbnail emission.image "400x400" crop="50% 50%" as im %}
                        <img src="{{im.url}}">
                        {% endthumbnail %}
                    </div>
                    <div class="name"><span>{{emission.title}}</span></div>
+                    {% if emission.has_focus %}<span class="badge">Podcasts disponibles</span>{% endif %}
            </div>
            </a>
            {% endfor %}