#Main{
flex-grow: 1;
position: relative;
- z-index: 1;
+ z-index: 10;
+ @media screen and (max-width: $size_m) {
+ z-index: 1;
+ }
}
#Main >.wrapper{
padding-bottom:2em;
width: 150%;
}
+div.gallery > div {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ > span {
+ display: block;
+ width: 25%;
+ height: 25vw;
+ position: relative;
+ @media screen and (max-width: $size_s) {
+ width: 50%;
+ height: 50vw;
+ }
+ img {
+ width: 100%;
+ height: 100%;
+ cursor: pointer;
+ }
+ span.title {
+ position: absolute;
+ top: 0;
+ left: 10px;
+ background: $secondary;
+ color: white;
+ padding: 0.5ex 1ex;
+ border-bottom: 3px solid $yellow;
+ }
+ }
+}
+
div.gallery img {
- padding: 2px;
background: white;
- border: 1px solid #333;
}
div#dialog-background,
div.gallery div.first img {
padding: 5px;
padding-bottom: 25px;
- margin-top: -240px;
- margin-left: -320px;
+ margin-top: -300px;
+ margin-left: -500px;
position: absolute;
top: 50%;
left: 50%;
}
div.gallery {
- border-bottom: 1px solid #ccc;
}
div.gallery span.gallery-legend {
display: inline-block;
position: absolute;
top: 50%;
- margin-top: 250px;
+ margin-top: 304px;
left: 0%;
width: 100%;
color: #000;
$gallery.find('div.first').show('fade');
return false;
});
- $gallery.find('div.first').on('click', function() { $(this).toggle('fade'); return false; });
+ $gallery.find('div.first').on('click', function() {
+ window.getSelection().removeAllRanges();
+ $(this).toggle('fade');
+ return false;
+ });
+ $gallery.find('div.first').delegate('img', 'click', function(ev) {
+ var e = $.Event('keydown');
+ e.which = 39;
+ $('body').trigger(e);
+ return false;
+ });
});
/* CHAT */
</div>
<div>
{% endif %}
-{% thumbnail image.image "200x100" crop="50% 25%" as im %}
-{% if cell.slug == 'portrait' %}
-{% thumbnail image.image "480x640" crop="50% 25%" as im_large %}
+{% thumbnail image.image "400x400" crop="50% 50%" as im %}
+{% thumbnail image.image "1000x600" crop="50% 25%" as im_large %}
<span class="image" data-image-large="{{ im_large.url }}"><img src="{{ im.url }}"
- class="portrait" {% if image.title %} title="{{image.title}}" {% endif %}/></span>
+ {% if image.title %}title="{{image.title}}"{% endif %}>
+ {% if image.title %}<span class="title">{{image.title}}</span>{% endif %}</span>
+</span>
{% endthumbnail %}
-{% else %}
-{% thumbnail image.image "640x480" crop="50% 25%" as im_large %}
-<span class="image" data-image-large="{{ im_large.url }}"><img src="{{ im.url }}"
- {% if image.title %} title="{{image.title}}" {% endif %}/></span>
-{% endthumbnail %}
-
-{% endif %}
{% endthumbnail %}
{% endfor %}
</div>
{% block title %}{{ page.title }}{% endblock %}
{% block toptitle %}
-<h1 class="top fullwidth">{{ page.title }}</h1>
-{% endblock %}
-
-{% block nav %}
-<div id="About">
-</div>
+<h1 class="top">{{ page.title }}</h1>
{% endblock %}
{% block main %}
-
-<div class="wrapper">
- <div id="fiber-content">
- <div class="text">{% placeholder "content" %}</div>
- </div>
-</div>
-
+{% placeholder "content" %}
{% endblock %}